- Timestamp:
- May 3, 2010, 8:50:52 AM (16 years ago)
- Location:
- branches/simtest_nebulous_branches
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/simtest_nebulous_branches
- Property svn:mergeinfo changed
-
branches/simtest_nebulous_branches/psModules
-
Property svn:mergeinfo
set to (toggle deleted branches)
/trunk/psModules merged eligible /branches/eam_branches/stackphot.20100406/psModules 27623-27653 /branches/pap_delete/psModules 27530-27595
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
branches/simtest_nebulous_branches/psModules/src/objects/pmPeaks.c
r24623 r27840 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; … … 374 375 psU32 col = 0; 375 376 psU32 row = 0; 376 psArray *list = NULL;377 psArray *list = psArrayAllocEmpty(100); 377 378 378 379 // Find peaks in row 0 only. … … 415 416 416 417 } else { 417 ps Error(PS_ERR_UNKNOWN, true, "peak specifiedvalid column range.");418 psLogMsg ("psModules.objects", 5, "peak specified outside valid column range."); 418 419 } 419 420 } … … 500 501 } 501 502 } else { 502 psError(PS_ERR_UNKNOWN, true, "peak specified outside valid column range.");503 psLogMsg ("psModules.objects", 5, "peak specified outside valid column range."); 503 504 } 504 505 … … 544 545 } 545 546 } else { 546 ps Error(PS_ERR_UNKNOWN, true, "peak specified outside valid column range.");547 psLogMsg ("psModules.objects", 5, "peak specified outside valid column range."); 547 548 } 548 549 }
Note:
See TracChangeset
for help on using the changeset viewer.
