X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=segmentation%2FclitkFillMask.cxx;h=231586d352010fdeaeb9f5c2aa511e7fa70cfeb8;hb=dd3badf7621c63f24a8dcfb831af3dcaf41fbe6c;hp=6fa48493736e4897564b495e78514b61862a7b90;hpb=35aafa245a1ba03aae1b908bfc2041414730259b;p=clitk.git diff --git a/segmentation/clitkFillMask.cxx b/segmentation/clitkFillMask.cxx index 6fa4849..231586d 100644 --- a/segmentation/clitkFillMask.cxx +++ b/segmentation/clitkFillMask.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 +===========================================================================*/ /*------------------------------------------------------------------------ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de @@ -10,16 +27,6 @@ ------------------------------------------------------------------------*/ -/* ================================================= - * @file clitkFillMask.cxx - * @author - * @date - * - * @brief - * - ===================================================*/ - - // clitk #include "clitkFillMask_ggo.h" #include "clitkIO.h" @@ -34,12 +41,17 @@ int main(int argc, char * argv[]) { CLITK_INIT; // Filter - clitk::FillMaskGenericFilter::Pointer genericFilter=clitk::FillMaskGenericFilter::New(); + typedef clitk::FillMaskGenericFilter FilterType; + FilterType::Pointer filter = FilterType::New(); - genericFilter->SetArgsInfo(args_info); - genericFilter->Update(); + filter->SetArgsInfo(args_info); + + try { + filter->Update(); + } catch(std::runtime_error e) { + std::cerr << e.what() << std::endl; + } return EXIT_SUCCESS; -}// end main - +} // This is the end, my friend //--------------------------------------------------------------------