]> Creatis software - clitk.git/blob - tools/clitkComposeVFGenericFilter.h
Add 2 options to clitkImage2Dicom
[clitk.git] / tools / clitkComposeVFGenericFilter.h
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 #ifndef __clitkComposeVFGenericFilter_h
20 #define __clitkComposeVFGenericFilter_h
21
22 // clitk
23 #include "clitkIO.h"
24 #include "clitkImageCommon.h"
25 #include "clitkComposeVFFilter.h"
26
27 //itk 
28 #include "itkLightObject.h"
29 #include "itkImage.h"
30 #include "itkVector.h"
31
32 namespace clitk
33 {
34   
35   class ITK_EXPORT ComposeVFGenericFilter : public itk::LightObject
36   
37   {
38   public:
39     typedef ComposeVFGenericFilter     Self;
40     typedef itk::LightObject     Superclass;
41     typedef itk::SmartPointer<Self>            Pointer;
42     typedef itk::SmartPointer<const Self>      ConstPointer;
43    
44     /** Method for creation through the object factory. */
45     itkNewMacro(Self);  
46
47     /** Run-time type information (and related methods) */
48     itkTypeMacro( ComposeVFGenericFilter, ImageToImageFilter );
49   
50      //Set Methods (inline)
51     void SetInput1(const std::string m){m_InputName1=m;}
52     void SetInput2(const std::string m){m_InputName2=m;}
53     void SetOutput(const std::string m){m_OutputName=m;}
54     void SetLikeImage(const std::string like){m_LikeImage=like;}
55     void SetInputType(int t){m_Type=t;}
56     void SetVerbose(const bool m){m_Verbose=m;}
57  
58
59     //Update
60     void Update( );
61
62   protected:
63
64     ComposeVFGenericFilter();
65     ~ComposeVFGenericFilter() {};
66
67     //Templated members
68     template<unsigned int Dimension> void UpdateWithDim(std::string PixelType);
69     template<unsigned int Dimension, class PixelType> void UpdateWithDimAndPixelType(); 
70     
71     std::string m_InputName1;
72     std::string m_InputName2;
73     std::string m_OutputName;
74     std::string m_LikeImage;
75     int m_Type;
76     
77     bool m_Verbose;
78   
79   };
80
81
82 } // end namespace clitk
83 #ifndef ITK_MANUAL_INSTANTIATION
84 #include "clitkComposeVFGenericFilter.txx"
85 #endif
86
87 #endif // #define __clitkComposeVFGenericFilter_h