IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13348


Ignore:
Timestamp:
May 11, 2007, 3:29:57 AM (19 years ago)
Author:
rhl
Message:

Change psphotCullPeaks API to allow user to choose which image to use (e.g. non-object-subtracted)

Location:
trunk/psphot/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphot.h

    r13225 r13348  
    3030                                 const bool returnFootprints, const int pass);
    3131#include "pmFootprint.h"
    32 psErrorCode     psphotCullPeaks(const pmReadout *readout, const psMetadata *recipe, psArray *footprints);
     32psErrorCode     psphotCullPeaks(const psImage *img, const psImage *weight,
     33                                const psMetadata *recipe, psArray *footprints);
    3334psArray        *psphotSourceStats (pmReadout *readout, psMetadata *recipe, psArray *allpeaks);
    3435bool            psphotRoughClass (psArray *sources, psMetadata *recipe);
  • trunk/psphot/src/psphotFindPeaks.c

    r13166 r13348  
    171171 */
    172172psErrorCode
    173 psphotCullPeaks(const pmReadout *readout,
     173psphotCullPeaks(const psImage *image,   // the image wherein lives the footprint
     174                const psImage *weight,  // corresponding variance image
    174175                const psMetadata *recipe,
    175                 psArray *footprints) { // array of pmFootprints
     176                psArray *footprints) {  // array of pmFootprints
    176177    bool status = false;
    177178    float nsigma_delta = psMetadataLookupF32(&status, recipe, "FOOTPRINT_CULL_NSIGMA_DELTA");
     
    185186    const float skyStdev = psMetadataLookupF32(NULL, recipe, "SKY_STDEV");
    186187
    187     return pmFootprintArrayCullPeaks(readout->image, readout->weight, footprints,
     188    return pmFootprintArrayCullPeaks(image, weight, footprints,
    188189                                     nsigma_delta, nsigma_min*skyStdev);
    189190}
  • trunk/psphot/src/psphotReadout.c

    r13304 r13348  
    170170       psArray *newFootprints = psphotFindPeaks (readout, recipe, useFootprints, 2);
    171171
    172        psphotCullPeaks(readout, recipe, newFootprints);
     172       psphotCullPeaks(readout->image, readout->weight, recipe, newFootprints);
    173173
    174174       newPeaks = pmFootprintArrayToPeaks(newFootprints);
Note: See TracChangeset for help on using the changeset viewer.