Changeset 20758
- Timestamp:
- Nov 14, 2008, 5:09:34 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/imageops/psImageInterpolate.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/imageops/psImageInterpolate.c
r20333 r20758 7 7 * @author Paul Price, IfA 8 8 * 9 * @version $Revision: 1. 29$ $Name: not supported by cvs2svn $10 * @date $Date: 2008-1 0-22 22:28:44 $9 * @version $Revision: 1.30 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2008-11-15 03:09:34 $ 11 11 * 12 12 * Copyright 2004-2007 Institute for Astronomy, University of Hawaii … … 427 427 #define INTERPOLATE_RESULT() \ 428 428 psImageInterpolateStatus status = PS_INTERPOLATE_STATUS_ERROR; /* Status of interpolation */ \ 429 *imageValue = sum Image / sumKernel; \429 *imageValue = sumKernel > 0 ? sumImage / sumKernel : interp->badImage; \ 430 430 if (wantVariance) { \ 431 431 *varianceValue = sumVariance / (sumKernel2 - sumBad); \
Note:
See TracChangeset
for help on using the changeset viewer.
