ITK  4.6.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< typename TInputImage, typename TOutputImage, typename 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
Base class for all process objects that output image data.
unsigned long SizeValueType
Definition: itkIntTypes.h:143
virtual void SetRadius(const SizeValueType &radius)
CastImageFilter< InputImageType, OutputImageType > CastType
virtual void SetRadius(const RadiusType &radius)
virtual void SetNumberOfThreads(ThreadIdType nb)
A base class for all the filters working on a box neighborhood.
TInputImage::SizeType RadiusType
virtual void SetRadius(const RadiusType &)
BoxImageFilter< TInputImage, TOutputImage > Superclass
A separable filter for filter which are using radius.
Casts input pixels to output pixel type.
unsigned int ThreadIdType
Definition: itkIntTypes.h:159