ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkSmoothingRecursiveYvvGaussianImageFilter.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 itkSmoothingRecursiveYvvGaussianImageFilter_h
20#define itkSmoothingRecursiveYvvGaussianImageFilter_h
21
23#include "itkCastImageFilter.h"
24#include "itkImage.h"
25#include "itkPixelTraits.h"
26#include "itkCommand.h"
27#include "itkFixedArray.h"
28
29namespace itk
30{
46template <typename TInputImage, typename TOutputImage = TInputImage>
47class ITK_EXPORT SmoothingRecursiveYvvGaussianImageFilter : public InPlaceImageFilter<TInputImage, TOutputImage>
48{
49public:
50 ITK_DISALLOW_COPY_AND_MOVE(SmoothingRecursiveYvvGaussianImageFilter);
51
57
59 using InputImageType = TInputImage;
60 using OutputImageType = TOutputImage;
61 using PixelType = typename TInputImage::PixelType;
62#ifdef WITH_DOUBLE
65#else
68#endif
69
71 itkOverrideGetNameOfClassMacro(SmoothingRecursiveYvvGaussianImageFilter);
72
74 static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
75
78
82
84 using RealImageType = typename InputImageType::template Rebind<InternalRealType>::Type;
85
88
91
94
97
100
103
105 using OutputImagePointer = typename OutputImageType::Pointer;
106
108 itkNewMacro(Self);
109
114 void
116 void
121 GetSigma() const;
122
124 void
125 SetNormalizeAcrossScale(bool normalizeInScaleSpace);
126 itkGetConstMacro(NormalizeAcrossScale, bool);
127
128 void
130
131 bool
132 CanRunInPlace() const override;
133
134 itkConceptMacro(InputHasNumericTraitsCheck, (Concept::HasNumericTraits<PixelType>));
135
136protected:
139 void
140 PrintSelf(std::ostream & os, Indent indent) const override;
141
143 void
144 GenerateData() override;
145
151 void
152 GenerateInputRequestedRegion() noexcept override;
153
154 // Override since the filter produces the entire dataset
155 void
157
158private:
162
165
168};
169} // end namespace itk
170
171#ifndef ITK_MANUAL_INSTANTIATION
172# include "itkSmoothingRecursiveYvvGaussianImageFilter.hxx"
173#endif
174
175#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:53
1D recursive Gaussian blur based on Young-Van Vliet's algorithm, implemented for CPU.
Implements transparent reference counting.
void EnlargeOutputRequestedRegion(DataObject *output) override
typename InputImageType::template Rebind< InternalRealType >::Type RealImageType
InternalGaussianFilterPointer m_SmoothingFilters[ImageDimension - 1]
void SetSigmaArray(const SigmaArrayType &sigmas)
typename InternalGaussianFilterType::Pointer InternalGaussianFilterPointer
void SetNormalizeAcrossScale(bool normalizeInScaleSpace)
RecursiveLineYvvGaussianImageFilter< InputImageType, RealImageType > FirstGaussianFilterType
void SetNumberOfWorkUnits(ThreadIdType nb) override
FixedArray< ScalarRealType, Self::ImageDimension > SigmaArrayType
~SmoothingRecursiveYvvGaussianImageFilter() override=default
void PrintSelf(std::ostream &os, Indent indent) const override
typename NumericTraits< PixelType >::FloatType InternalRealType
RecursiveLineYvvGaussianImageFilter< RealImageType, RealImageType > InternalGaussianFilterType
void GenerateInputRequestedRegion() noexcept override
CastImageFilter< RealImageType, OutputImageType > CastingFilterType
#define itkConceptMacro(name, conceptType)
Compile-time check that a template argument satisfies an itk::Concept.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
unsigned int ThreadIdType
Definition itkIntTypes.h:98