93 app.description(" Converts any volumetric file (or .sdp file) to an OBJ one. Each grid point with value between [thresholdMin, thresholdMax] is exported as a unit cube.");
94 app.add_option("-i,--input,1", inputFileName, "vol file (.vol, .longvol .p3d, .pgm3d or .sdp and if WITH_ITK is selected: dicom, dcm, mha, mhd). For longvol, dicom, dcm, mha or mhd formats, the input values are linearly scaled between 0 and 255." )
95 ->required()
96 ->check(CLI::ExistingFile);
97 app.add_option("--output,-o,2",outputFileName ,"output file (.obj or .off).");
98 app.add_option("--thresholdMin,-m", thresholdMin, "threshold min (excluded) to define binary shape.", true);
99 app.add_option("--thresholdMax,-M", thresholdMax, "threshold max (included) to define binary shape.", true);
100 app.add_option("--rescaleInputMin", rescaleInputMin, "min value used to rescale the input intensity (to avoid basic cast into 8 bits image).", true);
101 app.add_option("--rescaleInputMax", rescaleInputMax, "max value used to rescale the input intensity (to avoid basic cast into 8 bits image).", true);
102
103
104 app.get_formatter()->column_width(40);
105 CLI11_PARSE(app, argc, argv);
106// END parse command line using CLI ----------------------------------------------