ITK  6.0.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 * https://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
23namespace itk
24{
48template <typename TInputImage, typename TOutputImage, typename TFilter>
49class ITK_TEMPLATE_EXPORT MiniPipelineSeparableImageFilter : public BoxImageFilter<TInputImage, TOutputImage>
50{
51public:
52 ITK_DISALLOW_COPY_AND_MOVE(MiniPipelineSeparableImageFilter);
53
59
61 itkNewMacro(Self);
62
64 itkOverrideGetNameOfClassMacro(MiniPipelineSeparableImageFilter);
65
67 using InputImageType = TInputImage;
71 using PixelType = typename TInputImage::PixelType;
72 using OffsetType = typename TInputImage::OffsetType;
73
74 using OutputImageType = TOutputImage;
75 using OutputPixelType = typename TOutputImage::PixelType;
76
77 using FilterType = TFilter;
79
81 static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
82
85
86 void
87 SetRadius(const RadiusType &) override;
88
89 void
90 SetRadius(const SizeValueType & radius) override
91 {
92 // needed because of the overloading of the method
93 Superclass::SetRadius(radius);
94 }
95
96 void
97 Modified() const override;
98
99 void
101
102protected:
105
106 void
107 GenerateData() override;
108
109 typename FilterType::Pointer m_Filters[ImageDimension]{};
110 typename CastType::Pointer m_Cast{};
111};
112} // namespace itk
113
114#ifndef ITK_MANUAL_INSTANTIATION
115# include "itkMiniPipelineSeparableImageFilter.hxx"
116#endif
117
118#endif
A base class for all the filters working on a box neighborhood.
typename TInputImage::RegionType RegionType
typename TInputImage::SizeType SizeType
typename TInputImage::SizeType RadiusType
typename TInputImage::IndexType IndexType
typename TOutputImage::PixelType OutputPixelType
typename TInputImage::OffsetType OffsetType
Casts input pixels to output pixel type.
Base class for all process objects that output image data.
TOutputImage OutputImageType
A separable filter for filter which are using radius.
void SetNumberOfWorkUnits(ThreadIdType nb) override
void SetRadius(const SizeValueType &radius) override
~MiniPipelineSeparableImageFilter() override=default
void SetRadius(const RadiusType &) override
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
SmartPointer< Self > Pointer
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
unsigned int ThreadIdType
Definition: itkIntTypes.h:102
unsigned long SizeValueType
Definition: itkIntTypes.h:86