3 #include <tclap/CmdLine.h> 5 int main(
int argc,
char **argv)
7 TCLAP::CmdLine cmd(
"INRIA / IRISA - VisAGeS/Empenn Team",
' ',ANIMA_VERSION);
9 TCLAP::ValueArg<std::string> inArg(
"i",
"inputodf",
"ODF volume",
true,
"",
"ODF volume",cmd);
10 TCLAP::ValueArg<std::string> resArg(
"o",
"output",
"Result image",
true,
"",
"result GFA image",cmd);
12 TCLAP::ValueArg<unsigned int> nbpArg(
"p",
"numberofthreads",
"Number of threads to run on (default: all cores)",
false,itk::MultiThreaderBase::GetGlobalDefaultNumberOfThreads(),
"number of threads",cmd);
18 catch (TCLAP::ArgException& e)
20 std::cerr <<
"Error: " << e.error() <<
"for argument " << e.argId() << std::endl;
26 MainFilterType::Pointer mainFilter = MainFilterType::New();
27 mainFilter->SetInput(anima::readImage <MainFilterType::TInputImage> (inArg.getValue()));
28 mainFilter->SetNumberOfWorkUnits(nbpArg.getValue());
32 anima::writeImage <MainFilterType::TOutputImage> (resArg.getValue(),mainFilter->GetOutput());
int main(int argc, char **argv)