From: jef Date: Fri, 23 Jul 2010 13:11:31 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: v1.2.0~490 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=055956a3c0a50023358e5bcd5bfa08660a2810d1;p=clitk.git *** empty log message *** --- diff --git a/tools/clitkBinarizeImage.cxx b/tools/clitkBinarizeImage.cxx deleted file mode 100644 index 0d5b7c2..0000000 --- a/tools/clitkBinarizeImage.cxx +++ /dev/null @@ -1,41 +0,0 @@ -/*========================================================================= - Program: vv http://www.creatis.insa-lyon.fr/rio/vv - - Authors belong to: - - University of LYON http://www.universite-lyon.fr/ - - Léon Bérard cancer center http://oncora1.lyon.fnclcc.fr - - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr - - This software is distributed WITHOUT ANY WARRANTY; without even - the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - PURPOSE. See the copyright notices for more information. - - It is distributed under dual licence - - - BSD See included LICENSE.txt file - - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html -======================================================================-====*/ - -// clitk -#include "clitkBinarizeImage_ggo.h" -#include "clitkBinarizeImageGenericFilter.h" - -//-------------------------------------------------------------------- -int main(int argc, char * argv[]) -{ - - // Init command line - GGO(clitkBinarizeImage, args_info); - CLITK_INIT; - - // Filter - typedef clitk::BinarizeImageGenericFilter FilterType; - FilterType::Pointer filter = FilterType::New(); - - filter->SetArgsInfo(args_info); - filter->Update(); - - return EXIT_SUCCESS; -}// end main - -//-------------------------------------------------------------------- diff --git a/tools/clitkImageFillRegion.cxx b/tools/clitkImageFillRegion.cxx deleted file mode 100644 index fbb67aa..0000000 --- a/tools/clitkImageFillRegion.cxx +++ /dev/null @@ -1,114 +0,0 @@ -/*========================================================================= - Program: vv http://www.creatis.insa-lyon.fr/rio/vv - - Authors belong to: - - University of LYON http://www.universite-lyon.fr/ - - Léon Bérard cancer center http://oncora1.lyon.fnclcc.fr - - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr - - This software is distributed WITHOUT ANY WARRANTY; without even - the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - PURPOSE. See the copyright notices for more information. - - It is distributed under dual licence - - - BSD See included LICENSE.txt file - - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html -======================================================================-====*/ -#ifndef CLITKIMAGEREGIONFILL_CXX -#define CLITKIMAGEREGIONFILL_CXX -/** - ------------------------------------------------= - * @file clitkImageFillRegion.cxx - * @author David Sarrut - * @date 23 Feb 2008 - ------------------------------------------------=*/ - -// clitk include -#include "clitkImageFillRegion_ggo.h" -#include "clitkImageFillRegionGenericFilter.h" -#include "clitkIO.h" - -//-------------------------------------------------------------------- -int main(int argc, char * argv[]) -{ - - // Init command line - GGO(clitkImageFillRegion, args_info); - CLITK_INIT; - - // Read image dimension - itk::ImageIOBase::Pointer header = clitk::readImageHeader(args_info.input_arg); - unsigned int dim = header->GetNumberOfDimensions(); - - // Main filter - clitk::ImageFillRegionGenericFilter filter; - filter.SetInputFilename(args_info.input_arg); - filter.SetOutputFilename(args_info.output_arg); - filter.SetFillPixelValue(args_info.value_arg); - - if(!args_info.ellips_flag && !args_info.rect_flag) { - std::cerr << "ERROR : No type of region specified!"<< std::endl; - exit(-1); - } - - if(args_info.ellips_flag && args_info.rect_flag) { - std::cerr << "ERROR : Multiple types of regions specified!"<< std::endl; - exit(-1); - } - - if(args_info.rect_flag) { - if (args_info.size_given && args_info.start_given) { - // Check parameters - if (args_info.size_given != dim) { - std::cerr << "ERROR : image has " << dim << "dimensions, --size should have the same number of values." << std::endl; - exit(-1); - } - if (args_info.start_given != dim) { - std::cerr << "ERROR : image has " << dim << "dimensions, --size should have the same number of values." << std::endl; - exit(-1); - } - filter.SetRegion(args_info.size_arg, args_info.start_arg); - } else { - std::cerr << "ERROR : both size and start should be given!"<< std::endl; - exit(-1); - } - } - - if(args_info.ellips_flag) { - - std::vector c, a; - if (args_info.center_given) { - if (args_info.center_given != dim) { - std::cerr << "ERROR : image has " << dim << "dimensions, --center should have the same number of values." << std::endl; - exit(-1); - } - for(unsigned int i=0; i