]> Creatis software - clitk.git/blob - tools/clitkCropImage.cxx
Debug RTStruct conversion with empty struc
[clitk.git] / tools / clitkCropImage.cxx
1
2 /*=========================================================================
3   Program:   vv                     http://www.creatis.insa-lyon.fr/rio/vv
4
5   Authors belong to:
6   - University of LYON              http://www.universite-lyon.fr/
7   - Léon Bérard cancer center       http://www.centreleonberard.fr
8   - CREATIS CNRS laboratory         http://www.creatis.insa-lyon.fr
9
10   This software is distributed WITHOUT ANY WARRANTY; without even
11   the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12   PURPOSE.  See the copyright notices for more information.
13
14   It is distributed under dual licence
15
16   - BSD        See included LICENSE.txt file
17   - CeCILL-B   http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
18 ===========================================================================**/
19
20 // clitk
21 #include "clitkCropImageGenericFilter.h"
22
23 //--------------------------------------------------------------------
24 int main(int argc, char * argv[])
25 {
26
27   // Init command line
28   GGO(clitkCropImage, args_info);
29   CLITK_INIT;
30
31   // Filter
32   typedef clitk::CropImageGenericFilter FilterType;
33   FilterType::Pointer filter = FilterType::New();
34
35   filter->SetArgsInfo(args_info);
36
37   try { 
38     filter->Update();
39   } catch(std::runtime_error e) {
40     std::cout << e.what() << std::endl;
41   }
42
43   return EXIT_SUCCESS;
44 } // This is the end, my friend
45 //--------------------------------------------------------------------