From 742083a0184b8f1b2f3b37a4888379a300b5e45a Mon Sep 17 00:00:00 2001 From: dsarrut Date: Fri, 29 Jan 2010 10:49:55 +0000 Subject: [PATCH] - binarize filter --- tools/clitkBinarizeImage.cxx | 43 ++++++++++++++++++++++++++++++++++++ tools/clitkBinarizeImage.ggo | 15 +++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 tools/clitkBinarizeImage.cxx create mode 100644 tools/clitkBinarizeImage.ggo diff --git a/tools/clitkBinarizeImage.cxx b/tools/clitkBinarizeImage.cxx new file mode 100644 index 0000000..ce10a07 --- /dev/null +++ b/tools/clitkBinarizeImage.cxx @@ -0,0 +1,43 @@ +/*------------------------------------------------------------------------ + + Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de + l'Image). All rights reserved. See Doc/License.txt or + http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details. + + This software is distributed WITHOUT ANY WARRANTY; without even + the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + PURPOSE. See the above copyright notices for more information. + + ------------------------------------------------------------------------*/ + +/* ================================================= + * @file clitkBinarizeImageGenericFilter.txx + * @author Jef Vandemeulebroucke + * @date 29 June 2009 + * + * @brief Binarize an image + * + ===================================================*/ + +// clitk +#include "clitkBinarizeImage_ggo.h" +#include "clitkBinarizeImageGenericFilter.h" + +//-------------------------------------------------------------------- +int main(int argc, char * argv[]) { + + // Init command line + GGO(clitkBinarizeImage, args_info); + CLITK_INIT; + + // Filter + clitk::BinarizeImageGenericFilter::Pointer filter = + clitk::BinarizeImageGenericFilter::New(); + + filter->SetArgsInfo(args_info); + filter->Update(); + + return EXIT_SUCCESS; +}// end main + +//-------------------------------------------------------------------- diff --git a/tools/clitkBinarizeImage.ggo b/tools/clitkBinarizeImage.ggo new file mode 100644 index 0000000..c974fe4 --- /dev/null +++ b/tools/clitkBinarizeImage.ggo @@ -0,0 +1,15 @@ +#File clitkBinarizeImage.ggo +Package "clitkBinarizeImage" +version "1.0" +purpose "" + +option "config" - "Config file" string no +option "imagetypes" - "Verbose available image type" flag off +option "verbose" v "Verbose" flag off + +option "input" i "Input image filename" string yes +option "output" o "Output image filename" string yes +option "lower" l "Lower intensity (default=min)" double no +option "upper" u "Upper intensity (default=max)" double no +option "inside" - "Inside value" double no default="1" +option "outside" - "Outside value" double no default="0" -- 2.47.1