Changeset 15322
- Timestamp:
- Oct 16, 2007, 3:56:58 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/detrend/pmShifts.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/detrend/pmShifts.c
r14332 r15322 467 467 // Purposely ignoring the weight map --- don't care about the weight map for a detrend image 468 468 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; 477 474 } 478 475
Note:
See TracChangeset
for help on using the changeset viewer.
