- Timestamp:
- May 8, 2013, 5:07:02 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130419/pswarp/src/pswarpTransformReadout.c
r35535 r35537 16 16 * NOTE: in this function, the coordinates are transformed from the OUTPUT to the INPUT 17 17 */ 18 bool pswarpTransformReadout(pmReadout *output, pmReadout *input, pmConfig *config )18 bool pswarpTransformReadout(pmReadout *output, pmReadout *input, pmConfig *config, bool backgroundWarp) 19 19 { 20 20 // XXX this implementation currently ignores the use of the region … … 47 47 } 48 48 psAssert(mdok, "MASK.INPUT was not defined"); 49 50 bool backgroundWarp = psMetadataLookupBool(NULL,config->arguments,"BACKGROUND_WARPING");51 49 52 50 if (!input->covariance) { … … 208 206 psFree(interp); 209 207 210 if (goodPixels > 0 && psMetadataLookupBool(&mdok, recipe, "SOURCES")) { 211 if (!psMetadataLookupBool(NULL,config->arguments,"BACKGROUND_WARPING")) { 212 if (!pswarpTransformSources(output, input, config)) { 213 psError(psErrorCodeLast(), false, "Unable to interpolate image."); 214 return false; 208 if (goodPixels > 0 && !backgroundWarp && psMetadataLookupBool(&mdok, recipe, "SOURCES")) { 209 if (!pswarpTransformSources(output, input, config)) { 210 psError(psErrorCodeLast(), false, "Unable to transform sources."); 211 return false; 215 212 } 216 }217 213 } 218 214
Note:
See TracChangeset
for help on using the changeset viewer.
