ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
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;
68 using OutputImagePointer = typename OutputImageType::Pointer;
69 using InputImagePointer = typename InputImageType::Pointer;
70 using InputImageConstPointer = typename InputImageType::ConstPointer;
71
74
76 using IndexType = typename TOutputImage::IndexType;
77
79 using PixelType = typename TOutputImage::PixelType;
80
82 using OutputImageRegionType = typename TOutputImage::RegionType;
83
85 itkSetMacro(Repetitions, unsigned int);
86 itkGetConstMacro(Repetitions, unsigned int);
88
93 void
95
98 itkConceptMacro(DoubleConvertibleToOutputCheck, (Concept::Convertible<double, PixelType>));
99
100protected:
102 ~BinomialBlurImageFilter() override = default;
103 void
104 PrintSelf(std::ostream & os, Indent indent) const override;
105
107 void
108 GenerateData() override;
109
110private:
112 unsigned int m_Repetitions{};
113};
114} // end namespace itk
115
116#ifndef ITK_MANUAL_INSTANTIATION
117# include "itkBinomialBlurImageFilter.hxx"
118#endif
119
120#endif
typename TOutputImage::IndexType IndexType
typename InputImageType::Pointer InputImagePointer
static constexpr unsigned int NOutputDimensions
~BinomialBlurImageFilter() override=default
SmartPointer< const Self > ConstPointer
void GenerateInputRequestedRegion() override
typename InputImageType::ConstPointer InputImageConstPointer
ImageToImageFilter< TInputImage, TOutputImage > Superclass
typename TOutputImage::PixelType PixelType
static constexpr unsigned int NDimensions
typename TOutputImage::RegionType OutputImageRegionType
void PrintSelf(std::ostream &os, Indent indent) const override
void GenerateData() override
typename OutputImageType::Pointer OutputImagePointer
Control indentation during Print() invocation.
Definition itkIndent.h:50
Implements transparent reference counting.
#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