Changeset 10075 for trunk/psModules/src/camera/pmFPAMaskWeight.c
- Timestamp:
- Nov 17, 2006, 9:31:44 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/camera/pmFPAMaskWeight.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPAMaskWeight.c
r9830 r10075 210 210 psImage *image = readout->image; // The image pixels 211 211 readout->weight = (psImage*)psBinaryOp(readout->weight, image, "/", psScalarAlloc(gain, PS_TYPE_F32)); 212 213 // a negative weight is non-sensical. if the image value drops below 1, the weight must be 1. 214 readout->weight = (psImage*)psUnaryOp(readout->weight, readout->weight, "abs"); 215 readout->weight = (psImage*)psBinaryOp(readout->weight, readout->weight, "max", psScalarAlloc(1, PS_TYPE_F32)); 216 212 217 readout->weight = (psImage*)psBinaryOp(readout->weight, readout->weight, "+", 213 218 psScalarAlloc(readnoise*readnoise/gain/gain, PS_TYPE_F32));
Note:
See TracChangeset
for help on using the changeset viewer.
