IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 26, 2009, 11:29:27 AM (17 years ago)
Author:
bills
Message:

swap order of loops to speed things up at least 25 %
Now do

for each image { check list of points for ovarlap }

instead of

foreach point { check list of images }

Since the number of images is large and there is some setup time for each
one this is faster

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/getstar/include/dvoImagesAtCoords.h

    r24914 r25208  
    1818Coords *MOSAIC;         // carries the mosaic into ReadImageHeader
    1919
     20typedef struct {
     21    int     id;
     22    double  ra;
     23    double  dec;
     24    int     Nmatches;
     25    int     *matches;
     26    int     arrayLength;
     27} Point;
     28
    2029int WITH_PHU;
    2130int SOLO_PHU;
     
    3342Image *ReadImageFiles (char *filename, int *Nimages);
    3443int ReadImageHeader (Header *header, Image *image);
    35 int *MatchCoords(Image *, int, double, double, int *);
     44int MatchCoords(Image *, int, Point *, int);
    3645
    3746int GetFileMode (Header *header);
    38 // int edge_check (double *x1, double *y1, double *x2, double *y2);
    39 // double opening_angle (double x1, double y1, double x2, double y2, double x3, double y3);
Note: See TracChangeset for help on using the changeset viewer.