Changeset 6260 for trunk/ppImage/src/ppImageWeights.c
- Timestamp:
- Jan 30, 2006, 6:00:06 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ppImage/src/ppImageWeights.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppImage/src/ppImageWeights.c
r5858 r6260 1 # include "ppImage.h" 1 #include <stdio.h> 2 #include "pslib.h" 3 #include "pmFPA.h" 4 #include "ppImage.h" 2 5 3 6 bool ppReadoutWeights (pmReadout *readout) { … … 10 13 float rdnoise = 5.0; // in electrons 11 14 float gain = 2.0; // in e/ADU 12 15 13 16 float rgain = 1.0 / gain; 14 17 float rnoise = PS_SQR (rdnoise / gain); … … 19 22 20 23 for (int j = 0; j < image->numRows; j++) { 21 for (int i = 0; i < image->numCols; i++) {22 vM[j][i] = 0;23 vW[j][i] = PS_MAX (rgain * vI[j][i] + rnoise, 0.0);24 }24 for (int i = 0; i < image->numCols; i++) { 25 vM[j][i] = 0; 26 vW[j][i] = PS_MAX (rgain * vI[j][i] + rnoise, 0.0); 27 } 25 28 } 26 29 return true;
Note:
See TracChangeset
for help on using the changeset viewer.
