IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 30, 2006, 1:59:49 PM (20 years ago)
Author:
magnier
Message:

replaced PS_IMAGE_SET and PS_VECTOR_SET with psImageInit, psVectorInit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/imcombine/pmImageCombine.c

    r6511 r7769  
    88 *  @author GLG, MHPCC
    99 *
    10  *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
    11  *  @date $Date: 2006-03-04 01:01:33 $
     10 *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2006-06-30 23:59:49 $
    1212 *
    1313 *  XXX: pmRejectPixels() has a known bug with the pmImageTransform() call.
     
    103103        combine = psImageAlloc(numCols, numRows, PS_TYPE_F32);
    104104        if (pixels != NULL) {
    105             PS_IMAGE_SET_F32(combine, 0.0);
     105            psImageInit(combine, 0.0);
    106106        }
    107107    }
     
    127127    //
    128128    psVector *qpPtr = psVectorAlloc(numImages, PS_TYPE_S32);
    129     PS_VECTOR_SET_S32(qpPtr, 0);
     129    psVectorInit(qpPtr, 0);
    130130    qpPtr->n = numImages;
    131131    //
     
    139139    if (masks != NULL) {
    140140        pixelMask = psVectorAlloc(numImages, PS_TYPE_U8);
    141         PS_VECTOR_SET_U8(pixelMask, 0);
     141        psVectorInit(pixelMask, 0);
    142142        pixelMask->n = numImages;
    143143    }
     
    146146    if (errors != NULL) {
    147147        pixelErrors = psVectorAlloc(numImages, PS_TYPE_F32);
    148         PS_VECTOR_SET_F32(pixelErrors, 1.0);
     148        psVectorInit(pixelErrors, 1.0);
    149149        pixelErrors->n = numImages;
    150150    }
     
    157157        for (psS32 p = 0 ; p < pixels->n ; p++) {
    158158            // Must initialize the mask to 0 for every pixel.
    159             PS_VECTOR_SET_U8(pixelMask, 0);
     159            psVectorInit(pixelMask, 0);
    160160            psS32 col = (pixels->data[p]).x;
    161161            psS32 row = (pixels->data[p]).y;
     
    553553    //
    554554    psVector *rPtr = psVectorAlloc(numImages, PS_TYPE_S32);
    555     PS_VECTOR_SET_S32(rPtr, 0);
     555    psVectorInit(rPtr, 0);
    556556    rPtr->n = numImages;
    557557
Note: See TracChangeset for help on using the changeset viewer.