Changeset 7769
- Timestamp:
- Jun 30, 2006, 1:59:49 PM (20 years ago)
- Location:
- trunk/psModules/src
- Files:
-
- 3 edited
-
detrend/pmSubtractSky.c (modified) (4 diffs)
-
imcombine/pmImageCombine.c (modified) (7 diffs)
-
imcombine/pmImageSubtract.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/detrend/pmSubtractSky.c
r7604 r7769 6 6 * @author GLG, MHPCC 7 7 * 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 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 347 347 // Initialize A matrix and B vector. 348 348 // 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); 351 351 352 352 // … … 577 577 binnedImage->numRows, 578 578 PS_TYPE_U8); 579 PS_IMAGE_SET_U8(binnedMaskImage, 0);579 psImageInit(binnedMaskImage, 0); 580 580 } 581 581 } else { … … 588 588 binnedImage->numRows, 589 589 PS_TYPE_U8); 590 PS_IMAGE_SET_U8(binnedMaskImage, 0);590 psImageInit(binnedMaskImage, 0); 591 591 } 592 592 psTrace(".psModule.pmSubtractSky", 4, -
trunk/psModules/src/imcombine/pmImageCombine.c
r6511 r7769 8 8 * @author GLG, MHPCC 9 9 * 10 * @version $Revision: 1. 3$ $Name: not supported by cvs2svn $11 * @date $Date: 2006-0 3-04 01:01:33$10 * @version $Revision: 1.4 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2006-06-30 23:59:49 $ 12 12 * 13 13 * XXX: pmRejectPixels() has a known bug with the pmImageTransform() call. … … 103 103 combine = psImageAlloc(numCols, numRows, PS_TYPE_F32); 104 104 if (pixels != NULL) { 105 PS_IMAGE_SET_F32(combine, 0.0);105 psImageInit(combine, 0.0); 106 106 } 107 107 } … … 127 127 // 128 128 psVector *qpPtr = psVectorAlloc(numImages, PS_TYPE_S32); 129 PS_VECTOR_SET_S32(qpPtr, 0);129 psVectorInit(qpPtr, 0); 130 130 qpPtr->n = numImages; 131 131 // … … 139 139 if (masks != NULL) { 140 140 pixelMask = psVectorAlloc(numImages, PS_TYPE_U8); 141 PS_VECTOR_SET_U8(pixelMask, 0);141 psVectorInit(pixelMask, 0); 142 142 pixelMask->n = numImages; 143 143 } … … 146 146 if (errors != NULL) { 147 147 pixelErrors = psVectorAlloc(numImages, PS_TYPE_F32); 148 PS_VECTOR_SET_F32(pixelErrors, 1.0);148 psVectorInit(pixelErrors, 1.0); 149 149 pixelErrors->n = numImages; 150 150 } … … 157 157 for (psS32 p = 0 ; p < pixels->n ; p++) { 158 158 // Must initialize the mask to 0 for every pixel. 159 PS_VECTOR_SET_U8(pixelMask, 0);159 psVectorInit(pixelMask, 0); 160 160 psS32 col = (pixels->data[p]).x; 161 161 psS32 row = (pixels->data[p]).y; … … 553 553 // 554 554 psVector *rPtr = psVectorAlloc(numImages, PS_TYPE_S32); 555 PS_VECTOR_SET_S32(rPtr, 0);555 psVectorInit(rPtr, 0); 556 556 rPtr->n = numImages; 557 557 -
trunk/psModules/src/imcombine/pmImageSubtract.c
r7604 r7769 7 7 * @author GLG, MHPCC 8 8 * 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 $ 11 11 * 12 12 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 253 253 254 254 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); 256 256 psBool setPreCalc = true; 257 257 // … … 818 818 PS_ASSERT_IMAGE_SIZE(stampMatrix, numSolveParams, numSolveParams, false); 819 819 } 820 PS_IMAGE_SET_F64(stampMatrix, 0.0);820 psImageInit(stampMatrix, 0.0); 821 821 822 822 if (stampVector == NULL) { … … 828 828 PS_ASSERT_VECTOR_SIZE(stampVector, numSolveParams, false); 829 829 } 830 PS_VECTOR_SET_F64(stampVector, 0.0);830 psVectorInit(stampVector, 0.0); 831 831 psTrace("pmSubtractionCalculateEquation", 6, "subCalcEqn(): stamp %d: allocate matrix and vector.\n", s); 832 832 … … 1054 1054 psVector *sumVector = psVectorAlloc(size, PS_TYPE_F64); 1055 1055 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); 1058 1058 1059 1059 // … … 1148 1148 deviations->n = deviations->nalloc; 1149 1149 // XXX: Probably not necessary. 1150 PS_VECTOR_SET_F32(deviations, 0.0);1150 psVectorInit(deviations, 0.0); 1151 1151 } 1152 1152 PS_ASSERT_IMAGE_NON_NULL(refImage, NULL); … … 1359 1359 out = psImageAlloc(1+2*kernelSize, 1+2*kernelSize, PS_TYPE_F32); 1360 1360 } 1361 PS_IMAGE_SET_F32(out, 0.0);1361 psImageInit(out, 0.0); 1362 1362 1363 1363 //
Note:
See TracChangeset
for help on using the changeset viewer.
