Changeset 30656 for trunk/ppTranslate/src/ppMopsMerge.c
- Timestamp:
- Feb 16, 2011, 4:11:29 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/ppTranslate/src/ppMopsMerge.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppTranslate/src/ppMopsMerge.c
r30629 r30656 22 22 ) 23 23 { 24 float dx = detections->x->data.F32[index] - detections->naxis1->data.S32[index] / 2.0;25 float dy = detections->y->data.F32[index] - detections->naxis2->data.S32[index] / 2.0;26 return PS_SQR(dx) + PS_SQR(dy);24 float dx = (float) (detections->x->data.F32[index] - detections->naxis1->data.S32[index] / 2.0); 25 float dy = (float) (detections->y->data.F32[index] - detections->naxis2->data.S32[index] / 2.0); 26 return PS_SQR(dx) + PS_SQR(dy); 27 27 } 28 28 … … 170 170 psTrace("ppMops.merge", 2, "%ld sources in merged detections list\n", merged->num); 171 171 172 merged->seeing /= num;172 merged->seeing /= (float) num; 173 173 174 174 return merged;
Note:
See TracChangeset
for help on using the changeset viewer.
