Changeset 15801
- Timestamp:
- Dec 12, 2007, 6:06:59 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotRadialProfile.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotRadialProfile.c
r15562 r15801 1 1 # include "psphotInternal.h" 2 2 3 # define COMPARE(A,B) (radius->data.F32[A] < radius->data.F32[B]) 4 # define SWAPFUNC(TYPE,A,B) { \ 5 float tmp; \ 6 if (A != B) { \ 7 tmp = radius->data.F32[A]; \ 8 radius->data.F32[A] = radius->data.F32[B]; \ 9 radius->data.F32[B] = tmp; \ 10 tmp = flux->data.F32[A]; \ 11 flux->data.F32[A] = flux->data.F32[B]; \ 12 flux->data.F32[B] = tmp; \ 13 tmp = weight->data.F32[A]; \ 14 weight->data.F32[A] = weight->data.F32[B]; \ 15 weight->data.F32[B] = tmp; \ 16 } 17 3 18 bool psphotRadialProfile (pmSource *source, psMetadata *recipe, psMaskType maskVal) { 4 19 … … 40 55 flux->n = n; 41 56 42 // XXX need to sort here43 // SortVectorsByRadius (radius, flux, weight);57 // sort the vector set by the radius 58 PSSORT (radius->n, COMPARE, SWAPFUNC, NONE); 44 59 45 60 return true;
Note:
See TracChangeset
for help on using the changeset viewer.
