ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkLaplacianRecursiveGaussianImageFilter.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 itkLaplacianRecursiveGaussianImageFilter_h
19#define itkLaplacianRecursiveGaussianImageFilter_h
20
22#include "itkImage.h"
23#include "itkCommand.h"
24#include <array>
25
26namespace itk
27{
44template <typename TInputImage, typename TOutputImage = TInputImage>
45class ITK_TEMPLATE_EXPORT LaplacianRecursiveGaussianImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
46{
47public:
48 ITK_DISALLOW_COPY_AND_MOVE(LaplacianRecursiveGaussianImageFilter);
49
55
57 using InputImageType = TInputImage;
58 using PixelType = typename InputImageType::PixelType;
59
61 static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
62
63 static constexpr unsigned int NumberOfSmoothingFilters = ImageDimension - 1;
64
66
70 using InternalRealType = float;
72
75
78
81
84
86 using OutputImagePointer = typename TOutputImage::Pointer;
87
89 using OutputImageType = TOutputImage;
90 using OutputPixelType = typename OutputImageType::PixelType;
91
92
96
98 itkNewMacro(Self);
99
101 itkOverrideGetNameOfClassMacro(LaplacianRecursiveGaussianImageFilter);
102
105 void
108 GetSigma() const;
114 void
115 SetNormalizeAcrossScale(bool normalize);
116 itkGetConstMacro(NormalizeAcrossScale, bool);
118protected:
121 void
122 PrintSelf(std::ostream & os, Indent indent) const override;
123
125 void
126 GenerateData() override;
127
128 // Override since the filter produces the entire dataset
129 void
131
132private:
133 std::array<GaussianFilterPointer, NumberOfSmoothingFilters> m_SmoothingFilters{};
135
138};
139} // end namespace itk
140
141#ifndef ITK_MANUAL_INSTANTIATION
142# include "itkLaplacianRecursiveGaussianImageFilter.hxx"
143#endif
144
145#endif
Base class for all data objects in ITK.
Templated n-dimensional image class.
Definition itkImage.h:89
Control indentation during Print() invocation.
Definition itkIndent.h:50
~LaplacianRecursiveGaussianImageFilter() override=default
typename NumericTraits< PixelType >::RealType RealType
std::array< GaussianFilterPointer, NumberOfSmoothingFilters > m_SmoothingFilters
void PrintSelf(std::ostream &os, Indent indent) const override
void EnlargeOutputRequestedRegion(DataObject *output) override
Image< InternalRealType, Self::ImageDimension > RealImageType
RecursiveGaussianImageFilter< RealImageType, RealImageType > GaussianFilterType
RecursiveGaussianImageFilter< InputImageType, RealImageType > DerivativeFilterType
ImageToImageFilter< TInputImage, TOutputImage > Superclass
A Command subclass that calls a pointer to a member function.
Definition itkCommand.h:87
SmartPointer< Self > Pointer
Definition itkCommand.h:98
Base class for computing IIR convolution with an approximation of a Gaussian kernel.
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....