- Timestamp:
- Mar 17, 2009, 12:08:50 PM (17 years ago)
- Location:
- branches/cnb_branches/cnb_branch_20090301
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/cnb_branches/cnb_branch_20090301
-
Property svn:mergeinfo
set to (toggle deleted branches)
/trunk merged eligible /branches/eam_branches/eam_branch_20090303 23158-23228
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
branches/cnb_branches/cnb_branch_20090301/ppImage
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/cnb_branches/cnb_branch_20090215/ppImage merged eligible /trunk/ppImage merged eligible /branches/cnb_branch_20090215/ppImage 21495-22685 /branches/eam_branches/eam_branch_20090303/ppImage 23158-23228
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
branches/cnb_branches/cnb_branch_20090301/ppImage/src/ppImageArguments.c
r19943 r23352 14 14 fprintf(stderr, "\t-chip CHIPNUM: Only process this chip number.\n"); 15 15 fprintf(stderr, "\t-norm VALUE: Divide through by this value when done.\n"); 16 fprintf(stderr, "\t-normlist file.mdc: normalizations by class_id.\n"); 16 17 fprintf(stderr, "\n"); 17 18 fprintf(stderr, "Input options (single file / file list):\n"); … … 80 81 if ((argnum = psArgumentGet(argc, argv, "-visual"))) { 81 82 psArgumentRemove(argnum, &argc, argv); 82 psphotSetVisual(true);83 pmVisualSetVisual(true); 83 84 } 84 85 … … 86 87 if ((argnum = psArgumentGet(argc, argv, "-threads"))) { 87 88 psArgumentRemove(argnum, &argc, argv); 88 int nThreads = atoi(argv[argnum]);89 int nThreads = atoi(argv[argnum]); 89 90 psMetadataAddS32(config->arguments, PS_LIST_TAIL, "NTHREADS", 0, "number of warp threads", nThreads); 90 91 psArgumentRemove(argnum, &argc, argv); 91 92 92 // create the thread pool with number of desired threads, supplying our thread launcher function93 // XXX need to determine the number of threads from the config data94 psThreadPoolInit (nThreads);93 // create the thread pool with number of desired threads, supplying our thread launcher function 94 // XXX need to determine the number of threads from the config data 95 psThreadPoolInit (nThreads); 95 96 } 96 97 … … 107 108 108 109 // the input file is a required argument; if not found, we will exit 109 bool status = pmConfigFileSetsMD (config->arguments, &argc, argv, "INPUT", "-file", "-list"); 110 if (!status) { 111 usage (); 112 } 110 pmConfigFileSetsMD (config->arguments, &argc, argv, "INPUT", "-file", "-list"); 113 111 114 112 // if these command-line options are supplied, load the file name lists into config->arguments … … 128 126 } 129 127 130 // Optional normali sation factor128 // Optional normalization factor 131 129 if ((argnum = psArgumentGet(argc, argv, "-norm"))) { 132 130 psArgumentRemove(argnum, &argc, argv); 133 131 float norm = atof(argv[argnum]); 134 psMetadataAddF32(config->arguments, PS_LIST_TAIL, "NORMALI SATION", 0,132 psMetadataAddF32(config->arguments, PS_LIST_TAIL, "NORMALIZATION", 0, 135 133 "Normalisation to apply", norm); 134 psArgumentRemove(argnum, &argc, argv); 135 } 136 137 // Optional per-class normalization table 138 if ((argnum = psArgumentGet(argc, argv, "-normlist"))) { 139 psArgumentRemove(argnum, &argc, argv); 140 141 unsigned int nFail = 0; 142 psMetadata *normlist = psMetadataConfigRead (NULL, &nFail, argv[argnum], false); 143 // XXX allow this file to be in nebulous? 144 145 psMetadataAddMetadata(config->arguments, PS_LIST_TAIL, "NORMALIZATION.TABLE", 0, "Normalization to apply", normlist); 146 psFree (normlist); 136 147 psArgumentRemove(argnum, &argc, argv); 137 148 }
Note:
See TracChangeset
for help on using the changeset viewer.
