IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 10, 2007, 1:54:26 PM (19 years ago)
Author:
Paul Price
Message:

Adding additional convolution kernels: SPAM (binned pixels around a central single-pixel core) and FRIES (binning changes as a (Fibonacci-like) function of radius).

File:
1 edited

Legend:

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

    r13735 r14106  
    66 * @author GLG, MHPCC
    77 *
    8  * @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
    9  * @date $Date: 2007-06-09 01:04:02 $
     8 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
     9 * @date $Date: 2007-07-10 23:54:26 $
    1010 * Copyright 2004-207 Institute for Astronomy, University of Hawaii
    1111 */
     
    1919/// @addtogroup imcombine Image Combinations
    2020/// @{
    21 
    22 typedef enum {
    23     PM_SUBTRACTION_MASK_CLEAR     = 0x00, // No masking
    24     PM_SUBTRACTION_MASK_REF       = 0x01, // Reference image is bad
    25     PM_SUBTRACTION_MASK_INPUT     = 0x02, // Input image is bad
    26     PM_SUBTRACTION_MASK_CONVOLVE  = 0x04, // If convolved, would be bad
    27     PM_SUBTRACTION_MASK_FOOTPRINT = 0x08, // Bad pixel within the stamp footprint
    28     PM_SUBTRACTION_MASK_BORDER    = 0x10, // Image border
    29     PM_SUBTRACTION_MASK_REJ       = 0x20, // Previously tried as a stamp, and rejected
    30 } pmSubtractionMasks;
    31 
    32 /// Generate a mask for use in the subtraction process
    33 psImage *pmSubtractionMask(const psImage *inMask, ///< Mask for the input image
    34                            const psImage *refMask, ///< Mask for the reference image (will be convolved)
    35                            psMaskType maskVal, ///< Value to mask out
    36                            int size, ///< Half-size of the kernel (pmSubtractionKernels.size)
    37                            int footprint ///< Half-size of the kernel footprint
    38     );
    3921
    4022/// Calculate the least-squares equation to match the image quality
     
    5638                              const psImage *refImage, ///< Reference image
    5739                              psImage *inImage, ///< Input image
    58                               psImage *subMask, ///< Subtraction mask
     40                              psImage *mask, ///< Mask image
     41                              psMaskType badStampMaskVal, ///< Value to use in mask for bad stamp
    5942                              const psVector *solution, ///< Solution vector
    6043                              int footprint, ///< Region to mask if stamp is bad
     
    7558                           const psImage *inImage, ///< Input image
    7659                           const psImage *inWeight, ///< Input weight map (or NULL)
    77                            const psImage *subMask, ///< Subtraction mask (or NULL)
     60                           const psImage *inMask, ///< Input mask (or NULL)
     61                           psMaskType maskVal, ///< Value to mask
    7862                           psMaskType blank, ///< Mask value for blank regions
    7963                           const psVector *solution, ///< The solution vector
Note: See TracChangeset for help on using the changeset viewer.