IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 26404


Ignore:
Timestamp:
Dec 14, 2009, 2:56:37 PM (16 years ago)
Author:
bills
Message:

Forget trying to pick and choose which values we return.
Include the Measure and Average in dvoDetection.

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

Legend:

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

    r26396 r26404  
    3030typedef struct {
    3131    int         valid;
     32    Average     ave;
     33    Measure     meas;
     34#ifdef notdef
    3235    int         objID;
    3336    int         catID;
     
    3538    uint64_t    pspsObjID;
    3639    uint64_t    pspsDetID;
     40#endif
    3741} dvoDetection;
     42
     43#define PSPS_OBJID(_d) (_d->ave.extID)
     44#define PSPS_DETID(_d) (_d->meas.extID)
    3845
    3946// dvoConfigRead
  • trunk/Ohana/src/libdvo/src/dvo_util.c

    r26403 r26404  
    6161        dvoConfig->skyTableFile[0] = 0;
    6262    }
    63 
    64 #ifdef notdef
    65   if (*CATMODE == 0) strcpy (CATMODE, "RAW");
    66   if (*CATFORMAT == 0) strcpy (CATFORMAT, "ELIXIR");
    67 #endif
    6863
    6964    sprintf (dvoConfig->photcodeFile, "%s/Photcodes.dat", dvoConfig->catdir);
     
    245240
    246241        det->valid     = 1;
     242        det->ave      = *a;
     243        det->meas     = *m;
     244#ifdef notdfe
    247245        det->objID     = a->objID;
    248246        det->catID     = m->catID;
     
    250248        det->pspsObjID = a->extID;
    251249        det->pspsDetID = m->extID;
     250#endif
    252251       
    253         if (det->detID > *pMaxDetID) {
    254             *pMaxDetID = det->detID;
     252        if ((int) det->meas.detID > *pMaxDetID) {
     253            *pMaxDetID = det->meas.detID;
    255254        }
    256255
     
    268267      int i;
    269268      for (i = 0; i < Ndetect; i++) {
    270            sorted[detections[i].detID] = detections[i];
     269           sorted[detections[i].meas.detID] = detections[i];
    271270      }
    272271      *results = sorted;
Note: See TracChangeset for help on using the changeset viewer.