Changeset 38755
- Timestamp:
- Sep 18, 2015, 6:44:27 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20150625/Ohana/src/dvomerge/src/dvorepairDeleteImagesByExternID.c
r38753 r38755 30 30 Image *image; 31 31 char *imageFilename = NULL; 32 char filename[DVO_MAX_PATH]; 32 33 33 34 N = get_argument (argc, argv, "-delete-images-by-extern-id"); … … 50 51 char *catdir = argv[1]; 51 52 char *delList = argv[2]; 53 54 sprintf (filename, "%s/Photcodes.dat", catdir); 55 if (!LoadPhotcodes (filename, NULL, FALSE)) { 56 fprintf (stderr, "error reading photcodes from %s\n", catdir); 57 exit (1); 58 } 52 59 53 60 // load the image data … … 219 226 if (!inlist[0].regions[i][0].table) continue; 220 227 221 char filename[DVO_MAX_PATH];222 228 snprintf (filename, DVO_MAX_PATH, "%s/%s.cpt", catdir, inlist[0].regions[i][0].name); 223 229 … … 230 236 catalog.Nsecfilt = GetPhotcodeNsecfilt (); 231 237 232 if (!dvo_catalog_open (&catalog, inlist[0].regions[i], VERBOSE, " r")) {238 if (!dvo_catalog_open (&catalog, inlist[0].regions[i], VERBOSE, "w")) { 233 239 fprintf (stderr, "ERROR: failure reading catalog %s\n", catalog.filename); 234 240 exit (1);
Note:
See TracChangeset
for help on using the changeset viewer.
