- Timestamp:
- Apr 18, 2006, 8:31:55 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/rel10_ifa/psModules/src/detrend/pmMaskBadPixels.h
r6448 r6899 24 24 * @author Ross Harman, MHPCC 25 25 * 26 * @version $Revision: 1.2.12. 1$ $Name: not supported by cvs2svn $27 * @date $Date: 2006-0 2-17 17:13:41$26 * @version $Revision: 1.2.12.2 $ $Name: not supported by cvs2svn $ 27 * @date $Date: 2006-04-19 06:31:55 $ 28 28 * 29 29 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 33 33 #include "pmFPA.h" 34 34 35 // these defines are necessary to yield 8-bit results (use instead of ~) 36 # define NOT_U8(A)(UCHAR_MAX-(A)) 37 # define NOT_U16(A)(USHORT_MAX-(A)) 38 35 39 /** Mask values */ 36 40 typedef enum { 37 PM_MASK_TRAP = 0x0001, ///< The pixel is a charge trap. 38 PM_MASK_BADCOL = 0x0002, ///< The pixel is a bad column. 39 PM_MASK_SAT = 0x0004, ///< The pixel is saturated. 40 PM_MASK_BAD = 0x0008, ///< The pixel is low 41 PM_MASK_FLAT = 0x0010 ///< The pixel is non-positive in the flat-field. 41 PM_MASK_CLEAR = 0x00, ///< The pixel is a charge trap. 42 PM_MASK_TRAP = 0x01, ///< The pixel is a charge trap. 43 PM_MASK_BADCOL = 0x02, ///< The pixel is a bad column. 44 PM_MASK_SAT = 0x04, ///< The pixel is saturated. 45 PM_MASK_BAD = 0x08, ///< The pixel is low 46 PM_MASK_FLAT = 0x10, ///< The pixel is non-positive in the flat-field. 47 PM_MASK_MARK = 0x20, ///< The pixel is marked as temporarily ignored 48 PM_MASK_EXT1 = 0x40, ///< This mask value is not used 49 PM_MASK_EXT2 = 0x80, ///< This mask value is not used 42 50 } pmMaskValue; 43 51 44 /** Macro to find maximum of two numbers */ 45 #define MAX(A,B)((A)>=(B)?(A):(B)) 46 47 /** Macro to find minimum of two numbers */ 48 #define MIN(A,B)((A)<=(B)?(A):(B)) 49 52 bool pmReadoutSetMask(pmReadout *readout // Readout for which to set mask 53 ); 54 bool pmReadoutSetWeight(pmReadout *readout // Readout for which to set weight 55 ); 56 bool pmCellSetMaskWeight(pmCell *cell // Cell for which to set weights 57 ); 50 58 51 59 /** Execute bad pixels module.
Note:
See TracChangeset
for help on using the changeset viewer.
