From: dsarrut Date: Fri, 22 Oct 2010 07:40:20 +0000 (+0000) Subject: auto init args ggo X-Git-Tag: v1.2.0~320 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=02c49e8faa4b59536cd391f9169a406d0adf90c2;p=clitk.git auto init args ggo --- diff --git a/vv/vvToolBinarize.cxx b/vv/vvToolBinarize.cxx index 0e584d1..d2f3c6a 100644 --- a/vv/vvToolBinarize.cxx +++ b/vv/vvToolBinarize.cxx @@ -269,15 +269,11 @@ void vvToolBinarize::GetArgsInfoFromGUI() int good = cmdline_parser_ext(argc, argv, &args_info, &p); DD(good); */ - - mArgsInfo.imagetypes_flag = 0; - mArgsInfo.upper_given = 0; - mArgsInfo.lower_given = 0; + cmdline_parser_clitkBinarizeImage_init(&mArgsInfo); // Initialisation to default bool inverseBGandFG = false; mArgsInfo.lower_given = 1; mArgsInfo.lower_arg = mThresholdSlider1->GetValue(); - // DD(mArgsInfo.lower_arg); if (mRadioButtonLowerThan->isChecked()) { mArgsInfo.upper_given = 1; mArgsInfo.upper_arg = mThresholdSlider2->GetValue(); @@ -304,12 +300,12 @@ void vvToolBinarize::GetArgsInfoFromGUI() mArgsInfo.verbose_flag = false; - // Required (even if not used) - mArgsInfo.input_given = 0; - mArgsInfo.output_given = 0; + // // Required (even if not used) + // mArgsInfo.input_given = 0; + // mArgsInfo.output_given = 0; - mArgsInfo.input_arg = new char; - mArgsInfo.output_arg = new char; + // mArgsInfo.input_arg = new char; + // mArgsInfo.output_arg = new char; } //------------------------------------------------------------------------------ @@ -326,7 +322,6 @@ void vvToolBinarize::apply() clitk::BinarizeImageGenericFilter::New(); filter->SetInputVVImage(mCurrentImage); filter->SetArgsInfo(mArgsInfo); - filter->EnableReadOnDisk(false); filter->Update(); // Output