From 00f07c87d82d07e3a284ca2990d586f49d68f8e4 Mon Sep 17 00:00:00 2001 From: David Sarrut Date: Fri, 16 Mar 2012 09:30:40 +0100 Subject: [PATCH] Small debug for args_info stuff --- segmentation/clitkRelativePositionList.txx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/segmentation/clitkRelativePositionList.txx b/segmentation/clitkRelativePositionList.txx index e0258d5..973f79f 100644 --- a/segmentation/clitkRelativePositionList.txx +++ b/segmentation/clitkRelativePositionList.txx @@ -87,6 +87,8 @@ Read(std::string filename) { std::ofstream os; openFileForWriting(os, tmpfilename); os << text; + os << "input = nothing" << std::endl; + os << "output = nothing" << std::endl; os.close(); // Create a struct to store options. I use two step to allow to @@ -97,14 +99,11 @@ Read(std::string filename) { std::copy(tmpfilename.begin(), tmpfilename.end(), writable.begin()); char ** argv = new char*[1]; argv[0] = new char[1]; - cmdline_parser_clitkRelativePosition2(1, argv, &args_info, 1, 1, 0); - args_info.input_given = 1; - args_info.input_arg = new char[1]; - args_info.output_given = 1; - args_info.output_arg = new char[1]; - cmdline_parser_clitkRelativePosition_configfile(&writable[0], &args_info, 0, 0, 1); - - // Store the args + struct cmdline_parser_clitkRelativePosition_params params; + params.override = 0; + params.initialize = 1; + params.check_required = 0; + cmdline_parser_clitkRelativePosition_configfile(&writable[0], &args_info, 1, 1, 1); mArgsInfoList.push_back(args_info); // Delete the temporary file @@ -157,6 +156,7 @@ GenerateOutputInformation() { text += " slice by slice"; } else text += " 3D"; + text += " spacing=" + toString(mArgsInfoList[i].spacing_arg); StartNewStep(text); typename RelPosFilterType::Pointer relPosFilter; -- 2.47.1