IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 1465


Ignore:
Timestamp:
Aug 10, 2004, 4:39:30 PM (22 years ago)
Author:
Paul Price
Message:

Small changes to masking, so that can specify maskVal to be, e.g.,
PM_MASK_BADCOL | PM_MASK_SAT.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/archive/modules/include/phase2.h

    r1438 r1465  
    7979/** Mask values */
    8080typedef enum {
    81     PM_MASK_TRAP,                       ///< The pixel is a charge trap
    82     PM_MASK_BADCOL,                     ///< The pixel is a bad column
    83     PM_MASK_SAT,                        ///< The pixel is saturated
    84     PM_MASK_FLAT,                       ///< The pixel is non-positive in the flat-field
    85     PM_MASK_CR_MORPH                    ///< The pixel is determined to be a cosmic ray, from morphology
     81    PM_MASK_TRAP       = 0x0001,        ///< The pixel is a charge trap
     82    PM_MASK_BADCOL     = 0x0002,        ///< The pixel is a bad column
     83    PM_MASK_SAT        = 0x0004,        ///< The pixel is saturated
     84    PM_MASK_FLAT       = 0x0008,        ///< The pixel is non-positive in the flat-field
     85    PM_MASK_CR_MORPH   = 0x000F,        ///< The pixel is determined to be a cosmic ray, from morphology
    8686} pmMaskValue;
    8787
     
    8989psReadout *pmMaskBadPixels(psReadout *in, ///< Image to be masked, and output
    9090                           const psImage *mask, ///< Bad pixel mask to apply
    91                            int maskVal, ///< Mask the pixels for which mask & maskVal > 0.
     91                           unsigned int maskVal, ///< Mask the pixels for which mask & maskVal > 0.
    9292                           float sat, ///< Saturation level: pixels brighter than this level are masked
    9393                           int grow ///< Radius to grow the bad pixels
Note: See TracChangeset for help on using the changeset viewer.