IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 20138


Ignore:
Timestamp:
Oct 13, 2008, 6:09:05 PM (18 years ago)
Author:
Paul Price
Message:

Wasn't using the correct radius.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/objects/pmFootprintArrayGrow.c

    r18900 r20138  
    33 * @author RHL, Princeton & IfA; EAM, IfA
    44 *
    5  * @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
    6  * @date $Date: 2008-08-05 01:51:57 $
     5 * @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
     6 * @date $Date: 2008-10-14 04:09:05 $
    77 * Copyright 2006 Institute for Astronomy, University of Hawaii
    88 */
     
    4545    idImage = (psImage*)psBinaryOp(idImage, idImage, "MIN", psScalarAlloc(1, PS_TYPE_S32));
    4646    psImage *grownIdImage = psImageCopy(NULL, idImage, PS_TYPE_MASK);
    47     if (!psImageConvolveMask(grownIdImage, grownIdImage, 0x0f, 0xf0, -1, 1, -1, 1)) {
     47    if (!psImageConvolveMask(idImage, grownIdImage, 0x01, 0x01, -r, r, -r, r)) {
    4848        psError(PS_ERR_UNKNOWN, false, "Unable to grow mask.");
    4949        psFree(grownIdImage);
     
    5151        return NULL;
    5252    }
     53    psFree(grownIdImage);
     54    grownIdImage = idImage;
    5355#else
    5456    if (r <= 0) {
Note: See TracChangeset for help on using the changeset viewer.