X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=tools%2FclitkBinarizeImage.cxx;h=70d99926cab3c705e05204ea34709f7805998890;hb=b35856bdd1f55ef597d2a761597f58504b076c6b;hp=2f1cdee71f027c59b7da4d8901d5e52b2818dc47;hpb=870c69d4433f861755085ce2e398032223768a94;p=clitk.git diff --git a/tools/clitkBinarizeImage.cxx b/tools/clitkBinarizeImage.cxx index 2f1cdee..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" @@ -33,11 +33,8 @@ int main(int argc, char * argv[]) FilterType::Pointer filter = FilterType::New(); filter->SetArgsInfo(args_info); - filter->Update(); - if (filter->HasError()) { - std::cout << filter->GetLastError() << std::endl; - } + CLITK_TRY_CATCH_EXIT(filter->Update()); return EXIT_SUCCESS; } // This is the end, my friend