Changeset 9594 for trunk/psModules/src/camera/pmFPAMaskWeight.h
- Timestamp:
- Oct 16, 2006, 4:21:03 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/camera/pmFPAMaskWeight.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPAMaskWeight.h
r7715 r9594 1 #ifndef PM_READOUT_MASK_WEIGHT_H 2 #define PM_READOUT_MASK_WEIGHT_H 1 /// @file pmFPAHeader.h 2 /// 3 /// @brief Functions read FITS headers for FPA components 4 /// 5 /// @ingroup Camera 6 /// 7 /// @author Paul Price, IfA 8 /// @author Eugene Magnier, IfA 9 /// 10 /// @version $Revision: 1.5 $ $Name: not supported by cvs2svn $ 11 /// @date $Date: 2006-10-17 02:21:03 $ 12 /// 13 /// Copyright 2005-2006 Institute for Astronomy, University of Hawaii 14 /// 15 #ifndef PM_FPA_MASK_WEIGHT_H 16 #define PM_FPA_MASK_WEIGHT_H 3 17 4 18 #include "pmFPA.h" 5 19 6 // these defines are necessary to yield 8-bit results (use instead of ~) 7 #define NOT_U8(A)(UCHAR_MAX-(A)) 8 #define NOT_U16(A)(USHORT_MAX-(A)) 9 10 /** Mask values */ 20 /// Pixel mask values 11 21 typedef enum { 12 22 PM_MASK_CLEAR = 0x00, ///< The pixel is not masked … … 21 31 } pmMaskValue; 22 32 23 // These functions set an extant mask/weight (or create a throwaway one). 24 // The throwaway case is intended for when the user is iterating using pmReadoutReadNext, in which case 25 // the HDU can't be generated 26 bool pmReadoutSetMask(pmReadout *readout // Readout for which to set mask 33 34 /// Set a temporary readout mask using CELL.SATURATION and CELL.BAD 35 /// 36 /// Identifies pixels that are saturated (>= CELL.SATURATION) or bad (<= CELL.BAD). The mask that is produced 37 /// within the readout is temporary --- it is not added to the HDU. This is intended for when the user is 38 /// iterating using pmReadoutReadNext, in which case the HDU can't be generated. 39 bool pmReadoutSetMask(pmReadout *readout ///< Readout for which to set mask 27 40 ); 28 bool pmReadoutSetWeight(pmReadout *readout // Readout for which to set weight 41 42 43 /// Set a temporary readout weight map using CELL.GAIN and CELL.READNOISE 44 /// 45 /// Calculates weights (actually variances) for each pixel using photon statistics and the cell gain 46 /// (CELL.GAIN) and read noise (CELL.READNOISE). The weight map that is produced within the readout is 47 /// temporary --- it is not added to the HDU. This is intended for when the user is iterating using 48 /// pmReadoutReadNext, in which case the HDU can't be generated. 49 bool pmReadoutSetWeight(pmReadout *readout ///< Readout for which to set weight 29 50 ); 30 51 31 // These functions generate a mask/weight suitable for output (complete with HDU entry) and then set them. 32 bool pmReadoutGenerateMask(pmReadout *readout // Readout for which to generate mask 52 /// Generate a readout mask (suitable for output) using CELL.SATURATION and CELL.BAD 53 /// 54 /// Identifies pixels that are saturated (>= CELL.SATURATION) or bad (<= CELL.BAD). The mask that is produced 55 /// is suitable for output (complete with HDU entry). This is intended for most operations. 56 bool pmReadoutGenerateMask(pmReadout *readout ///< Readout for which to generate mask 33 57 ); 34 bool pmReadoutGenerateWeight(pmReadout *readout // Readout for which to generate weight 58 59 /// Generate a weight map (suitable for output) using CELL.GAIN and CELL.READNOISE 60 /// 61 /// Calculates weights (actually variances) for each pixel using photon statistics and the cell gain 62 /// (CELL.GAIN) and read noise (CELL.READNOISE). The weight map that is produced within the readout is 63 /// suitable for output (complete with HDU entry). This is intended for most operations. 64 bool pmReadoutGenerateWeight(pmReadout *readout ///< Readout for which to generate weight 35 65 ); 36 66 37 // These functions are conveniences for pmReadoutGenerateMask and pmReadoutGenerateWeight. 38 bool pmCellGenerateMaskWeight(pmCell *cell // Cell for which to generate mask and weights 67 /// Generate mask and weight map for a readout 68 /// 69 /// Calls pmReadoutGenerateMask and pmReadoutGenerateWeight for the readout 70 bool pmReadoutGenerateMaskWeight(pmReadout *readout ///< Readout for which to generate mask and weights 71 ); 72 73 /// Generate mask and weight maps for all readouts within a cell 74 /// 75 /// Calls pmReadoutGenerateMaskWeight for each readout within the cell. 76 bool pmCellGenerateMaskWeight(pmCell *cell ///< Cell for which to generate mask and weights 39 77 ); 40 bool pmReadoutGenerateMaskWeight(pmReadout *readout // Readout for which to generate mask and weights 41 ); 78 42 79 43 80
Note:
See TracChangeset
for help on using the changeset viewer.
