Changeset 16820 for trunk/psphot/src/psphotFindPeaks.c
- Timestamp:
- Mar 4, 2008, 3:10:25 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotFindPeaks.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotFindPeaks.c
r15962 r16820 166 166 psFree(peaks); 167 167 peaks = footprints; // well, you know what I mean 168 169 psLogMsg ("psphot", PS_LOG_INFO, "%ld footprints: %f sec\n", peaks->n, psTimerMark ("psphot")); 168 170 } 169 171 … … 174 176 } 175 177 176 177 /************************************************************************************************************/178 /*179 * Cull a set of peaks contained in a psArray of pmFootprints180 */181 psErrorCode182 psphotCullPeaks(const psImage *image, // the image wherein lives the footprint183 const psImage *weight, // corresponding variance image184 const psMetadata *recipe,185 psArray *footprints) { // array of pmFootprints186 bool status = false;187 float nsigma_delta = psMetadataLookupF32(&status, recipe, "FOOTPRINT_CULL_NSIGMA_DELTA");188 if (!status) {189 nsigma_delta = 0; // min.190 }191 float nsigma_min = psMetadataLookupF32(&status, recipe, "FOOTPRINT_CULL_NSIGMA_MIN");192 if (!status) {193 nsigma_min = 0;194 }195 const float skyStdev = psMetadataLookupF32(NULL, recipe, "SKY_STDEV");196 197 return pmFootprintArrayCullPeaks(image, weight, footprints,198 nsigma_delta, nsigma_min*skyStdev);199 }
Note:
See TracChangeset
for help on using the changeset viewer.
