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 clitkMultiResolutionPyramidRegionFilter_h
19 #define clitkMultiResolutionPyramidRegionFilter_h
21 /* =================================================
22 * @file clitkMultiResolutionPyramidRegionFilter.h
28 ===================================================*/
33 #include "clitkCommon.h"
36 #include "itkLightObject.h"
41 template <class InputImageType>
42 class ITK_EXPORT MultiResolutionPyramidRegionFilter :
43 public itk::LightObject
46 //----------------------------------------
48 //----------------------------------------
49 typedef MultiResolutionPyramidRegionFilter Self;
50 typedef itk::LightObject 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( MultiResolutionPyramidRegionFilter, LightObject );
60 /** Dimension of the domain space. */
61 itkStaticConstMacro(InputImageDimension, unsigned int, InputImageType::ImageDimension);
64 //----------------------------------------
66 //----------------------------------------
67 typedef itk::ImageRegion<InputImageDimension> RegionType;
68 typedef itk::Array2D<unsigned int> ScheduleType;
69 typedef typename InputImageType::SizeType SizeType;
70 typedef typename InputImageType::IndexType IndexType;
72 //----------------------------------------
74 //----------------------------------------
75 void SetRegion(RegionType r){m_Region=r;}
76 void SetSchedule(ScheduleType r){m_Schedule=r;}
78 //----------------------------------------
80 //----------------------------------------
82 RegionType GetOutput(unsigned int i)
85 return m_RegionPyramid[i];
91 //----------------------------------------
92 // Constructor & Destructor
93 //----------------------------------------
94 MultiResolutionPyramidRegionFilter();
95 ~MultiResolutionPyramidRegionFilter() {};
97 //----------------------------------------
99 //----------------------------------------
101 std::vector<RegionType> m_RegionPyramid;
102 ScheduleType m_Schedule;
107 } // end namespace clitk
109 #ifndef ITK_MANUAL_INSTANTIATION
110 #include "clitkMultiResolutionPyramidRegionFilter.txx"
113 #endif // #define clitkMultiResolutionPyramidRegionFilter_h