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
28namespace itk
29{
30
48
49template <typename TInputImage, typename TOutputImage = TInputImage>
50class ITK_TEMPLATE_EXPORT SmoothingRecursiveGaussianImageFilter : public InPlaceImageFilter<TInputImage, TOutputImage>
51{
52public:
53 ITK_DISALLOW_COPY_AND_MOVE(SmoothingRecursiveGaussianImageFilter);
54
60
62 using InputImageType = TInputImage;
63 using OutputImageType = TOutputImage;
64 using PixelType = typename TInputImage::PixelType;
67
69 itkOverrideGetNameOfClassMacro(SmoothingRecursiveGaussianImageFilter);
70
72 static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
73
76
81 using RealImageType = typename InputImageType::template Rebind<InternalRealType>::Type;
82
85
88
91
94
97
100
102 using OutputImagePointer = typename OutputImageType::Pointer;
103
105 itkNewMacro(Self);
106
111 void
113 void
116
120
124 GetSigma() const;
125
130 void
131 SetNormalizeAcrossScale(bool normalize);
132 itkGetConstMacro(NormalizeAcrossScale, bool);
133 itkBooleanMacro(NormalizeAcrossScale);
135
137 void
139
140 bool
141 CanRunInPlace() const override;
142
143 // This concept does not work with variable length vector images
144 // itkConceptMacro( InputHasNumericTraitsCheck,
145 //( Concept::HasNumericTraits< PixelType > ) );
146
147protected:
150 void
151 PrintSelf(std::ostream & os, Indent indent) const override;
152
153 void
154 GenerateData() override;
155
162 void
164
165 // Override since the filter produces the entire dataset
166 void
168
169private:
173
175
177};
178} // end namespace itk
179
180#ifndef ITK_MANUAL_INSTANTIATION
181# include "itkSmoothingRecursiveGaussianImageFilter.hxx"
182#endif
183
184#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