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