Changeset 18918 for trunk/ppStack/src/ppStackReadout.c
- Timestamp:
- Aug 5, 2008, 11:18:27 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/ppStack/src/ppStackReadout.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppStack/src/ppStackReadout.c
r18591 r18918 27 27 static int sectionNum = 0; // Section number; for debugging outputs 28 28 29 30 29 // Get the recipe values 30 psMetadata *recipe = psMetadataLookupMetadata(NULL, config->recipes, PPSTACK_RECIPE); // ppStack recipe 31 psAssert(recipe, "We've thrown an error on this before."); 32 31 33 bool mdok; // Status of MD lookup 32 int iter = psMetadataLookupS32(NULL, config->arguments, "ITER"); // Rejection iterations33 float combineRej = psMetadataLookupF32(NULL, config->arguments, "COMBINE.REJ"); // Combination threshold34 int iter = psMetadataLookupS32(NULL, recipe, "ITER"); // Rejection iterations 35 float combineRej = psMetadataLookupF32(NULL, recipe, "COMBINE.REJ"); // Combination threshold 34 36 psMaskType maskVal = pmConfigMaskGet("BLANK", config); // Value to mask 35 bool useVariance = psMetadataLookupBool(&mdok, config->arguments, "VARIANCE"); // Use variance for rejection? 36 bool safe = psMetadataLookupBool(&mdok, config->arguments, "SAFE"); // Play safe when combining small numbers of pixels? 37 bool useVariance = psMetadataLookupBool(&mdok, recipe, "VARIANCE"); // Use variance for rejection? 38 bool safe = psMetadataLookupBool(&mdok, recipe, "SAFE"); // Be safe when combining small numbers of pixels 39 37 40 psMetadata *ppsub = psMetadataLookupMetadata(NULL, config->recipes, "PPSUB"); // PPSUB recipe 38 41 int kernelSize = psMetadataLookupS32(NULL, ppsub, "KERNEL.SIZE"); // Kernel half-size 39 40 42 41 43 int num = readouts->n; // Number of inputs … … 137 139 138 140 // Get the recipe values 141 psMetadata *recipe = psMetadataLookupMetadata(NULL, config->recipes, PPSTACK_RECIPE); // ppStack recipe 142 psAssert(recipe, "We've thrown an error on this before."); 143 139 144 bool mdok; // Status of MD lookup 140 145 psMaskType maskVal = pmConfigMaskGet("BLANK", config); // Value to mask 141 bool useVariance = psMetadataLookupBool(&mdok, config->arguments, "VARIANCE"); // Use variance for rejection?146 bool useVariance = psMetadataLookupBool(&mdok, recipe, "VARIANCE"); // Use variance for rejection? 142 147 143 148 int num = readouts->n; // Number of inputs
Note:
See TracChangeset
for help on using the changeset viewer.
