ITK  5.2.0
Insight Toolkit
itkMiniPipelineSeparableImageFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright NumFOCUS
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>
50 class ITK_TEMPLATE_EXPORT MiniPipelineSeparableImageFilter : public BoxImageFilter<TInputImage, TOutputImage>
51 {
52 public:
53  ITK_DISALLOW_COPY_AND_MOVE(MiniPipelineSeparableImageFilter);
54 
60 
62  itkNewMacro(Self);
63 
66 
68  using InputImageType = TInputImage;
70  using SizeType = typename TInputImage::SizeType;
72  using PixelType = typename TInputImage::PixelType;
73  using OffsetType = typename TInputImage::OffsetType;
74 
75  using OutputImageType = TOutputImage;
76  using OutputPixelType = typename TOutputImage::PixelType;
77 
78  using FilterType = TFilter;
80 
82  static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
83 
86 
87  void
88  SetRadius(const RadiusType &) override;
89 
90  void
91  SetRadius(const SizeValueType & radius) override
92  {
93  // needed because of the overloading of the method
94  Superclass::SetRadius(radius);
95  }
96 
97  void
98  Modified() const override;
99 
100  void
101  SetNumberOfWorkUnits(ThreadIdType nb) override;
102 
103 protected:
105  ~MiniPipelineSeparableImageFilter() override = default;
106 
107  void
108  GenerateData() override;
109 
110  typename FilterType::Pointer m_Filters[ImageDimension];
112 };
113 } // namespace itk
114 
115 #ifndef ITK_MANUAL_INSTANTIATION
116 # include "itkMiniPipelineSeparableImageFilter.hxx"
117 #endif
118 
119 #endif
itk::RankImageFilter
Rank filter of a greyscale image.
Definition: itkRankImageFilter.h:70
itk::CastImageFilter
Casts input pixels to output pixel type.
Definition: itkCastImageFilter.h:104
itk::BoxImageFilter::OutputPixelType
typename TOutputImage::PixelType OutputPixelType
Definition: itkBoxImageFilter.h:67
itk::MiniPipelineSeparableImageFilter::m_Cast
CastType::Pointer m_Cast
Definition: itkMiniPipelineSeparableImageFilter.h:111
itk::MiniPipelineSeparableImageFilter
A separable filter for filter which are using radius.
Definition: itkMiniPipelineSeparableImageFilter.h:50
itk::GTest::TypedefsAndConstructors::Dimension2::SizeType
ImageBaseType::SizeType SizeType
Definition: itkGTestTypedefsAndConstructors.h:49
itk::SmartPointer< Self >
itk::BoxImageFilter
A base class for all the filters working on a box neighborhood.
Definition: itkBoxImageFilter.h:40
itk::BoxImageFilter::RadiusType
typename TInputImage::SizeType RadiusType
Definition: itkBoxImageFilter.h:73
itk::BoxImageFilter::OffsetType
typename TInputImage::OffsetType OffsetType
Definition: itkBoxImageFilter.h:62
itk::MiniPipelineSeparableImageFilter::SetRadius
void SetRadius(const SizeValueType &radius) override
Definition: itkMiniPipelineSeparableImageFilter.h:91
itk::ThreadIdType
unsigned int ThreadIdType
Definition: itkIntTypes.h:99
itk::GTest::TypedefsAndConstructors::Dimension2::IndexType
ImageBaseType::IndexType IndexType
Definition: itkGTestTypedefsAndConstructors.h:50
itk::ImageSource
Base class for all process objects that output image data.
Definition: itkImageSource.h:67
itk::BoxImageFilter::IndexType
typename TInputImage::IndexType IndexType
Definition: itkBoxImageFilter.h:61
itk::GTest::TypedefsAndConstructors::Dimension2::RegionType
ImageBaseType::RegionType RegionType
Definition: itkGTestTypedefsAndConstructors.h:54
itk::ImageToImageFilter::InputImageType
TInputImage InputImageType
Definition: itkImageToImageFilter.h:129
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::ProcessObject
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Definition: itkProcessObject.h:138
itkBoxImageFilter.h
itk::BoxImageFilter::SizeType
typename TInputImage::SizeType SizeType
Definition: itkBoxImageFilter.h:60
itk::MiniPipelineSeparableImageFilter< TInputImage, TOutputImage, RankImageFilter< TInputImage, TInputImage, FlatStructuringElement< TInputImage::ImageDimension > > >::PixelType
typename TInputImage::PixelType PixelType
Definition: itkMiniPipelineSeparableImageFilter.h:72
itk::SizeValueType
unsigned long SizeValueType
Definition: itkIntTypes.h:83
itk::ImageSource::OutputImageType
TOutputImage OutputImageType
Definition: itkImageSource.h:90
itk::BoxImageFilter::RegionType
typename TInputImage::RegionType RegionType
Definition: itkBoxImageFilter.h:59