- Timestamp:
- Feb 17, 2011, 3:19:36 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20110213/ppTranslate/src/ppMopsMerge.c
r30532 r30675 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 … … 165 165 if (num == 0) { 166 166 //All detections were NULL?! 167 psTrace("ppMops.merge", 3, "All % d detections were NULL\n", detections->n);167 psTrace("ppMops.merge", 3, "All %ld detections were NULL\n", detections->n); 168 168 return NULL; 169 169 } 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.
