IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 28, 2008, 6:04:19 PM (18 years ago)
Author:
Paul Price
Message:

We want a bad/poor mask distinction in the mask convolution for stacking. Again, otherwise the number of bad pixels just explodes. Since convolving a mask with the PSF-matching kernel is something we want to do in both stack rejection and normal convolution, pulled the code that determines the size of the 'bad' region into a separate function in pmSubtraction.c. Then pmStackReject basically does the same thing that's happening in pmSubtractionConvolve/convolveRegion: go through the image by footprints, convolve the footprint and plug the result back in to the original image. Small API change for pmStackReject. This is very effective in reducing the amount of bad pixels in the stacked image.

File:
1 edited

Legend:

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

    r19164 r19282  
    66 * @author GLG, MHPCC
    77 *
    8  * @version $Revision: 1.29 $ $Name: not supported by cvs2svn $
    9  * @date $Date: 2008-08-22 22:45:36 $
     8 * @version $Revision: 1.30 $ $Name: not supported by cvs2svn $
     9 * @date $Date: 2008-08-29 04:04:19 $
    1010 * Copyright 2004-207 Institute for Astronomy, University of Hawaii
    1111 */
     
    126126    );
    127127
     128/// Given pixel coordinates (x,y), generate a matrix where the elements (i,j) are x^i * y^j
     129///
     130/// Same as p_pmSubtractionPolynomial except that the normalisation is applied
     131psImage *p_pmSubtractionPolynomialFromCoords(psImage *output, ///< Output matrix, or NULL
     132                                             const pmSubtractionKernels *kernels, ///< Kernel parameters
     133                                             int numCols, int numRows, ///< Size of image of interest
     134                                             int x, int y ///< Position of interest
     135    );
     136
     137/// Return the radius from the centre of the convolution kernel that distinguishes "bad" and "poor" pixels
     138int p_pmSubtractionBadRadius(psKernel *preKernel, ///< Pre-calculated convolution kernel
     139                             const pmSubtractionKernels *kernels, ///< Kernel parameters
     140                             const psImage *polyValues, ///< Polynomial values
     141                             bool wantDual, ///< Calculate for the dual kernel?
     142                             float poorFrac ///< Fraction for "poor"
     143    );
     144
    128145/// @}
    129146#endif
Note: See TracChangeset for help on using the changeset viewer.