1 /*=========================================================================
2 Program: vv http://www.creatis.insa-lyon.fr/rio/vv
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
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.
13 It is distributed under dual licence
15 - BSD See included LICENSE.txt file
16 - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
17 ===========================================================================**/
18 #ifndef clitkVectorImageToImageFilter_h
19 #define clitkVectorImageToImageFilter_h
21 /* =================================================
22 * @file clitkVectorImageToImageFilter.h
28 ===================================================*/
33 #include "clitkCommon.h"
36 #include "itkImageToImageFilter.h"
41 template <class InputImageType, class OutputImageType>
42 class ITK_EXPORT VectorImageToImageFilter :
43 public itk::ImageToImageFilter<InputImageType, OutputImageType>
46 //----------------------------------------
48 //----------------------------------------
49 typedef VectorImageToImageFilter Self;
50 typedef itk::ImageToImageFilter<InputImageType, OutputImageType> Superclass;
51 typedef itk::SmartPointer<Self> Pointer;
52 typedef itk::SmartPointer<const Self> ConstPointer;
54 // Method for creation through the object factory
57 // Run-time type information (and related methods)
58 itkTypeMacro( VectorImageToImageFilter, ImageToImageFilter );
60 /** Dimension of the domain space. */
61 itkStaticConstMacro(InputImageDimension, unsigned int, Superclass::InputImageDimension);
62 itkStaticConstMacro(OutputImageDimension, unsigned int, Superclass::OutputImageDimension);
64 //----------------------------------------
66 //----------------------------------------
67 typedef typename OutputImageType::RegionType OutputImageRegionType;
69 //----------------------------------------
71 //----------------------------------------
72 itkBooleanMacro(Verbose);
73 itkSetMacro( Verbose, bool);
74 itkGetConstReferenceMacro( Verbose, bool);
75 itkSetMacro(ComponentIndex, unsigned int);
76 itkGetConstMacro(ComponentIndex, unsigned int);
80 //----------------------------------------
81 // Constructor & Destructor
82 //----------------------------------------
83 VectorImageToImageFilter();
84 ~VectorImageToImageFilter() {};
86 //----------------------------------------
88 //----------------------------------------
89 void ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread, int threadId );
91 //----------------------------------------
93 //----------------------------------------
95 unsigned int m_ComponentIndex;
100 } // end namespace clitk
102 #ifndef ITK_MANUAL_INSTANTIATION
103 #include "clitkVectorImageToImageFilter.txx"
106 #endif // #define clitkVectorImageToImageFilter_h