Changeset 13660
- Timestamp:
- Jun 5, 2007, 3:12:24 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/pswarp/src/pswarpTransformReadout_Opt.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pswarp/src/pswarpTransformReadout_Opt.c
r13522 r13660 61 61 psImageInterpolateOptions *interp = psImageInterpolateOptionsAlloc(interpolationMode, inImage, 62 62 inVar, inMask, maskIn, NAN, NAN, 63 mask Poor, maskBad, poorFrac);63 maskBad, maskPoor, poorFrac); 64 64 65 65 psPlane *inPix = psPlaneAlloc(); // Coordinates on the input detector … … 75 75 outVarData = output->weight->data.F32; 76 76 } 77 if (inMask ) {77 if (inMask || maskPoor || maskBad) { 78 78 if (!output->mask) { 79 79 output->mask = psImageAlloc(output->image->numCols, output->image->numRows, PS_TYPE_MASK); … … 130 130 outVarData[y-outRow0][x-outCol0] = varValue; 131 131 } 132 if ( inMask) {132 if (outMaskData) { 133 133 outMaskData[y-outRow0][x-outCol0] = maskValue; 134 134 } 135 135 } 136 136 } 137 138 output->data_exists = true; 137 139 138 140 psFree(interp);
Note:
See TracChangeset
for help on using the changeset viewer.
