IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 2, 2010, 11:23:11 AM (16 years ago)
Author:
eugene
Message:

create match2d function in dvo; allow kapa bg to be "none"; better help on "break"; fit1 and fit2d recast the vectors; histogram can create an output index vector

Location:
trunk/Ohana/src/libdvo
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libdvo/include/dvo.h

    r27580 r27817  
    443443void sort_image_subset (Image *image, off_t *subset, off_t N);
    444444void sort_coords_index (double *X, double *Y, off_t *S, off_t N);
     445void sort_coords_indexonly (double *X, double *Y, off_t *S, off_t N);
    445446void sort_regions (SkyRegion *region, off_t N);
    446447
  • trunk/Ohana/src/libdvo/src/dvosorts.c

    r27435 r27817  
    4646}
    4747
     48/* sort a coordinate pair (X,Y) and the associated index (S) */
     49void sort_coords_indexonly (double *X, double *Y, off_t *S, off_t N) {
     50 
     51# define SWAPFUNC(A,B){ off_t itmp; \
     52  itmp = S[A]; S[A] = S[B]; S[B] = itmp; \
     53}
     54# define COMPARE(A,B)(X[S[A]] < X[S[B]])
     55
     56  OHANA_SORT (N, COMPARE, SWAPFUNC);
     57
     58# undef SWAPFUNC
     59# undef COMPARE
     60
     61}
     62
    4863void sort_regions (SkyRegion *region, off_t N) {
    4964
Note: See TracChangeset for help on using the changeset viewer.