ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkHessianRecursiveGaussianImageFilter.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 itkHessianRecursiveGaussianImageFilter_h
19#define itkHessianRecursiveGaussianImageFilter_h
20
23#include "itkImage.h"
25#include "itkPixelTraits.h"
26#include <array>
27
28namespace itk
29{
43template <typename TInputImage,
44 typename TOutputImage =
46 TInputImage::ImageDimension>,
47 TInputImage::ImageDimension>>
48class ITK_TEMPLATE_EXPORT HessianRecursiveGaussianImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
49{
50public:
51 ITK_DISALLOW_COPY_AND_MOVE(HessianRecursiveGaussianImageFilter);
52
58
60 using InputImageType = TInputImage;
61 using PixelType = typename TInputImage::PixelType;
63
65 static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
66
68 static constexpr unsigned int NumberOfSmoothingFilters =
69 (TInputImage::ImageDimension > 2) ? (TInputImage::ImageDimension - 2) : (0);
70
74
75 using InternalRealType = float;
77
83
85
88
91
93
96
97#ifndef ITK_FUTURE_LEGACY_REMOVE
98 using GaussianFiltersArray [[deprecated("This type alias is deprecated from ITK 6!")]] =
99 std::vector<GaussianFilterPointer>;
100#endif
101
105
107 using OutputImagePointer = typename TOutputImage::Pointer;
108
110 using OutputImageType = TOutputImage;
111 using OutputPixelType = typename OutputImageType::PixelType;
113
115 itkOverrideGetNameOfClassMacro(HessianRecursiveGaussianImageFilter);
116
118 itkNewMacro(Self);
119
122 void
125 GetSigma() const;
131 void
132 SetNormalizeAcrossScale(bool normalize);
133 itkGetConstMacro(NormalizeAcrossScale, bool);
134 itkBooleanMacro(NormalizeAcrossScale);
141 void
143
144 itkConceptMacro(InputHasNumericTraitsCheck, (Concept::HasNumericTraits<PixelType>));
145 itkConceptMacro(OutputHasPixelTraitsCheck, (Concept::HasPixelTraits<OutputPixelType>));
146
147protected:
150 void
151 PrintSelf(std::ostream & os, Indent indent) const override;
152
154 void
155 GenerateData() override;
156
157 // Override since the filter produces the entire dataset
158 void
160
161private:
162 std::array<GaussianFilterPointer, NumberOfSmoothingFilters> m_SmoothingFilters{};
166
169};
170} // end namespace itk
171
172#ifndef ITK_MANUAL_INSTANTIATION
173# include "itkHessianRecursiveGaussianImageFilter.hxx"
174#endif
175
176#endif
Base class for all data objects in ITK.
NthElementImageAdaptor< TOutputImage, InternalRealType > OutputImageAdaptorType
ImageToImageFilter< TInputImage, TOutputImage > Superclass
typename NumericTraits< PixelType >::RealType RealType
void PrintSelf(std::ostream &os, Indent indent) const override
typename OutputImageAdaptorType::Pointer OutputImageAdaptorPointer
~HessianRecursiveGaussianImageFilter() override=default
RecursiveGaussianImageFilter< InputImageType, RealImageType > DerivativeFilterAType
RecursiveGaussianImageFilter< RealImageType, RealImageType > DerivativeFilterBType
void EnlargeOutputRequestedRegion(DataObject *output) override
void SetNormalizeAcrossScale(bool normalize)
RecursiveGaussianImageFilter< RealImageType, RealImageType > GaussianFilterType
typename DerivativeFilterAType::Pointer DerivativeFilterAPointer
typename DerivativeFilterBType::Pointer DerivativeFilterBPointer
Image< InternalRealType, TInputImage::ImageDimension > RealImageType
typename PixelTraits< OutputPixelType >::ValueType OutputComponentType
Templated n-dimensional image class.
Definition itkImage.h:89
Control indentation during Print() invocation.
Definition itkIndent.h:50
Presents an image as being composed of the N-th element of its pixels.
typename TPixelType::ValueType ValueType
Base class for computing IIR convolution with an approximation of a Gaussian kernel.
Implements transparent reference counting.
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....