Changeset 18558 for trunk/pswarp/src/pswarpLoop.c
- Timestamp:
- Jul 15, 2008, 10:29:11 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/pswarp/src/pswarpLoop.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pswarp/src/pswarpLoop.c
r18189 r18558 64 64 bool pswarpLoop(pmConfig *config) 65 65 { 66 67 psMaskType maskPoor = psMetadataLookupU8(NULL, config->arguments, "MASK.POOR"); // Mask for "poor" data 68 psMaskType maskBad = psMetadataLookupU8(NULL, config->arguments, "MASK.BAD"); // Mask for bad data 66 bool status; 67 68 // load the recipe 69 psMetadata *recipe = psMetadataLookupPtr (&status, config->recipes, PSWARP_RECIPE); 70 if (!recipe) { 71 psError(PSPHOT_ERR_CONFIG, false, "missing recipe %s", PSWARP_RECIPE); 72 return false; 73 } 74 75 // output mask bits 76 psMaskType maskValue = psMetadataLookupU8(&status, recipe, "MASK.OUTPUT"); 77 psAssert (status, "MASK.OUTPUT was not defined"); 69 78 70 79 // select the input data sources … … 333 342 // Perform statistics on the output image 334 343 if (stats) { 335 if (!ppStatsFPA(stats, output->parent->parent->parent, view, mask Bad | maskPoor, config)) {344 if (!ppStatsFPA(stats, output->parent->parent->parent, view, maskValue, config)) { 336 345 psWarning("Unable to perform statistics on warped image."); 337 346 }
Note:
See TracChangeset
for help on using the changeset viewer.
