IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 27, 2008, 1:28:38 PM (18 years ago)
Author:
Paul Price
Message:

Adding supplementary output: count and stdev images.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap_branch_080320/psModules/src/detrend/pmMaskBadPixels.h

    r17085 r17155  
    55 * @author Eugene Magnier, IfA
    66 *
    7  * @version $Revision: 1.15.6.1 $ $Name: not supported by cvs2svn $
    8  * @date $Date: 2008-03-21 03:24:32 $
     7 * @version $Revision: 1.15.6.2 $ $Name: not supported by cvs2svn $
     8 * @date $Date: 2008-03-27 23:28:38 $
    99 * Copyright 2004 Institute for Astronomy, University of Hawaii
    1010 */
     
    1616/// @{
    1717
    18 #define PM_MASK_ANALYSIS_MEAN "MASK.MEAN" // Readout analysis metadata keyword with mean value
    19 #define PM_MASK_ANALYSIS_STDEV "MASK.STDEV" // Readout analysis metadata keyword with stdev value
     18#define PM_MASK_ANALYSIS_SUSPECT "MASK.SUSPECT" // Readout analysis metadata keyword for suspect image
     19#define PM_MASK_ANALYSIS_NUM "MASK.NUM" // Readout analysis metadata keyword for number of inputs
    2020
    2121
     
    5151/// image is of type S32.  The relevant median and standard deviation must be supplied in the
    5252/// readout->analysis metadata as READOUT.MEDIAN, READOUT.STDEVe
    53 psImage *pmMaskFlagSuspectPixels(psImage *out, ///< Suspected bad pixels image, or NULL
    54                                  const pmReadout *readout, ///< Readout to inspect
    55                                  float rej, ///< Rejection threshold (standard deviations)
    56                                  psMaskType maskVal ///< Mask value for statistics
    57                                 );
     53bool pmMaskFlagSuspectPixels(pmReadout *output, ///< Output readout, optionally with suspect pixels image
     54                             const pmReadout *readout, ///< Readout to inspect
     55                             float median, ///< Image median
     56                             float stdev, ///< Image standard deviation
     57                             float rej, ///< Rejection threshold (standard deviations)
     58                             psMaskType maskVal ///< Mask value for statistics
     59    );
    5860
    5961/// Identify bad pixels from the suspect pixels image
    6062///
    61 /// Bad pixels are identified from the suspect pixels image (accumulated over a large number of images).
    62 /// Pixels marked as suspect in more than "thresh" standard deviations from the mean are identified as bad
    63 /// pixels (output image).  If "thresh" is negative, a Poisson is assumed.
    64 psImage *pmMaskIdentifyBadPixels(const psImage *suspects, ///< Accumulated suspect pixels image
    65                                  psMaskType maskVal, ///< Value to set for bad pixels
    66                                  int nTotal,
    67                                  float thresh, ///< Threshold for bad pixel (standard deviations)
    68                                  pmMaskIdentifyMode mode
    69                                 );
     63/// Bad pixels are identified from the suspect pixels image (accumulated over a large number of images),
     64/// according to the chosen mode.
     65bool pmMaskIdentifyBadPixels(pmReadout *output, ///< Output readout, with suspect pixels imageOut
     66                             psMaskType maskVal, ///< Value to set for bad pixels
     67                             float thresh, ///< Threshold for bad pixel
     68                             pmMaskIdentifyMode mode ///< Mode for identifying bad pixels
     69    );
    7070/// @}
    7171#endif
Note: See TracChangeset for help on using the changeset viewer.