IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 14, 2006, 2:27:52 PM (20 years ago)
Author:
Paul Price
Message:

Adding functions to create bad pixel masks from flattened data.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/detrend/pmMaskBadPixels.h

    r9616 r9981  
    88/// @author Eugene Magnier, IfA
    99///
    10 /// @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
    11 /// @date $Date: 2006-10-17 22:17:38 $
     10/// @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
     11/// @date $Date: 2006-11-15 00:27:52 $
    1212///
    1313/// Copyright 2004 Institute for Astronomy, University of Hawaii
     
    3333                    );
    3434
     35/// Find pixels outlying from the background, flagging suspect pixels
     36///
     37/// Pixels more than "rej" standard deviations from the background level (in flat-fielded images) have the
     38/// corresponding pixel in the "suspect pixels" image incremented.  After accumulating over a suitable sample
     39/// of images, bad pixels should have a high value in the suspect pixels image, allowing them to be
     40/// identified.  The suspect pixels image is of type S32.
     41psImage *pmMaskFlagSuspectPixels(psImage *out, ///< Suspected bad pixels image, or NULL
     42                                 const pmReadout *readout, ///< Readout to inspect
     43                                 float rej, ///< Rejection threshold (standard deviations)
     44                                 psMaskType maskVal, ///< Mask value for statistics
     45                                 float frac, ///< Fraction of pixels to consider
     46                                 psRandom *rng ///< Random number generator
     47                                );
     48
     49/// Identify bad pixels from the suspect pixels image
     50///
     51/// Bad pixels are identified from the suspect pixels image (accumulated over a large number of images).
     52/// Pixels marked as suspect in more than "thresh" standard deviations from the mean are identified as bad
     53/// pixels (output image).
     54psImage *pmMaskIdentifyBadPixels(const psImage *suspects, ///< Accumulated suspect pixels image
     55                                 float thresh, ///< Threshold for bad pixel (standard deviations)
     56                                 psMaskType maskVal ///< Value to set for bad pixels
     57                                );
     58
     59
     60
     61
    3562#endif
Note: See TracChangeset for help on using the changeset viewer.