Changeset 14673 for trunk/ppSub/src/ppSubReadout.c
- Timestamp:
- Aug 27, 2007, 11:19:10 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/ppSub/src/ppSubReadout.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSub/src/ppSubReadout.c
r14650 r14673 52 52 const char *stampsName = psMetadataLookupStr(&mdok, config->arguments, "STAMPS"); // Filename for stamps 53 53 54 bool optimum = psMetadataLookupBool(&mdok, config->arguments, "OPTIMUM"); // Derive optimum parameters? 55 float optMin = psMetadataLookupF32(&mdok, config->arguments, "OPTIMUM.MIN"); // Minimum width for search 56 float optMax = psMetadataLookupF32(&mdok, config->arguments, "OPTIMUM.MAX"); // Maximum width for search 57 float optStep = psMetadataLookupF32(&mdok, config->arguments, "OPTIMUM.STEP"); // Step for search 58 float optThresh = psMetadataLookupF32(&mdok, config->arguments, "OPTIMUM.TOL"); // Tolerance for search 59 int optOrder = psMetadataLookupS32(&mdok, config->arguments, "OPTIMUM.ORDER"); // Order for search 60 54 61 // Generate masks if they don't exist 55 62 int numCols = input->numCols, numRows = input->numRows; // Image dimensions … … 71 78 } 72 79 80 psVector *optWidths = NULL; // Vector with FWHMs for optimum search 81 if (optimum) { 82 optWidths = psVectorCreate(optWidths, optMin, optMax, optStep, PS_TYPE_F32); 83 } 84 73 85 if (!pmSubtractionMatch(outRO, refRO, inRO, footprint, regionSize, spacing, threshold, stampsName, 74 NAN, type, size, order, widths, orders, inner, ringsOrder, binning, iter,75 rej, maskBad, maskBlank)) {86 NAN, type, size, order, widths, orders, inner, ringsOrder, binning, optimum, 87 optWidths, optOrder, optThresh, iter, rej, maskBad, maskBlank)) { 76 88 psError(PS_ERR_UNKNOWN, false, "Unable to match images."); 77 89 psFree(outRO); 78 90 return false; 79 91 } 80 92 psFree(optWidths); 81 93 82 94 // Add kernel descrption to header
Note:
See TracChangeset
for help on using the changeset viewer.
