17 #include "MiniAppManager.h"
19 #include <metaCommand.h>
20 #include "ctkCommandLineParser.h"
23 #include <boost/lexical_cast.hpp>
29 #define _USE_MATH_DEFINES
40 parser.
setCategory(
"Fiber Tracking and Processing Methods");
48 map<string, us::Any> parsedArgs = parser.
parseArguments(argc, argv);
49 if (parsedArgs.size()==0)
57 std::cout <<
"More than one input tractogram required!";
64 for (
int i=1; i<inFibs.size(); i++)
69 result = result->AddBundle(inputTractogram);
71 catch(...){ std::cout <<
"could not load: " << inFibs.at(i); }
75 catch (itk::ExceptionObject e)
80 catch (std::exception e)
82 std::cout << e.what();
87 std::cout <<
"ERROR!?!";
void setContributor(std::string contributor)
ValueType * any_cast(Any *operand)
std::map< std::string, us::Any > parseArguments(const StringContainerType &arguments, bool *ok=nullptr)
T::Pointer GetData(const std::string &name)
int FiberJoin(int argc, char *argv[])
Join multiple tractograms.
static bool SaveBaseData(mitk::BaseData *data, const std::string &path)
SaveBaseData Convenience method to save arbitrary baseData.
RegisterDiffusionMiniApp(FiberJoin)
void addArgument(const std::string &longarg, const std::string &shortarg, Type type, const std::string &argLabel, const std::string &argHelp=std::string(), const us::Any &defaultValue=us::Any(), bool optional=true, bool ignoreRest=false, bool deprecated=false)
Base Class for Fiber Bundles;.
void setCategory(std::string category)
static mitk::DataNode::Pointer LoadDataNode(const std::string &path)
LoadDataNode Method to load an arbitrary DataNode.
void setArgumentPrefix(const std::string &longPrefix, const std::string &shortPrefix)
std::vector< std::string > StringContainerType
void setTitle(std::string title)
void setDescription(std::string description)