Changeset 15368 for trunk/ppStack/src/ppStackMatch.c
- Timestamp:
- Oct 23, 2007, 1:52:49 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ppStack/src/ppStackMatch.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppStack/src/ppStackMatch.c
r15303 r15368 58 58 } 59 59 60 // Generate a fake image to match to 61 float maxMag = -INFINITY; // Maximum magnitude of sources 62 for (int i = 0; i < sources->n; i++) { 63 pmSource *source = sources->data[i]; // Source of interest 64 if (source->psfMag > maxMag) { 65 maxMag = source->psfMag; 66 } 67 } 68 pmReadout *fake = pmReadoutFakeFromSources(input->image->numCols, input->image->numRows, 69 sources, target, powf(10.0, -0.4 * maxMag)); 70 71 60 72 // Do the image matching 61 if (!pmSubtractionMatch(output, input, NULL, footprint, regionSize, spacing, threshold, sources,73 if (!pmSubtractionMatch(output, input, fake, footprint, regionSize, spacing, threshold, sources, 62 74 stampsName, target, type, size, order, widths, orders, inner, ringsOrder, 63 75 binning, optimum, optWidths, optOrder, optThresh, iter, rej, maskBad, 64 76 maskBlank, badFrac)) { 65 77 psError(PS_ERR_UNKNOWN, false, "Unable to match images."); 78 psFree(fake); 66 79 psFree(optWidths); 67 80 return false; 68 81 } 82 psFree(fake); 69 83 psFree(optWidths); 70 84
Note:
See TracChangeset
for help on using the changeset viewer.
