MCPcopy Create free account
hub / github.com/MITK/MITK / SetupParser

Function SetupParser

Modules/MatchPointRegistration/cmdapps/MatchImage.cpp:56–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54};
55
56void SetupParser(mitkCommandLineParser& parser)
57{
58 parser.setTitle("Match Image");
59 parser.setCategory("Registration Tools");
60 parser.setDescription("");
61 parser.setContributor("MIC, German Cancer Research Center (DKFZ)");
62
63 parser.setArgumentPrefix("--", "-");
64 // Add command line argument names
65 parser.beginGroup("Required I/O parameters");
66
67 parser.addArgument(
68 "moving", "m",
69 mitkCommandLineParser::File,
70 "Moving image files", "Path to the data that should be registered into the target space.",
71 us::Any(), false, false, false, mitkCommandLineParser::Input);
72
73 parser.addArgument(
74 "target", "t",
75 mitkCommandLineParser::File,
76 "Target image files", "Path to the data that should be the target data on which the moving data should be registered.",
77 us::Any(), false, false, false, mitkCommandLineParser::Input);
78
79 parser.addArgument(
80 "algorithm", "a",
81 mitkCommandLineParser::File,
82 "Registration algorithm", "Path to the registration algorithm that should be used for registration.",
83 us::Any(), false, false, false, mitkCommandLineParser::Input);
84
85 parser.addArgument(
86 "output", "o",
87 mitkCommandLineParser::File,
88 "Output file path",
89 "Path to the generated registration.",
90 us::Any(),
91 false, false, false, mitkCommandLineParser::Output);
92 parser.endGroup();
93
94 parser.beginGroup("Optional parameters");
95
96 parser.addArgument(
97 "moving_mask", "mm",
98 mitkCommandLineParser::File,
99 "Moving image mask", "Path to the data that should be used to mask the moving image for registration.",
100 us::Any(),
101 true, false, false);
102
103 parser.addArgument(
104 "moving_mask_label", "mml",
105 mitkCommandLineParser::String,
106 "Moving image mask label", "Name of the label to use for masking of the moving image. (required if there are multiple labels in the selected mask).",
107 us::Any(),
108 true, false, false);
109
110 parser.addArgument(
111 "target_mask", "tm",
112 mitkCommandLineParser::File,
113 "Target image mask", "Path to the data that should be used to mask the target image for registration.",

Callers 1

mainFunction · 0.85

Calls 9

setCategoryMethod · 0.80
setContributorMethod · 0.80
setArgumentPrefixMethod · 0.80
beginGroupMethod · 0.80
addArgumentMethod · 0.80
endGroupMethod · 0.80
AnyClass · 0.50
setTitleMethod · 0.45
setDescriptionMethod · 0.45

Tested by

no test coverage detected