Changeset 18558 for trunk/ppMerge/src/ppMergeLoop.c
- Timestamp:
- Jul 15, 2008, 10:29:11 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/ppMerge/src/ppMergeLoop.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppMerge/src/ppMergeLoop.c
r18166 r18558 39 39 float frachigh = psMetadataLookupF32(NULL, arguments, "FRACHIGH"); // Reject fraction of hi pixels 40 40 int nKeep = psMetadataLookupS32(NULL, arguments, "NKEEP"); // Minimum number of values to keep 41 psMaskType maskVal = psMetadataLookupU8(NULL, arguments, "MASKVAL"); // Value to mask42 41 psStatsOptions combineStat = psMetadataLookupS32(NULL, arguments, "COMBINE"); // Combination statistic 43 42 bool useWeights = psMetadataLookupBool(NULL, arguments, "WEIGHTS"); // Use weights? … … 49 48 int fringeSmoothY = psMetadataLookupS32(NULL, arguments, "FRINGE.YSMOOTH"); // Smoothing regions in y 50 49 50 // set the mask and mark bit values based on the named masks 51 psMaskType maskVal; 52 psMaskType markVal; 53 if (!pmConfigMaskSetBits (&maskVal, &markVal, config)) { 54 psError (PS_ERR_UNKNOWN, true, "Unable to define the mask bit values"); 55 return false; 56 } 57 51 58 pmCombineParams *combination = pmCombineParamsAlloc(combineStat); // Combination parameters 52 59 combination->maskVal = maskVal; 53 combination->blank = pmConfigMask ("BLANK", config);60 combination->blank = pmConfigMaskGet("BLANK", config); 54 61 combination->nKeep = nKeep; 55 62 combination->fracHigh = frachigh; … … 294 301 } 295 302 296 if (!ppStatsFPA(stats, outFPA, view, maskVal | pmConfigMask("BLANK", config), config)) {303 if (!ppStatsFPA(stats, outFPA, view, maskVal, config)) { 297 304 psError(PS_ERR_UNKNOWN, true, "Unable to generate stats for image."); 298 305 goto ERROR;
Note:
See TracChangeset
for help on using the changeset viewer.
