Changeset 15844 for trunk/ppStack/src/ppStackMatch.c
- Timestamp:
- Dec 14, 2007, 3:32:16 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ppStack/src/ppStackMatch.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppStack/src/ppStackMatch.c
r15816 r15844 12 12 13 13 bool ppStackMatch(pmReadout *output, const pmReadout *input, const pmReadout *sourcesRO, 14 const pm Config *config)14 const pmPSF *psf, const pmConfig *config) 15 15 { 16 16 // Look up appropriate values from the ppSub recipe … … 46 46 // These values are specified specifically for stacking 47 47 const char *stampsName = psMetadataLookupStr(NULL, config->arguments, "STAMPS"); // Filename for stamps 48 float target = psMetadataLookupF32(NULL, config->arguments, "TARGET"); // Target PSF width49 48 50 49 psVector *optWidths = NULL; // Vector with FWHMs for optimum search … … 66 65 } 67 66 } 68 pmReadout *fake = pmReadoutFakeFromSources(input->image->numCols, input->image->numRows, 69 sources, target, powf(10.0, -0.4 * maxMag)); 67 68 pmReadout *fake = pmReadoutAlloc(NULL); // Fake readout with target PSF 69 70 if (!pmReadoutFakeFromSources(fake, input->image->numCols, input->image->numRows, sources, NULL, NULL, 71 psf, powf(10.0, -0.4 * maxMag), 0, false)) { 72 psError(PS_ERR_UNKNOWN, false, "Unable to generate fake image with target PSF."); 73 psFree(fake); 74 psFree(optWidths); 75 return false; 76 } 70 77 71 78 #ifdef TESTING
Note:
See TracChangeset
for help on using the changeset viewer.
