Changeset 26606
- Timestamp:
- Jan 14, 2010, 11:10:18 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20091201/ppStack/src/ppStackPSF.c
r25480 r26606 14 14 const psArray *psfs, const psVector *inputMask) 15 15 { 16 bool mkdo = false; 17 16 18 #ifndef TESTING 17 19 // Get the recipe values … … 24 26 int psfOrder = psMetadataLookupS32(NULL, recipe, "PSF.ORDER"); // Spatial order for PSF 25 27 28 psString maskValStr = psMetadataLookupStr(&mdok, recipe, "MASK.VAL"); // Name of bits to mask going in 29 if (!mdok || !maskValStr) { 30 psError(PS_ERR_UNKNOWN, false, "Unable to find MASK.VAL in recipe"); 31 return false; 32 } 33 psImageMaskType maskVal = pmConfigMaskGet(maskValStr, config); // Bits to mask 34 26 35 for (int i = 0; i < psfs->n; i++) { 27 36 if (inputMask->data.U8[i]) { … … 32 41 33 42 // Solve for the target PSF 34 pmPSF *psf = pmPSFEnvelope(numCols, numRows, psfs, psfInstances, psfRadius, psfModel, 35 psfOrder, psfOrder); 43 pmPSF *psf = pmPSFEnvelope(numCols, numRows, psfs, psfInstances, psfRadius, psfModel, psfOrder, psfOrder, maskVal); 36 44 if (!psf) { 37 45 psError(PS_ERR_UNKNOWN, false, "Unable to determine output PSF.");
Note:
See TracChangeset
for help on using the changeset viewer.
