Index: trunk/psModules/src/detrend/pmMaskBadPixels.h
===================================================================
--- trunk/psModules/src/detrend/pmMaskBadPixels.h	(revision 21183)
+++ trunk/psModules/src/detrend/pmMaskBadPixels.h	(revision 24113)
@@ -50,10 +50,24 @@
 /// high value in the suspect pixels image, allowing them to be identified.  The suspect pixels
 /// image is of type S32.  The relevant median and standard deviation must be supplied in the
-/// readout->analysis metadata as READOUT.MEDIAN, READOUT.STDEVe
-bool pmMaskFlagSuspectPixels(pmReadout *output, ///< Output readout, optionally with suspect pixels image
+/// readout->analysis metadata as READOUT.MEDIAN, READOUT.STDEV
+bool pmMaskFlagSuspectPixelsBySigma(pmReadout *output, ///< Output readout, optionally with suspect pixels image
                              const pmReadout *readout, ///< Readout to inspect
                              float median, ///< Image median
                              float stdev, ///< Image standard deviation
                              float rej, ///< Rejection threshold (standard deviations)
+                             psImageMaskType maskVal ///< Mask value for statistics
+    );
+
+/// Find out-of-range pixels and flag them
+///
+/// Pixels great > max or < min 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.  The relevant median and standard deviation must be supplied in the
+/// readout->analysis metadata as READOUT.MEDIAN, READOUT.STDEV
+bool pmMaskFlagSuspectPixelsByValue(pmReadout *output, ///< Output readout, optionally with suspect pixels image
+                             const pmReadout *readout, ///< Readout to inspect
+                             float min, ///< Image min acceptable value
+                             float max, ///< Image max acceptable value
                              psImageMaskType maskVal ///< Mask value for statistics
     );
