Changeset 9616 for trunk/psModules/src/detrend/pmMaskBadPixels.h
- Timestamp:
- Oct 17, 2006, 12:17:38 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/detrend/pmMaskBadPixels.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/detrend/pmMaskBadPixels.h
r7479 r9616 1 /** @file pmMaskBadPixels.h 2 * 3 * @brief Given an input image, a bad pixel mask, a corresponding value in the bad pixel mask to mask, a 4 * saturation level, and a growing radius, mask in the input image those pixels in the bad pixel mask that 5 * match the value to mask. 6 * 7 * Given an input image, in, a bad pixel mask, a corresponding value in the bad pixel mask to mask in the 8 * input image, maskVal, a saturation level, and a growing radius, pmMaskBadPixels shall mask in the input 9 * image those pixels in the bad pixel mask that match the value to mask. Note that the input image, in, is 10 * modified in-place. All pixels in the mask which satisfy the maskVal shall have their corresponding pixels 11 * masked in the input image, in. All pixels which satisfy the growVal shall have their corresponding 12 * pixels, along with all pixels within the grow radius masked. Pixels which have flux greater than sat shall 13 * also be masked, but not grown. Note that the input image, in, and the mask need not be the same size, 14 * since the input image may already have been trimmed (following overscan subtraction), but the function 15 * shall use the offsets in the image (in->x0 and in->y0) to determine the appropriate offsets to obtain the 16 * correct pixel on the mask. In the event that the mask image is too small (i.e., pixels on the input image 17 * refer to pixels outside the range of the mask image), the function shall generate an error. 18 * 19 * @author Ross Harman, MHPCC 20 * 21 * @version $Revision: 1.7 $ $Name: not supported by cvs2svn $ 22 * @date $Date: 2006-06-10 02:59:23 $ 23 * 24 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii 25 */ 1 /// @file pmMaskBadPixels.h 2 /// 3 /// @brief Mask bad pixels 4 /// 5 /// @ingroup Detrend 6 /// 7 /// @author Ross Harman, MHPCC 8 /// @author Eugene Magnier, IfA 9 /// 10 /// @version $Revision: 1.8 $ $Name: not supported by cvs2svn $ 11 /// @date $Date: 2006-10-17 22:17:38 $ 12 /// 13 /// Copyright 2004 Institute for Astronomy, University of Hawaii 14 /// 15 26 16 #ifndef PM_MASK_BAD_PIXELS_H 27 17 #define PM_MASK_BAD_PIXELS_H 28 18 29 #include "pslib.h"19 #include <pslib.h> 30 20 #include "pmFPA.h" 31 21 32 /** Execute bad pixels module. 33 * 34 * 35 * @return bool: True or false for success or failure 36 */ 37 38 bool pmMaskBadPixels(pmReadout *input, pmReadout *mask, psMaskType maskVal); 22 /// Applies the bad pixel mask to the input 23 /// 24 /// Pixels marked as bad within the mask are marked as bad within the input image's mask. If maskVal is 25 /// non-zero, all pixels in the mask have any of the same bits sets as maskVal shall have the corresponding 26 /// bits raised. If maskVal is zero, any zero pixels in the mask are OR-ed with PM_MASK_BAD. Position 27 /// offsets (such as due to trimming) between the input and mask are applied so that the same pixels are 28 /// referred to. The science readout must already have a supplied mask element (use eg. pmReadoutSetMask). 29 /// The supplied mask image must be of MASK type 30 bool pmMaskBadPixels(pmReadout *input, ///< Input science image 31 const pmReadout *mask, ///< Mask image to apply 32 psMaskType maskVal ///< Mask value to apply 33 ); 39 34 40 35 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
