- Timestamp:
- Feb 29, 2008, 2:16:50 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20080229/psphot/src/psphotFindPeaks.c
r15962 r16760 174 174 } 175 175 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.
