IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 14739


Ignore:
Timestamp:
Sep 4, 2007, 2:15:28 PM (19 years ago)
Author:
Paul Price
Message:

Give pmSubtractionBorder a size, rather than the NULL kernel (since kernel is now dependent on the region, not the whole image, though the size is generally constant).

Location:
trunk/psModules/src/imcombine
Files:
3 edited

Legend:

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

    r14738 r14739  
    44 *  @author GLG, MHPCC
    55 *
    6  *  @version $Revision: 1.55 $ $Name: not supported by cvs2svn $
    7  *  @date $Date: 2007-09-04 23:56:07 $
     6 *  @version $Revision: 1.56 $ $Name: not supported by cvs2svn $
     7 *  @date $Date: 2007-09-05 00:15:28 $
    88 *
    99 *  Copyright 2004-2007 Institute for Astronomy, University of Hawaii
     
    11391139
    11401140bool pmSubtractionBorder(psImage *image, psImage *weight, psImage *mask,
    1141                          const pmSubtractionKernels *kernels, psMaskType blank)
     1141                         int size, psMaskType blank)
    11421142{
    11431143    PS_ASSERT_IMAGE_NON_NULL(image, false);
     
    11561156    int numCols = image->numCols, numRows = image->numRows; // Image dimensions
    11571157
    1158     int size = kernels->size;           // Half-size of kernel
    11591158    for (int y = size; y < numRows - size; y++) {
    11601159        for (int x = 0; x < size; x++) {
  • trunk/psModules/src/imcombine/pmSubtraction.h

    r14738 r14739  
    66 * @author GLG, MHPCC
    77 *
    8  * @version $Revision: 1.15 $ $Name: not supported by cvs2svn $
    9  * @date $Date: 2007-09-04 23:56:07 $
     8 * @version $Revision: 1.16 $ $Name: not supported by cvs2svn $
     9 * @date $Date: 2007-09-05 00:15:28 $
    1010 *
    1111 * Copyright 2004-207 Institute for Astronomy, University of Hawaii
     
    9696                         psImage *weight, ///< Weight map (or NULL)
    9797                         psImage *mask, ///< Mask (or NULL)
    98                          const pmSubtractionKernels *kernels, ///< Kernel parameters (for kernel size)
     98                         int size,      ///< Kernel half-size
    9999                         psMaskType blank ///< Mask value for blank regions
    100100    );
  • trunk/psModules/src/imcombine/pmSubtractionMatch.c

    r14738 r14739  
    455455    stampsData = NULL;
    456456
    457     if (!pmSubtractionBorder(convolved->image, convolved->weight, convolved->mask, kernels, maskBlank)) {
     457    if (!pmSubtractionBorder(convolved->image, convolved->weight, convolved->mask, size, maskBlank)) {
    458458        psError(PS_ERR_UNKNOWN, false, "Unable to set border of convolved image.");
    459459        goto ERROR;
Note: See TracChangeset for help on using the changeset viewer.