IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 18, 2006, 8:31:55 PM (20 years ago)
Author:
magnier
Message:

fixed handling of masks, fixed negative-radius errors in models

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/rel10_ifa/psModules/src/detrend/pmMaskBadPixels.h

    r6448 r6899  
    2424 *  @author Ross Harman, MHPCC
    2525 *
    26  *  @version $Revision: 1.2.12.1 $ $Name: not supported by cvs2svn $
    27  *  @date $Date: 2006-02-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 $
    2828 *
    2929 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3333#include "pmFPA.h"
    3434
     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
    3539/** Mask values */
    3640typedef 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
    4250} pmMaskValue;
    4351
    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 
     52bool pmReadoutSetMask(pmReadout *readout // Readout for which to set mask
     53                     );
     54bool pmReadoutSetWeight(pmReadout *readout // Readout for which to set weight
     55                       );
     56bool pmCellSetMaskWeight(pmCell *cell // Cell for which to set weights
     57                        );
    5058
    5159/** Execute bad pixels module.
Note: See TracChangeset for help on using the changeset viewer.