ITK  4.3.0
Insight Segmentation and Registration Toolkit
itkMiniPipelineSeparableImageFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef __itkMiniPipelineSeparableImageFilter_h
19 #define __itkMiniPipelineSeparableImageFilter_h
20 
21 #include "itkBoxImageFilter.h"
22 
23 namespace itk
24 {
49 template< class TInputImage, class TOutputImage, class TFilter >
51  public BoxImageFilter< TInputImage, TOutputImage >
52 {
53 public:
59 
61  itkNewMacro(Self);
62 
66 
68  typedef TInputImage InputImageType;
69  typedef typename TInputImage::RegionType RegionType;
70  typedef typename TInputImage::SizeType SizeType;
71  typedef typename TInputImage::IndexType IndexType;
72  typedef typename TInputImage::PixelType PixelType;
73  typedef typename TInputImage::OffsetType OffsetType;
74 
75  typedef TOutputImage OutputImageType;
76  typedef typename TOutputImage::PixelType OutputPixelType;
77 
78  typedef TFilter FilterType;
80 
82  itkStaticConstMacro(ImageDimension, unsigned int, TInputImage::ImageDimension);
83 
85  typedef typename TInputImage::SizeType RadiusType;
86 
87  virtual void SetRadius(const RadiusType &);
88 
89  virtual void SetRadius(const SizeValueType & radius)
90  {
91  // needed because of the overloading of the method
92  Superclass::SetRadius(radius);
93  }
94 
95  virtual void Modified() const;
96 
97  virtual void SetNumberOfThreads(ThreadIdType nb);
98 
99 protected:
102 
103  void GenerateData();
104 
105  typename FilterType::Pointer m_Filters[ImageDimension];
107 
108 private:
109  MiniPipelineSeparableImageFilter(const Self &); //purposely not implemented
110  void operator=(const Self &); //purposely not implemented
111 };
112 }
113 
114 #ifndef ITK_MANUAL_INSTANTIATION
115 #include "itkMiniPipelineSeparableImageFilter.hxx"
116 #endif
117 
118 #endif
119