- Timestamp:
- Mar 29, 2010, 3:55:49 PM (16 years ago)
- Location:
- branches/eam_branches/20100225
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ppStack/src/ppStackReject.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20100225
- Property svn:mergeinfo changed
-
branches/eam_branches/20100225/ppStack/src/ppStackReject.c
r27075 r27517 10 10 #include "ppStackLoop.h" 11 11 12 // #define TESTING12 // #define TESTING 13 13 14 14 bool ppStackReject(ppStackOptions *options, pmConfig *config) … … 31 31 32 32 float threshold = psMetadataLookupF32(NULL, recipe, "THRESHOLD.MASK"); // Threshold for mask deconvolution 33 float poorFrac = psMetadataLookupF32(NULL, recipe, "POOR.FRACTION"); // Fraction for "poor"34 33 float imageRej = psMetadataLookupF32(NULL, recipe, "IMAGE.REJ"); // Maximum fraction of image to reject 35 34 // before rejecting entire image … … 109 108 110 109 psPixels *reject = pmStackReject(options->inspect->data[i], options->numCols, options->numRows, 111 threshold, poorFrac,stride, options->regions->data[i],110 threshold, stride, options->regions->data[i], 112 111 options->kernels->data[i]); // Rejected pixels 113 112 … … 130 129 options->inputMask->data.PS_TYPE_VECTOR_MASK_DATA[i] |= PPSTACK_MASK_BAD; 131 130 numRejected++; 131 } else { 132 // Add to list of pixels already rejected 133 reject = psPixelsConcatenate(reject, options->rejected->data[i]); 134 options->rejected->data[i] = psPixelsDuplicates(options->rejected->data[i], reject); 132 135 } 133 }134 135 if (reject) {136 // Add to list of pixels already rejected137 reject = psPixelsConcatenate(reject, options->rejected->data[i]);138 options->rejected->data[i] = psPixelsDuplicates(options->rejected->data[i], reject);139 136 } 140 137 … … 168 165 169 166 psFree(options->inspect); options->inspect = NULL; 170 psFree(options->kernels); options->kernels = NULL;171 psFree(options->regions); options->regions = NULL;172 167 173 168 if (numRejected >= num) {
Note:
See TracChangeset
for help on using the changeset viewer.
