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/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.