29 #include <DGtal/base/Common.h>
30 #include <DGtal/io/readers/GenericReader.h>
31 #include <DGtal/helpers/StdDefs.h>
32 #include <DGtal/images/Image.h>
33 #include <DGtal/images/ImageContainerBySTLVector.h>
39 using namespace DGtal;
77 void missingParam ( std::string param )
79 trace.
error() <<
" Parameter: "<<param<<
" is required..";
85 int main(
int argc,
char**argv)
89 std::string inputFileName;
91 app.description(
"Retreive information from vol file\n Basic usage: \n \tvolInfo <volFileName> ");
92 app.add_option(
"-i,--input,1", inputFileName,
"Input vol file." )->required()->check(CLI::ExistingFile);
94 app.get_formatter()->column_width(40);
95 CLI11_PARSE(app, argc, argv);
104 trace.
info()<<
"Scanning the values:"<<std::endl;
106 std::map<unsigned char, size_t> values;
107 for(
auto v: imageC.range())
110 for(
auto val: values)
111 std::cout<<
"\tvalue "<< (int)val.first<<
": "<< val.second<<
" voxels."<<std::endl;
int main(int argc, char **argv)
void beginBlock(const std::string &keyword="")
Trace trace(traceWriterTerm)