IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 24, 2012, 3:50:47 PM (14 years ago)
Author:
bills
Message:

Add recipe value FOOTPRINT_SET_NANS_TO_ZERO which when set sets NAN pixels to zero
in the image that is used to Cull Peaks. Set to false for now.
Also add recipe value PSPHOT.CR.MAX.WINDOW default 50) which limits the size
of the region checked for cosmic rays. Previously the entire footprint was
checked which performed horribly with really large footprints.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotCullPeaks.c

    r34200 r34202  
    6363# if (PM_PEAKS_CULL_WITH_SMOOTHED_IMAGE)
    6464    psLogMsg ("psphot", PS_LOG_INFO, "Culling peaks from footprints using the smoothed image");
     65    bool setNaNsToZero = psMetadataLookupF32 (&status, recipe, "FOOTPRINT_SET_NANS_TO_ZERO");
     66    if (setNaNsToZero) {
     67        // Set NaN pixels to zero so that they do not considered in the footprint analysis
     68        // XXX: Currently the caller does nothing further with the significance readout so
     69        // modifiying the image does no harm
     70        // XXX: Note: signifR->weight is not used by pmFootprintCullPeaks so we don't
     71        // need to touch it
     72        psImageClipNaN(signifR->image, 0);
     73    }
     74       
     75
    6576# else
    6677    psLogMsg ("psphot", PS_LOG_INFO, "Culling peaks from footprints using the raw (unsmoothed) image");
Note: See TracChangeset for help on using the changeset viewer.