IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7769


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

Location:
trunk/psModules/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/detrend/pmSubtractSky.c

    r7604 r7769  
    66 *  @author GLG, MHPCC
    77 *
    8  *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2006-06-21 03:21:16 $
     8 *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2006-06-30 23:59:49 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    347347    // Initialize A matrix and B vector.
    348348    //
    349     PS_IMAGE_SET_F64(A, 0.0);
    350     PS_VECTOR_SET_F64(B, 0.0);
     349    psImageInit(A, 0.0);
     350    psVectorInit(B, 0.0);
    351351
    352352    //
     
    577577                                           binnedImage->numRows,
    578578                                           PS_TYPE_U8);
    579             PS_IMAGE_SET_U8(binnedMaskImage, 0);
     579            psImageInit(binnedMaskImage, 0);
    580580        }
    581581    } else {
     
    588588                                       binnedImage->numRows,
    589589                                       PS_TYPE_U8);
    590         PS_IMAGE_SET_U8(binnedMaskImage, 0);
     590        psImageInit(binnedMaskImage, 0);
    591591    }
    592592    psTrace(".psModule.pmSubtractSky", 4,
  • 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
  • trunk/psModules/src/imcombine/pmImageSubtract.c

    r7604 r7769  
    77 *  @author GLG, MHPCC
    88 *
    9  *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2006-06-21 03:21:16 $
     9 *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2006-06-30 23:59:49 $
    1111 *
    1212 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    253253
    254254                    psImage *currPreCalc = psImageAlloc(1 + (2 * size), 1 + (2 * size), PS_TYPE_F32);
    255                     PS_IMAGE_SET_F32(currPreCalc, 0.0);
     255                    psImageInit(currPreCalc, 0.0);
    256256                    psBool setPreCalc = true;
    257257                    //
     
    818818                PS_ASSERT_IMAGE_SIZE(stampMatrix, numSolveParams, numSolveParams, false);
    819819            }
    820             PS_IMAGE_SET_F64(stampMatrix, 0.0);
     820            psImageInit(stampMatrix, 0.0);
    821821
    822822            if (stampVector == NULL) {
     
    828828                PS_ASSERT_VECTOR_SIZE(stampVector, numSolveParams, false);
    829829            }
    830             PS_VECTOR_SET_F64(stampVector, 0.0);
     830            psVectorInit(stampVector, 0.0);
    831831            psTrace("pmSubtractionCalculateEquation", 6, "subCalcEqn(): stamp %d: allocate matrix and vector.\n", s);
    832832
     
    10541054    psVector *sumVector = psVectorAlloc(size, PS_TYPE_F64);
    10551055    sumVector->n = sumVector->nalloc;
    1056     PS_VECTOR_SET_F64(sumVector, 0.0);
    1057     PS_IMAGE_SET_F64(sumMatrix, 0.0);
     1056    psVectorInit(sumVector, 0.0);
     1057    psImageInit(sumMatrix, 0.0);
    10581058
    10591059    //
     
    11481148        deviations->n = deviations->nalloc;
    11491149        // XXX: Probably not necessary.
    1150         PS_VECTOR_SET_F32(deviations, 0.0);
     1150        psVectorInit(deviations, 0.0);
    11511151    }
    11521152    PS_ASSERT_IMAGE_NON_NULL(refImage, NULL);
     
    13591359        out = psImageAlloc(1+2*kernelSize, 1+2*kernelSize, PS_TYPE_F32);
    13601360    }
    1361     PS_IMAGE_SET_F32(out, 0.0);
     1361    psImageInit(out, 0.0);
    13621362
    13631363    //
Note: See TracChangeset for help on using the changeset viewer.