Index: trunk/psModules/src/detrend/pmMaskBadPixels.h
===================================================================
--- trunk/psModules/src/detrend/pmMaskBadPixels.h	(revision 9616)
+++ trunk/psModules/src/detrend/pmMaskBadPixels.h	(revision 9981)
@@ -8,6 +8,6 @@
 /// @author Eugene Magnier, IfA
 ///
-/// @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
-/// @date $Date: 2006-10-17 22:17:38 $
+/// @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
+/// @date $Date: 2006-11-15 00:27:52 $
 ///
 /// Copyright 2004 Institute for Astronomy, University of Hawaii
@@ -33,3 +33,30 @@
                     );
 
+/// Find pixels outlying from the background, flagging suspect pixels
+///
+/// Pixels more than "rej" standard deviations from the background level (in flat-fielded images) have the
+/// corresponding pixel in the "suspect pixels" image incremented.  After accumulating over a suitable sample
+/// of images, bad pixels should have a high value in the suspect pixels image, allowing them to be
+/// identified.  The suspect pixels image is of type S32.
+psImage *pmMaskFlagSuspectPixels(psImage *out, ///< Suspected bad pixels image, or NULL
+                                 const pmReadout *readout, ///< Readout to inspect
+                                 float rej, ///< Rejection threshold (standard deviations)
+                                 psMaskType maskVal, ///< Mask value for statistics
+                                 float frac, ///< Fraction of pixels to consider
+                                 psRandom *rng ///< Random number generator
+                                );
+
+/// Identify bad pixels from the suspect pixels image
+///
+/// Bad pixels are identified from the suspect pixels image (accumulated over a large number of images).
+/// Pixels marked as suspect in more than "thresh" standard deviations from the mean are identified as bad
+/// pixels (output image).
+psImage *pmMaskIdentifyBadPixels(const psImage *suspects, ///< Accumulated suspect pixels image
+                                 float thresh, ///< Threshold for bad pixel (standard deviations)
+                                 psMaskType maskVal ///< Value to set for bad pixels
+                                );
+
+
+
+
 #endif
