@@ -115,8 +115,7 @@ int main(int argc, char* argv[]) {
115115 " Thresholds method" , " Choose between IIR*V (1) and M + STDV*V (2). (Default=2)" );
116116 parser.addArgument ( // optional
117117 " measurement-type" , " mt" , mitkCommandLineParser::Int,
118- " Measurement type" , " Choose between Mean (1), Max (2), Cumulative (3), Mode (4). (Default=2)"
119- );
118+ " Measurement type" , " Choose between Mean (1), Max (2), Cumulative (3), Mode (4). (Default=2)" );
120119 parser.addArgument ( // optional
121120 " single-voxel-projection" , " svp" , mitkCommandLineParser::Bool,
122121 " Single Voxel Projection" , " Project LGE voxels onto Scar Map ONLY ONCE (Default=OFF)" );
@@ -172,47 +171,57 @@ int main(int argc, char* argv[]) {
172171
173172 if (parsedArgs.end () != parsedArgs.find (" input-segmentation" )) {
174173 segFilename = us::any_cast<std::string>(parsedArgs[" input-segmentation" ]);
174+ std::cout << " Parsed [segFilename]: " << segFilename << ' \n ' ;
175175 }
176176
177177 if (parsedArgs.end () != parsedArgs.find (" output-subfolder" )) {
178178 output_subfolder = us::any_cast<std::string>(parsedArgs[" output-subfolder" ]);
179+ std::cout << " Parsed [output_subfolder]: " << output_subfolder << ' \n ' ;
179180 }
180181
181182 if (parsedArgs.end () != parsedArgs.find (" options-file" )) {
182183 options_file = us::any_cast<std::string>(parsedArgs[" options-file" ]);
184+ std::cout << " Parsed [options_file]: " << options_file << ' \n ' ;
183185 }
184186
185187 if (parsedArgs.end () != parsedArgs.find (" thresholds-method" )) {
186188 method = us::any_cast<int >(parsedArgs[" thresholds-method" ]);
189+ std::cout << " Parsed [method]: " << method << ' \n ' ;
187190 }
188191
189192 if (parsedArgs.end () != parsedArgs.find (" measurement-type" )) {
190193 measurement = us::any_cast<int >(parsedArgs[" measurement-type" ]);
194+ std::cout << " Parsed [measurement]: " << measurement << ' \n ' ;
191195 }
192196
193197 if (parsedArgs.end () != parsedArgs.find (" threshold-values" )) {
194198 inThresholdString = us::any_cast<std::string>(parsedArgs[" threshold-values" ]);
199+ std::cout << " Parsed [inThresholdString]: " << inThresholdString << ' \n ' ;
195200 }
196201
197202 if (parsedArgs.end () != parsedArgs.find (" single-voxel-projection" )) {
198203 singlevoxelprojection = us::any_cast<bool >(parsedArgs[" single-voxel-projection" ]);
204+ std::cout << " Parsed [singlevoxelprojection]: " << singlevoxelprojection << ' \n ' ;
199205 }
200- std::cout << " single voxel " << singlevoxelprojection << ' \n ' ;
201206
202207 if (parsedArgs.end () != parsedArgs.find (" roi-radius" )) {
203208 roi_radius = us::any_cast<bool >(parsedArgs[" roi-radius" ]);
209+ std::cout << " Parsed [roi_radius]: " << roi_radius << ' \n ' ;
204210 }
205211
206212 if (parsedArgs.end () != parsedArgs.find (" roi-limits" )) {
207- roi_limits = us::any_cast<bool >(parsedArgs[" roi-limits" ]);
213+ roi_limits = us::any_cast<std::string>(parsedArgs[" roi-limits" ]);
214+ std::cout << " Parsed [roi_limits]: " << roi_limits << ' \n ' ;
208215 }
209216
210217 if (parsedArgs.end () != parsedArgs.find (" roi-legacy-projection" )) {
211218 legacy_projection = us::any_cast<bool >(parsedArgs[" roi-legacy-projection" ]);
219+ std::cout << " Parsed [legacy_projection]: " << legacy_projection << ' \n ' ;
212220 }
213221
214222 if (parsedArgs.end () != parsedArgs.find (" verbose" )) {
215223 verbose = us::any_cast<bool >(parsedArgs[" verbose" ]);
224+ std::cout << " Parsed [verbose]: " << verbose << ' \n ' ;
216225 }
217226 std::cout << " verbose" << verbose << ' \n ' ;
218227
0 commit comments