IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 14, 2010, 10:19:12 AM (17 years ago)
Author:
eugene
Message:

pmSourceMoments now takes a mask value and correctly ANDs the image mask against that (needed to handle SUSPECT as opposed to BAD pixels); pmPeaks returns an empty, but non NON peak array if no peaks are found (this is a valid result)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20091201/psModules/src/imcombine/pmPSFEnvelope.c

    r25754 r26594  
    6565                     int radius,        // Radius of each PSF
    6666                     const char *modelName,// Name of PSF model to use
    67                      int xOrder, int yOrder // Order for PSF variation fit
     67                     int xOrder, int yOrder, // Order for PSF variation fit
     68                     psImageMaskType maskVal
    6869                     )
    6970{
     
    360361
    361362        // measure the source moments: tophat windowing, no pixel S/N cutoff
    362         if (!pmSourceMoments(source, maxRadius, 0.0, 1.0)) {
     363        // XXX probably should be passing the maskVal to this function so we can pass it along here...
     364        if (!pmSourceMoments(source, maxRadius, 0.0, 1.0, maskVal)) {
    363365            // Can't do anything about it; limp along as best we can
    364366            psErrorClear();
Note: See TracChangeset for help on using the changeset viewer.