IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 15322


Ignore:
Timestamp:
Oct 16, 2007, 3:56:58 PM (19 years ago)
Author:
Paul Price
Message:

Updating to use new API for psImageConvolveMask.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/detrend/pmShifts.c

    r14332 r15322  
    467467    // Purposely ignoring the weight map --- don't care about the weight map for a detrend image
    468468
    469     if (maskVal && detrend->mask) {
    470         psImage *convolved = psImageConvolveMask(detrend->mask, maskVal, kernel);
    471         if (!convolved) {
    472             psError(PS_ERR_UNKNOWN, false, "Unable to convolve detrend mask.");
    473             return false;
    474         }
    475         psFree(detrend->mask);
    476         detrend->mask = convolved;
     469    if (maskVal && detrend->mask && !psImageConvolveMaskDirect(detrend->mask, detrend->mask, maskVal, 0,
     470                                                               kernel->xMin, kernel->xMax,
     471                                                               kernel->yMin, kernel->yMax)) {
     472        psError(PS_ERR_UNKNOWN, false, "Unable to convolve detrend mask.");
     473        return false;
    477474    }
    478475
Note: See TracChangeset for help on using the changeset viewer.