Changeset 26404
- Timestamp:
- Dec 14, 2009, 2:56:37 PM (16 years ago)
- Location:
- trunk/Ohana/src/libdvo
- Files:
-
- 2 edited
-
include/dvo_util.h (modified) (2 diffs)
-
src/dvo_util.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/libdvo/include/dvo_util.h
r26396 r26404 30 30 typedef struct { 31 31 int valid; 32 Average ave; 33 Measure meas; 34 #ifdef notdef 32 35 int objID; 33 36 int catID; … … 35 38 uint64_t pspsObjID; 36 39 uint64_t pspsDetID; 40 #endif 37 41 } dvoDetection; 42 43 #define PSPS_OBJID(_d) (_d->ave.extID) 44 #define PSPS_DETID(_d) (_d->meas.extID) 38 45 39 46 // dvoConfigRead -
trunk/Ohana/src/libdvo/src/dvo_util.c
r26403 r26404 61 61 dvoConfig->skyTableFile[0] = 0; 62 62 } 63 64 #ifdef notdef65 if (*CATMODE == 0) strcpy (CATMODE, "RAW");66 if (*CATFORMAT == 0) strcpy (CATFORMAT, "ELIXIR");67 #endif68 63 69 64 sprintf (dvoConfig->photcodeFile, "%s/Photcodes.dat", dvoConfig->catdir); … … 245 240 246 241 det->valid = 1; 242 det->ave = *a; 243 det->meas = *m; 244 #ifdef notdfe 247 245 det->objID = a->objID; 248 246 det->catID = m->catID; … … 250 248 det->pspsObjID = a->extID; 251 249 det->pspsDetID = m->extID; 250 #endif 252 251 253 if ( det->detID > *pMaxDetID) {254 *pMaxDetID = det-> detID;252 if ((int) det->meas.detID > *pMaxDetID) { 253 *pMaxDetID = det->meas.detID; 255 254 } 256 255 … … 268 267 int i; 269 268 for (i = 0; i < Ndetect; i++) { 270 sorted[detections[i]. detID] = detections[i];269 sorted[detections[i].meas.detID] = detections[i]; 271 270 } 272 271 *results = sorted;
Note:
See TracChangeset
for help on using the changeset viewer.
