IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 22, 2008, 12:45:36 PM (18 years ago)
Author:
Paul Price
Message:

Reworking the masking so as to avoid exploding the number of bad pixels in the convolved image. Introduced the bad/poor distinction. Bad pixels that are convolved now have a large 'poor' halo in the mask, with a smaller 'bad' halo. Got rid of the 'FOOTPRINT' mask value (internal subtraction mask): there's no need to convolve the mask in order to find out if a sprinkling of footprints are bad (not sure this is so efficient when a list of sources isn't supplied), and I needed the mask bits to signify the difference between 'bad' and 'poor'. Tested on a single subtraction, which seems to work.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/imcombine/pmSubtraction.h

    r19122 r19164  
    66 * @author GLG, MHPCC
    77 *
    8  * @version $Revision: 1.28 $ $Name: not supported by cvs2svn $
    9  * @date $Date: 2008-08-19 00:44:42 $
     8 * @version $Revision: 1.29 $ $Name: not supported by cvs2svn $
     9 * @date $Date: 2008-08-22 22:45:36 $
    1010 * Copyright 2004-207 Institute for Astronomy, University of Hawaii
    1111 */
     
    2626/// Mask values for the subtraction mask
    2727typedef enum {
    28     PM_SUBTRACTION_MASK_CLEAR       = 0x00, // No masking
    29     PM_SUBTRACTION_MASK_BAD_1       = 0x01, // Image 1 is bad
    30     PM_SUBTRACTION_MASK_BAD_2       = 0x02, // Image 2 is bad
    31     PM_SUBTRACTION_MASK_CONVOLVE_1  = 0x04, // If image 1 is convolved, would be bad
    32     PM_SUBTRACTION_MASK_CONVOLVE_2  = 0x08, // If image 2 is convolved, would be bad
    33     PM_SUBTRACTION_MASK_FOOTPRINT_1 = 0x10, // Bad pixel within the stamp footprint of image 1
    34     PM_SUBTRACTION_MASK_FOOTPRINT_2 = 0x20, // Bad pixel within the stamp footprint of image 2
    35     PM_SUBTRACTION_MASK_BORDER      = 0x40, // Image border
    36     PM_SUBTRACTION_MASK_REJ         = 0x80, // Previously tried as a stamp, and rejected
     28    PM_SUBTRACTION_MASK_CLEAR          = 0x00, // No masking
     29    PM_SUBTRACTION_MASK_BAD_1          = 0x01, // Image 1 is bad
     30    PM_SUBTRACTION_MASK_BAD_2          = 0x02, // Image 2 is bad
     31    PM_SUBTRACTION_MASK_CONVOLVE_1     = 0x04, // If image 1 is convolved, would be poor or bad
     32    PM_SUBTRACTION_MASK_CONVOLVE_2     = 0x08, // If image 2 is convolved, would be poor or bad
     33    PM_SUBTRACTION_MASK_CONVOLVE_BAD_1 = 0x10, // If image 1 is convolved, would be bad
     34    PM_SUBTRACTION_MASK_CONVOLVE_BAD_2 = 0x20, // If image 2 is convolved, would be bad
     35    PM_SUBTRACTION_MASK_BORDER         = 0x40, // Image border
     36    PM_SUBTRACTION_MASK_REJ            = 0x80, // Previously tried as a stamp, and rejected
    3737} pmSubtractionMasks;
    3838
     
    104104                           const pmReadout *ro2, // Input image 2
    105105                           psImage *subMask, ///< Subtraction mask (or NULL)
    106                            psMaskType blank, ///< Mask value for blank regions
     106                           psMaskType maskBad, ///< Mask value to give bad pixels
     107                           psMaskType maskPoor, ///< Mask value to give poor pixels
     108                           float poorFrac, ///< Fraction for "poor"
    107109                           const psRegion *region, ///< Region to convolve (or NULL)
    108110                           const pmSubtractionKernels *kernels, ///< Kernel parameters
Note: See TracChangeset for help on using the changeset viewer.