ITK  5.4.0
Insight Toolkit
itkFFTDiscreteGaussianImageFilter.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 itkFFTDiscreteGaussianImageFilter_h
19#define itkFFTDiscreteGaussianImageFilter_h
20
23#include "itkImage.h"
24#include "itkMacro.h"
25#include "ITKSmoothingExport.h"
26
27namespace itk
28{
34{
35public:
51 enum class KernelSource : uint8_t
52 {
53 OPERATORS = 0,
54 IMAGE_SOURCE,
55 };
56};
57// Define how to print enumeration
58extern ITKSmoothing_EXPORT std::ostream &
60
81template <typename TInputImage, typename TOutputImage = TInputImage>
82class ITK_TEMPLATE_EXPORT FFTDiscreteGaussianImageFilter : public DiscreteGaussianImageFilter<TInputImage, TOutputImage>
83{
84public:
85 ITK_DISALLOW_COPY_AND_MOVE(FFTDiscreteGaussianImageFilter);
86
92
94 itkNewMacro(Self);
95
97 itkOverrideGetNameOfClassMacro(FFTDiscreteGaussianImageFilter);
98
100 using InputImageType = typename Superclass::InputImageType;
101 using OutputImageType = typename Superclass::OutputImageType;
102
105 using OutputPixelType = typename Superclass::OutputPixelType;
106 using OutputInternalPixelType = typename Superclass::OutputInternalPixelType;
107 using InputPixelType = typename Superclass::InputPixelType;
108 using InputInternalPixelType = typename Superclass::InputInternalPixelType;
109
111 using InputPixelValueType = typename Superclass::InputPixelValueType;
112 using OutputPixelValueType = typename Superclass::OutputPixelValueType;
113
116 static constexpr unsigned int ImageDimension = Superclass::ImageDimension;
117
119 using typename Superclass::RealOutputPixelType;
120 using typename Superclass::RealOutputImageType;
121 using typename Superclass::RealOutputPixelValueType;
124
126 using typename Superclass::BoundaryConditionType;
127 using typename Superclass::InputBoundaryConditionPointerType;
128 using typename Superclass::InputDefaultBoundaryConditionType;
129 using typename Superclass::RealBoundaryConditionPointerType;
130 using typename Superclass::RealDefaultBoundaryConditionType;
131
133 using typename Superclass::ArrayType;
134 using typename Superclass::SigmaArrayType;
135 using typename Superclass::ScalarRealType;
136
138 using typename Superclass::KernelType;
139 using typename Superclass::RadiusType;
140
143
146 void
148
151
152 itkGetConstMacro(KernelImage, typename RealImageType::Pointer);
153
154protected:
157
159 void
161
167 void
168 GenerateData() override;
169
172 auto
174
175private:
176 /* Enum for choosing among available kernel generation methods */
179
180 /* Kernel image is allocated with GenerateKernelImage() */
181 typename RealImageType::Pointer m_KernelImage{};
182
183 /* Persist mini-pipeline filter to minimize construction costs
184 * on repeated calls to GenerateData() */
186};
187} // end namespace itk
188
189#ifndef ITK_MANUAL_INSTANTIATION
190# include "itkFFTDiscreteGaussianImageFilter.hxx"
191#endif
192
193#endif
Blurs an image by separable convolution with discrete gaussian kernels. This filter performs Gaussian...
typename NumericTraits< OutputPixelType >::RealType RealOutputPixelType
Convolve a given image with an arbitrary image kernel using multiplication in the Fourier domain.
Contains all enum classes used by FFTDiscreteGaussianImageFilter class.
Blurs an image by convolution with a discrete gaussian kernel in the frequency domain.
void GenerateInputRequestedRegion() override
typename Superclass::OutputInternalPixelType OutputInternalPixelType
typename Superclass::InputPixelType InputPixelType
void SetInputBoundaryCondition(const InputBoundaryConditionPointerType) override
typename Superclass::OutputPixelType OutputPixelType
typename Superclass::OutputPixelValueType OutputPixelValueType
typename Superclass::OutputImageType OutputImageType
typename Superclass::InputInternalPixelType InputInternalPixelType
typename Superclass::InputImageType InputImageType
typename Superclass::InputPixelValueType InputPixelValueType
~FFTDiscreteGaussianImageFilter() override=default
auto GenerateKernelImage() -> RealImageType *
A virtual base object that defines an interface to a class of boundary condition objects for use by n...
Templated n-dimensional image class.
Definition: itkImage.h:89
Light weight base class for most itk classes.
static Pointer New()
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
std::ostream & operator<<(std::ostream &os, const Array< TValue > &arr)
Definition: itkArray.h:216