IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 1, 2006, 4:16:05 PM (20 years ago)
Author:
Paul Price
Message:

Restoring pmMaskBadPixels to the build (it has different functionality than pmReadoutSetMask, which only sets the mask on the basis of the image pixels, not on the basis of an independent bad pixel mask). Moved pmMaskValue to pmFPAMaskWeight.h, since it's related to the camera more than the detrend step. Changed a whole heap of #include statements to point to the new location.

File:
1 edited

Legend:

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

    r7060 r7283  
    1 //////////////////////////////////////////////////////////////////////////////////////////////////////////////
    2 // XXX WARNING: I have completely replaced this file with an OLD VERSION (that works) instead of the
    3 // one that was being worked on.
    4 //////////////////////////////////////////////////////////////////////////////////////////////////////////////
    5 
    61/** @file  pmMaskBadPixels.h
    72 *
     
    2419 *  @author Ross Harman, MHPCC
    2520 *
    26  *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
    27  *  @date $Date: 2006-05-04 03:57:32 $
     21 *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
     22 *  @date $Date: 2006-06-02 02:16:05 $
    2823 *
    2924 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
    3025 */
     26#ifndef PM_MASK_BAD_PIXELS_H
     27#define PM_MASK_BAD_PIXELS_H
    3128
    3229#include "pslib.h"
    3330#include "pmFPA.h"
    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 
    39 /** Mask values */
    40 typedef enum {
    41     PM_MASK_CLEAR   = 0x00,   ///< The pixel is not masked
    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
    50 } pmMaskValue;
    51 
    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                         );
    5831
    5932/** Execute bad pixels module.
     
    7447);
    7548
     49
     50#endif
Note: See TracChangeset for help on using the changeset viewer.