IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 13, 2007, 10:28:28 AM (19 years ago)
Author:
Paul Price
Message:

Restoring changes that were wiped when uploading the code to provide additional kernels.

File:
1 edited

Legend:

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

    r14106 r14195  
    66 * @author GLG, MHPCC
    77 *
    8  * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
    9  * @date $Date: 2007-07-10 23:54:26 $
     8 * @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
     9 * @date $Date: 2007-07-13 20:28:28 $
    1010 * Copyright 2004-207 Institute for Astronomy, University of Hawaii
    1111 */
     
    1919/// @addtogroup imcombine Image Combinations
    2020/// @{
     21
     22typedef 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
     33psImage *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    );
    2139
    2240/// Calculate the least-squares equation to match the image quality
     
    3856                              const psImage *refImage, ///< Reference image
    3957                              psImage *inImage, ///< Input image
    40                               psImage *mask, ///< Mask image
    41                               psMaskType badStampMaskVal, ///< Value to use in mask for bad stamp
     58                              psImage *subMask, ///< Subtraction mask
    4259                              const psVector *solution, ///< Solution vector
    4360                              int footprint, ///< Region to mask if stamp is bad
     
    5875                           const psImage *inImage, ///< Input image
    5976                           const psImage *inWeight, ///< Input weight map (or NULL)
    60                            const psImage *inMask, ///< Input mask (or NULL)
    61                            psMaskType maskVal, ///< Value to mask
     77                           const psImage *subMask, ///< Subtraction mask (or NULL)
    6278                           psMaskType blank, ///< Mask value for blank regions
    6379                           const psVector *solution, ///< The solution vector
Note: See TracChangeset for help on using the changeset viewer.