X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=tools%2FclitkBinarizeImage.cxx;h=70d99926cab3c705e05204ea34709f7805998890;hb=3566b753a5db63397cb87ca4dd84578238749ca4;hp=0d5b7c2cda60fb5c2c39de5fcc97a235474154ba;hpb=668abd5376f649fba792239768eec55f3783613d;p=clitk.git diff --git a/tools/clitkBinarizeImage.cxx b/tools/clitkBinarizeImage.cxx index 0d5b7c2..70d9992 100644 --- a/tools/clitkBinarizeImage.cxx +++ b/tools/clitkBinarizeImage.cxx @@ -3,7 +3,7 @@ Authors belong to: - University of LYON http://www.universite-lyon.fr/ - - Léon Bérard cancer center http://oncora1.lyon.fnclcc.fr + - Léon Bérard cancer center http://www.centreleonberard.fr - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr This software is distributed WITHOUT ANY WARRANTY; without even @@ -14,7 +14,7 @@ - BSD See included LICENSE.txt file - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html -======================================================================-====*/ +===========================================================================**/ // clitk #include "clitkBinarizeImage_ggo.h" @@ -29,13 +29,13 @@ int main(int argc, char * argv[]) CLITK_INIT; // Filter - typedef clitk::BinarizeImageGenericFilter FilterType; + typedef clitk::BinarizeImageGenericFilter FilterType; FilterType::Pointer filter = FilterType::New(); filter->SetArgsInfo(args_info); - filter->Update(); - return EXIT_SUCCESS; -}// end main + CLITK_TRY_CATCH_EXIT(filter->Update()); + return EXIT_SUCCESS; +} // This is the end, my friend //--------------------------------------------------------------------