Changeset 12372
- Timestamp:
- Mar 8, 2007, 9:26:50 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotFindPeaks.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotFindPeaks.c
r11263 r12372 97 97 // get the peak flux from the unsmoothed image 98 98 // the peak pixel coords are guaranteed to be on the image 99 int row0 = readout->image->row0; 100 int col0 = readout->image->col0; 99 101 for (int i = 0; i < peaks->n; i++) { 100 102 pmPeak *peak = peaks->data[i]; 101 103 peak->SN = sqrt(peak->value*effArea); 102 peak->flux = readout->image->data.F32[peak->y ][peak->x];104 peak->flux = readout->image->data.F32[peak->y-row0][peak->x-col0]; 103 105 } 104 106
Note:
See TracChangeset
for help on using the changeset viewer.
