Changeset 14355
- Timestamp:
- Jul 20, 2007, 3:09:05 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/imcombine/pmReadoutCombine.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/imcombine/pmReadoutCombine.c
r14352 r14355 254 254 } 255 255 256 // Check mask 257 psImage *roMask = readout->mask; // The mask image 258 if (roMask && roMask->data.U8[yIn][xIn] & maskVal) { 259 maskData[r] = 1; 260 continue; 261 } 262 256 263 if (params->weights) { 257 264 weightsData[r] = readout->weight->data.F32[yIn][xIn]; … … 266 273 weightsData[r] *= invScale->data.F32[r] * invScale->data.F32[r]; 267 274 } 268 }269 270 // Check mask271 psImage *roMask = readout->mask; // The mask image272 if (roMask && roMask->data.U8[yIn][xIn] & maskVal) {273 maskData[r] = 1;274 continue;275 275 } 276 276 … … 327 327 328 328 outputImage[yOut][xOut] = psStatsGetValue(stats, params->combine); 329 if (!isfinite(outputImage[yOut][xOut])) { 330 outputMask[yOut][xOut] = params->blank; 331 } 329 332 if (params->weights) { 330 333 float stdev = psStatsGetValue(stats, combineStdev);
Note:
See TracChangeset
for help on using the changeset viewer.
