Changeset 13012 for trunk/psphot/src/psphotReadout.c
- Timestamp:
- Apr 24, 2007, 3:27:44 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotReadout.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotReadout.c
r12950 r13012 20 20 PS_ASSERT_PTR_NON_NULL (breakPt, false); 21 21 22 // Use the new pmFootprints approach? 23 const bool useFootprints = psMetadataLookupBool(NULL, recipe, "USE_FOOTPRINTS"); 24 22 25 // generate mask & weight images if they don't already exit 23 26 if (!pmReadoutGenerateMaskWeight (readout, true)) { … … 58 61 59 62 // find the peaks in the image 60 psArray *peaks = psphotFindPeaks (readout, recipe, 1); 63 psArray *peaks; 64 if (useFootprints) { 65 psArray *footprints = psphotFindPeaks (readout, recipe, useFootprints, 1); 66 peaks = pmFootprintArrayToPeaks(footprints); 67 psFree(footprints); 68 } else { 69 peaks = psphotFindPeaks (readout, recipe, useFootprints, 1); 70 } 71 61 72 if (!peaks) { 62 73 psLogMsg ("psphot", 3, "unable to find peaks in this image"); … … 146 157 147 158 // find the peaks in the image 148 psArray *newPeaks = psphotFindPeaks (readout, recipe, 2); 159 psArray *newPeaks; 160 if (useFootprints) { 161 psArray *newFootprints = psphotFindPeaks (readout, recipe, useFootprints, 2); 162 163 psphotCullPeaks(readout, recipe, newFootprints); 164 165 newPeaks = pmFootprintArrayToPeaks(newFootprints); 166 167 psFree(newFootprints); 168 } else { 169 newPeaks = psphotFindPeaks(readout, recipe, useFootprints, 2); 170 } 149 171 150 172 // remove noise for subtracted objects … … 186 208 187 209 // calculate source magnitudes 188 pmReadout *background = psphotSelectBackground (config, view );210 pmReadout *background = psphotSelectBackground (config, view, false); 189 211 psphotMagnitudes(sources, recipe, psf, background); 190 212
Note:
See TracChangeset
for help on using the changeset viewer.
