4 #include <tclap/CmdLine.h> 6 int main(
int argc,
char **argv)
8 TCLAP::CmdLine cmd(
"INRIA / IRISA - VisAGeS/Empenn Team",
' ',ANIMA_VERSION);
10 TCLAP::ValueArg<std::string> inputArg(
"i",
"input-images",
"Input images",
true,
"",
"Label input images (list or 4D image)",cmd);
11 TCLAP::ValueArg<std::string> consensusImageArg(
"o",
"consensus-image",
"consensus label image",
true,
"",
"consensus image",cmd);
17 catch (TCLAP::ArgException& e)
19 std::cerr <<
"Error: " << e.error() <<
"for argument " << e.argId() << std::endl;
23 typedef itk::Image <unsigned int, 3> ImageType;
26 VotingFilterType::Pointer votingFilter = VotingFilterType::New();
27 anima::setMultipleImageFilterInputsFromFileName <ImageType,VotingFilterType> (inputArg.getValue(),votingFilter);
29 votingFilter->Update();
31 anima::writeImage <ImageType> (consensusImageArg.getValue(), votingFilter->GetOutput());
int main(int argc, char **argv)