X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=tools%2FclitkZeroVF.cxx;h=52b3a2af40784981ae0068bbaa52dccb86b4c533;hb=5578995d9a82792833333eeb3dd5c8ecac967293;hp=136ba357c27a7f802b7214c998c1082f0a44e965;hpb=0083c3fb2c66812489631c7551709d121de51625;p=clitk.git diff --git a/tools/clitkZeroVF.cxx b/tools/clitkZeroVF.cxx index 136ba35..52b3a2a 100644 --- a/tools/clitkZeroVF.cxx +++ b/tools/clitkZeroVF.cxx @@ -1,3 +1,20 @@ +/*========================================================================= + 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://www.centreleonberard.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 clitkZeroVF_cxx #define clitkZeroVF_cxx @@ -5,24 +22,25 @@ * @file clitkZeroVF.cxx * @author Joel Schaerer * @date July 20 10:14:53 2007 - * + * * @brief Creates a VF filled with zeros the size of the input VF - * + * */ // clitk include #include "clitkZeroVF_ggo.h" #include "clitkIO.h" #include "clitkImageCommon.h" +#include "clitkCommon.h" #include "clitkZeroVFGenericFilter.h" int main( int argc, char *argv[] ) { - + // Init command line GGO(clitkZeroVF, args_info); CLITK_INIT; - + //Creation of the generic filter clitk::ZeroVFGenericFilter::Pointer zeroVFGenericFilter= clitk::ZeroVFGenericFilter::New(); @@ -32,7 +50,7 @@ int main( int argc, char *argv[] ) zeroVFGenericFilter->SetVerbose(args_info.verbose_flag); //update - zeroVFGenericFilter->Update(); + CLITK_TRY_CATCH_EXIT(zeroVFGenericFilter->Update()); return EXIT_SUCCESS; } #endif