- Timestamp:
- Aug 25, 2012, 11:45:32 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20120805/Ohana/src/dvomerge/src/dvomergeImageIDs.c
r33963 r34356 21 21 return TRUE; 22 22 } 23 // this operation reads the PHU header (inDB.header) 23 24 if (!dvo_image_load (&inDB, VERBOSE, TRUE)) { 24 25 Shutdown ("can't read input image catalog %s", inDB.filename); 25 26 } 27 28 // read the header for the database ID? 29 char *indbID = dvomergeHistoryReadID (&inDB); 30 if (!indbID) { 31 Shutdown ("this database is missing a DVO database ID; please generate one before merging\n"); 32 } 26 33 27 34 /*** load output/Images.dat ***/ … … 41 48 } 42 49 50 dmhImage *history = dmhImageRead (&outDB); 51 if (!history) { 52 Shutdown ("error reading history for output database\n"); 53 } 54 43 55 // convert database table to internal structure & add to output image db 44 56 dvo_image_merge_dbs(IDmap, &outDB, &inDB); 45 57 dvo_image_unlock (&inDB); // unlock input 58 59 // add the new image db to merge history 60 // (updates header as well as history structure 61 if (!dmhImageAdd (&outDB, history, indbID)) { 62 Shutdown ("error reading history for output database\n"); 63 } 64 65 // XXX I need to pass the history structure back out somehow... 46 66 47 67 SetProtect (TRUE);
Note:
See TracChangeset
for help on using the changeset viewer.
