IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 19, 2006, 10:37:35 AM (20 years ago)
Author:
magnier
Message:

merged PM_SOURCE_MASK with PM_MASK_xxx, merged pmFPAMaskWeight with pmMaskBadPixels

Location:
trunk/psModules/src/detrend
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/detrend/pmMaskBadPixels.c

    r6873 r6910  
    2424 *  @author Ross Harman, MHPCC
    2525 *
    26  *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
    27  *  @date $Date: 2006-04-17 18:10:08 $
     26 *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
     27 *  @date $Date: 2006-04-19 20:37:35 $
    2828 *
    2929 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    148148            /* Pixels which satisfy growVal and within the grow radius shall be masked */                    \
    149149            if(mask->data.PS_TYPE_MASK_DATA[j][i] & growVal) {                                               \
    150                 rowMin = MAX(j-grow, 0);                                                                     \
    151                 rowMax = MIN(j+grow+1, inImage->numRows);                                                    \
    152                 colMin = MAX(i-grow, 0);                                                                     \
    153                 colMax = MIN(i+grow+1, inImage->numCols);                                                    \
     150                rowMin = PS_MAX(j-grow, 0);                                                                     \
     151                rowMax = PS_MIN(j+grow+1, inImage->numRows);                                                    \
     152                colMin = PS_MAX(i-grow, 0);                                                                     \
     153                colMax = PS_MIN(i+grow+1, inImage->numCols);                                                    \
    154154                for(jj=rowMin; jj<rowMax; jj++) {                                                            \
    155155                    for(ii=colMin; ii<colMax; ii++) {                                                        \
  • trunk/psModules/src/detrend/pmMaskBadPixels.h

    r6872 r6910  
    2424 *  @author Ross Harman, MHPCC
    2525 *
    26  *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
    27  *  @date $Date: 2006-04-17 18:01:05 $
     26 *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
     27 *  @date $Date: 2006-04-19 20:37:35 $
    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.