]> Creatis software - clitk.git/blob - tools/clitkWarpImage.cxx
Allow to display in all directions for images with size 2 and 3 in 3rd direction
[clitk.git] / tools / clitkWarpImage.cxx
1 /*=========================================================================
2   Program:   vv                     http://www.creatis.insa-lyon.fr/rio/vv
3
4   Authors belong to:
5   - University of LYON              http://www.universite-lyon.fr/
6   - Léon Bérard cancer center       http://www.centreleonberard.fr
7   - CREATIS CNRS laboratory         http://www.creatis.insa-lyon.fr
8
9   This software is distributed WITHOUT ANY WARRANTY; without even
10   the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11   PURPOSE.  See the copyright notices for more information.
12
13   It is distributed under dual licence
14
15   - BSD        See included LICENSE.txt file
16   - CeCILL-B   http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
17 ===========================================================================**/
18
19 /* =================================================
20  * @file   clitkWarpImage.cxx
21  * @author
22  * @date
23  *
24  * @brief
25  *
26  ===================================================*/
27
28
29 // clitk
30 #include "clitkWarpImage_ggo.h"
31 #include "clitkIO.h"
32 #include "clitkWarpImageGenericFilter.h"
33
34
35 //--------------------------------------------------------------------
36 int main(int argc, char * argv[])
37 {
38
39   // Init command line
40   GGO(clitkWarpImage, args_info);
41   CLITK_INIT;
42
43   if (args_info.coeff_given) {
44     if (args_info.verbose_flag)
45       std::cout<< "Using coefficient images, so forcing sapcing = 1.\n" << std::endl;
46     
47     args_info.spacing_arg = 1;
48   }
49
50   // Filter
51   clitk::WarpImageGenericFilter::Pointer genericFilter=clitk::WarpImageGenericFilter::New();
52
53   genericFilter->SetArgsInfo(args_info);
54   CLITK_TRY_CATCH_EXIT(genericFilter->Update());
55
56   return EXIT_SUCCESS;
57 }// end main
58
59 //--------------------------------------------------------------------