ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkSmoothingRecursiveGaussianImageFilter.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
19#ifndef itkSmoothingRecursiveGaussianImageFilter_h
20#define itkSmoothingRecursiveGaussianImageFilter_h
21
23#include "itkCastImageFilter.h"
24#include "itkImage.h"
25#include "itkPixelTraits.h"
26#include "itkCommand.h"
27#include <array>
28
29namespace itk
30{
31
49
50template <typename TInputImage, typename TOutputImage = TInputImage>
51class ITK_TEMPLATE_EXPORT SmoothingRecursiveGaussianImageFilter : public InPlaceImageFilter<TInputImage, TOutputImage>
52{
53public:
54 ITK_DISALLOW_COPY_AND_MOVE(SmoothingRecursiveGaussianImageFilter);
55
61
63 using InputImageType = TInputImage;
64 using OutputImageType = TOutputImage;
65 using PixelType = typename TInputImage::PixelType;
68
70 itkOverrideGetNameOfClassMacro(SmoothingRecursiveGaussianImageFilter);
71
73 static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
74
77
82 using RealImageType = typename InputImageType::template Rebind<InternalRealType>::Type;
83
86
89
92
95
98
101
103 using OutputImagePointer = typename OutputImageType::Pointer;
104
106 itkNewMacro(Self);
107
113 void
115 void
121
125 GetSigma() const;
126
132 void
133 SetNormalizeAcrossScale(bool normalize);
134 itkGetConstMacro(NormalizeAcrossScale, bool);
135 itkBooleanMacro(NormalizeAcrossScale);
138 void
140
141 [[nodiscard]] bool
142 CanRunInPlace() const override;
143
144 // This concept does not work with variable length vector images
145 // itkConceptMacro( InputHasNumericTraitsCheck,
146 //( Concept::HasNumericTraits< PixelType > ) );
147
148protected:
151 void
152 PrintSelf(std::ostream & os, Indent indent) const override;
153
154 void
155 GenerateData() override;
156
163 void
165
166 // Override since the filter produces the entire dataset
167 void
169
170private:
174
176
178};
179} // end namespace itk
180
181#ifndef ITK_MANUAL_INSTANTIATION
182# include "itkSmoothingRecursiveGaussianImageFilter.hxx"
183#endif
184
185#endif
Casts input pixels to output pixel type.
Base class for all data objects in ITK.
Simulate a standard C array with copy semantics.
Control indentation during Print() invocation.
Definition itkIndent.h:50
Base class for computing IIR convolution with an approximation of a Gaussian kernel.
Implements transparent reference counting.
void SetNumberOfWorkUnits(ThreadIdType nb) override
typename NumericTraits< PixelType >::FloatType InternalRealType
FixedArray< ScalarRealType, Self::ImageDimension > SigmaArrayType
~SmoothingRecursiveGaussianImageFilter() override=default
void SetSigma(ScalarRealType sigma)
typename NumericTraits< PixelType >::RealType RealType
InPlaceImageFilter< TInputImage, TOutputImage > Superclass
RecursiveGaussianImageFilter< RealImageType, RealImageType > InternalGaussianFilterType
RecursiveGaussianImageFilter< InputImageType, RealImageType > FirstGaussianFilterType
void SetSigmaArray(const SigmaArrayType &sigma)
void PrintSelf(std::ostream &os, Indent indent) const override
typename InternalGaussianFilterType::Pointer InternalGaussianFilterPointer
void EnlargeOutputRequestedRegion(DataObject *output) override
typename FirstGaussianFilterType::Pointer FirstGaussianFilterPointer
typename NumericTraits< PixelType >::ScalarRealType ScalarRealType
typename InputImageType::template Rebind< InternalRealType >::Type RealImageType
CastImageFilter< RealImageType, OutputImageType > CastingFilterType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
unsigned int ThreadIdType