Changeset 13348
- Timestamp:
- May 11, 2007, 3:29:57 AM (19 years ago)
- Location:
- trunk/psphot/src
- Files:
-
- 3 edited
-
psphot.h (modified) (1 diff)
-
psphotFindPeaks.c (modified) (2 diffs)
-
psphotReadout.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphot.h
r13225 r13348 30 30 const bool returnFootprints, const int pass); 31 31 #include "pmFootprint.h" 32 psErrorCode psphotCullPeaks(const pmReadout *readout, const psMetadata *recipe, psArray *footprints); 32 psErrorCode psphotCullPeaks(const psImage *img, const psImage *weight, 33 const psMetadata *recipe, psArray *footprints); 33 34 psArray *psphotSourceStats (pmReadout *readout, psMetadata *recipe, psArray *allpeaks); 34 35 bool psphotRoughClass (psArray *sources, psMetadata *recipe); -
trunk/psphot/src/psphotFindPeaks.c
r13166 r13348 171 171 */ 172 172 psErrorCode 173 psphotCullPeaks(const pmReadout *readout, 173 psphotCullPeaks(const psImage *image, // the image wherein lives the footprint 174 const psImage *weight, // corresponding variance image 174 175 const psMetadata *recipe, 175 psArray *footprints) { // array of pmFootprints176 psArray *footprints) { // array of pmFootprints 176 177 bool status = false; 177 178 float nsigma_delta = psMetadataLookupF32(&status, recipe, "FOOTPRINT_CULL_NSIGMA_DELTA"); … … 185 186 const float skyStdev = psMetadataLookupF32(NULL, recipe, "SKY_STDEV"); 186 187 187 return pmFootprintArrayCullPeaks( readout->image, readout->weight, footprints,188 return pmFootprintArrayCullPeaks(image, weight, footprints, 188 189 nsigma_delta, nsigma_min*skyStdev); 189 190 } -
trunk/psphot/src/psphotReadout.c
r13304 r13348 170 170 psArray *newFootprints = psphotFindPeaks (readout, recipe, useFootprints, 2); 171 171 172 psphotCullPeaks(readout , recipe, newFootprints);172 psphotCullPeaks(readout->image, readout->weight, recipe, newFootprints); 173 173 174 174 newPeaks = pmFootprintArrayToPeaks(newFootprints);
Note:
See TracChangeset
for help on using the changeset viewer.
