ITK  6.0.0
Insight Toolkit
itkBinomialBlurImageFilter.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 itkBinomialBlurImageFilter_h
19#define itkBinomialBlurImageFilter_h
20
21#include "itkImageFunction.h"
24#include "itkSize.h"
25
26namespace itk
27{
43template <typename TInputImage, typename TOutputImage>
44class ITK_TEMPLATE_EXPORT BinomialBlurImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
45{
46public:
47 ITK_DISALLOW_COPY_AND_MOVE(BinomialBlurImageFilter);
48
54
56 itkNewMacro(Self);
57
59 itkOverrideGetNameOfClassMacro(BinomialBlurImageFilter);
60
62 static constexpr unsigned int NDimensions = TInputImage::ImageDimension;
63 static constexpr unsigned int NOutputDimensions = TOutputImage::ImageDimension;
64
66 using InputImageType = TInputImage;
67 using OutputImageType = TOutputImage;
71
74
77
79 using PixelType = typename TOutputImage::PixelType;
80
83
85 itkSetMacro(Repetitions, unsigned int);
86 itkGetConstMacro(Repetitions, unsigned int);
93 void
95
96#ifdef ITK_USE_CONCEPT_CHECKING
97 // Begin concept checking
100 itkConceptMacro(DoubleConvertibleToOutputCheck, (Concept::Convertible<double, PixelType>));
101 // End concept checking
102#endif
103
104protected:
106 ~BinomialBlurImageFilter() override = default;
107 void
108 PrintSelf(std::ostream & os, Indent indent) const override;
109
111 void
112 GenerateData() override;
113
114private:
116 unsigned int m_Repetitions{};
117};
118} // end namespace itk
119
120#ifndef ITK_MANUAL_INSTANTIATION
121# include "itkBinomialBlurImageFilter.hxx"
122#endif
123
124#endif
Performs a separable blur on each dimension of an image.
typename TOutputImage::IndexType IndexType
~BinomialBlurImageFilter() override=default
void GenerateInputRequestedRegion() override
typename TOutputImage::PixelType PixelType
void PrintSelf(std::ostream &os, Indent indent) const override
void GenerateData() override
Base class for all process objects that output image data.
typename OutputImageType::RegionType OutputImageRegionType
TOutputImage OutputImageType
typename OutputImageType::Pointer OutputImagePointer
Base class for filters that take an image as input and produce an image as output.
typename InputImageType::ConstPointer InputImageConstPointer
typename InputImageType::Pointer InputImagePointer
Control indentation during Print() invocation.
Definition: itkIndent.h:50
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Represent a n-dimensional size (bounds) of a n-dimensional image.
Definition: itkSize.h:70