Changeset 25754 for trunk/psModules/src/objects/pmPeaks.c
- Timestamp:
- Oct 2, 2009, 3:11:32 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/objects/pmPeaks.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/objects/pmPeaks.c
r24623 r25754 60 60 // if min point is too deviant, use the peak value 61 61 // XXX need to calculate dx, dy correctly 62 // 0.5 PIX: peaks are calculated using the pixel index and converted here to pixel coords 62 63 if ((fabs(min.x) < 1.5) && (fabs(min.y) < 1.5)) { 63 peak->xf = min.x + ix + image->col0 ;64 peak->yf = min.y + iy + image->row0 ;64 peak->xf = min.x + ix + image->col0 + 0.5; 65 peak->yf = min.y + iy + image->row0 + 0.5; 65 66 66 67 // These errors are fractional errors, and should be scaled by the … … 73 74 peak->yf = PS_MAX (PS_MIN (peak->yf, image->numRows - 1), image->row0); 74 75 } else { 75 peak->xf = ix ;76 peak->yf = iy ;76 peak->xf = ix + 0.5; 77 peak->yf = iy + 0.5; 77 78 peak->dx = NAN; 78 79 peak->dy = NAN;
Note:
See TracChangeset
for help on using the changeset viewer.
