IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 16, 2006, 4:21:03 PM (20 years ago)
Author:
Paul Price
Message:

Documenting pmFPAMaskWeight.[ch]. Moving NOT_U8 and NOT_U16 macros into psLib (and renamed with PS_ prefix). Updating other files that use these macros so that they compile.

File:
1 edited

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
    317
    418#include "pmFPA.h"
    519
    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
    1121typedef enum {
    1222    PM_MASK_CLEAR   = 0x00,   ///< The pixel is not masked
     
    2131} pmMaskValue;
    2232
    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.
     39bool pmReadoutSetMask(pmReadout *readout ///< Readout for which to set mask
    2740                     );
    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.
     49bool pmReadoutSetWeight(pmReadout *readout ///< Readout for which to set weight
    2950                       );
    3051
    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.
     56bool pmReadoutGenerateMask(pmReadout *readout ///< Readout for which to generate mask
    3357                          );
    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.
     64bool pmReadoutGenerateWeight(pmReadout *readout ///< Readout for which to generate weight
    3565                            );
    3666
    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
     70bool 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.
     76bool pmCellGenerateMaskWeight(pmCell *cell ///< Cell for which to generate mask and weights
    3977                             );
    40 bool pmReadoutGenerateMaskWeight(pmReadout *readout // Readout for which to generate mask and weights
    41                                 );
     78
    4279
    4380
Note: See TracChangeset for help on using the changeset viewer.