X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=segmentation%2FclitkMorphoMath.cxx;h=25c40df134f496ec960fab8db3032ae2dead8430;hb=HEAD;hp=9952fe573359e65e2bb692ff8306cfb54decbb0d;hpb=2f5b335da5621bdfc86cb594cc667d0929f4d8e3;p=clitk.git diff --git a/segmentation/clitkMorphoMath.cxx b/segmentation/clitkMorphoMath.cxx old mode 100755 new mode 100644 index 9952fe5..25c40df --- a/segmentation/clitkMorphoMath.cxx +++ b/segmentation/clitkMorphoMath.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,39 +14,32 @@ - BSD See included LICENSE.txt file - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html -======================================================================-====*/ +===========================================================================**/ #ifndef clitkMorphoMath_cxx #define clitkMorphoMath_cxx -/** - ================================================= - * @file clitkMorphoMath.cxx - * @author Jef Vandemeulebroucke - * @date 5 May 2009 - * - * @brief - =================================================*/ // clitk include #include "clitkMorphoMath_ggo.h" #include "clitkMorphoMathGenericFilter.h" -#include "clitkIO.h" -#include "clitkImageCommon.h" +//-------------------------------------------------------------------- int main(int argc, char * argv[]) { - //Init command line + // Init command line GGO(clitkMorphoMath,args_info); CLITK_INIT; - //Creation of a generic filter - clitk::MorphoMathGenericFilter::Pointer genericFilter = clitk::MorphoMathGenericFilter::New(); + // Creation of a generic filter + typedef clitk::MorphoMathGenericFilter FilterType; + FilterType::Pointer filter = FilterType::New(); - //Passing the arguments to the generic filter - genericFilter->SetArgsInfo(args_info); + // Passing the arguments to the generic filter + filter->SetArgsInfo(args_info); - //update - genericFilter->Update(); - return 0; -} + CLITK_TRY_CATCH_EXIT(filter->Update()); + + return EXIT_SUCCESS; +} // This is the end, my friend +//-------------------------------------------------------------------- #endif