IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 28, 2016, 11:03:49 AM (10 years ago)
Author:
eugene
Message:

re-optimize by using bisection instead of a direct index for measure->imageID lookups

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/dvolens/include/dvolens.h

    r39487 r39489  
    1616  int NINDEX;
    1717} myIndexType;
     18
     19// a structure to define a sequence lookup
     20typedef struct {
     21  int minID;
     22  int maxID;
     23  int *value;
     24  int *sequence;
     25  int Nsequence;
     26  int NSEQUENCE;
     27} mySequenceType;
    1828
    1929typedef enum {
     
    8797
    8898int FindWarpGroups (void);
    89 int RecoverLensingIndex (Average *average, myIndexType *measureIndex, Lensing *lensing);
     99int RecoverLensingIndex (Average *average, mySequenceType *measureSeq, Lensing *lensing);
    90100void FreeWarpGroups (void);
    91101
     
    99109off_t getImageByID (off_t ID);
    100110
     111mySequenceType *mySequenceAlloc ();
     112int mySequenceFree (mySequenceType *mySequence);
     113int mySequenceSetSize (mySequenceType *mySequence, int Nmax);
     114int mySequenceSetValue (mySequenceType *mySequence, int value, int entry);
     115int mySequenceSort (mySequenceType *mySequence);
     116int mySequenceGetEntry (mySequenceType *mySequence, int value);
Note: See TracChangeset for help on using the changeset viewer.