ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkDiscreteGaussianDerivativeImageFilter.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 itkDiscreteGaussianDerivativeImageFilter_h
19#define itkDiscreteGaussianDerivativeImageFilter_h
20
22#include "itkImage.h"
23
24namespace itk
25{
56
57template <typename TInputImage, typename TOutputImage>
58class ITK_TEMPLATE_EXPORT DiscreteGaussianDerivativeImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
59{
60public:
61 ITK_DISALLOW_COPY_AND_MOVE(DiscreteGaussianDerivativeImageFilter);
62
68
70 itkNewMacro(Self);
71
73 itkOverrideGetNameOfClassMacro(DiscreteGaussianDerivativeImageFilter);
74
76 using InputImageType = TInputImage;
77 using OutputImageType = TOutputImage;
78
81 using OutputPixelType = typename TOutputImage::PixelType;
82 using OutputInternalPixelType = typename TOutputImage::InternalPixelType;
83 using InputPixelType = typename TInputImage::PixelType;
84 using InputInternalPixelType = typename TInputImage::InternalPixelType;
85
88 static constexpr unsigned int ImageDimension = TOutputImage::ImageDimension;
89
92
95
99 itkSetMacro(Order, OrderArrayType);
100 itkGetConstMacro(Order, const OrderArrayType);
102
109 itkSetMacro(Variance, ArrayType);
110 itkGetConstMacro(Variance, const ArrayType);
112
116 itkSetMacro(MaximumError, ArrayType);
117 itkGetConstMacro(MaximumError, const ArrayType);
119
122 itkGetConstMacro(MaximumKernelWidth, int);
123 itkSetMacro(MaximumKernelWidth, int);
125
135 itkSetMacro(InternalNumberOfStreamDivisions, unsigned int);
136 itkGetConstMacro(InternalNumberOfStreamDivisions, unsigned int);
137
142 void
144 {
145 auto a = MakeFilled<OrderArrayType>(v);
146 this->SetOrder(a);
147 }
148
149
150 void
152 {
153 auto a = MakeFilled<ArrayType>(v);
154 this->SetVariance(a);
155 }
156
157 void
159 {
160 auto a = MakeFilled<ArrayType>(v);
161 this->SetMaximumError(a);
162 }
163
165
168 itkSetMacro(UseImageSpacing, bool);
169 itkGetConstMacro(UseImageSpacing, bool);
170 itkBooleanMacro(UseImageSpacing);
172
176 itkSetMacro(NormalizeAcrossScale, bool);
177 itkGetConstMacro(NormalizeAcrossScale, bool);
178 itkBooleanMacro(NormalizeAcrossScale);
180
181 itkConceptMacro(OutputHasNumericTraitsCheck, (Concept::HasNumericTraits<OutputPixelType>));
182
183protected:
194
196 void
197 PrintSelf(std::ostream & os, Indent indent) const override;
198
205 void
207
213 void
214 GenerateData() override;
215
216private:
219
223
228
232
235
238
242};
243} // end namespace itk
244
245#ifndef ITK_MANUAL_INSTANTIATION
246# include "itkDiscreteGaussianDerivativeImageFilter.hxx"
247#endif
248
249#endif
void SetOrder(const typename OrderArrayType::ValueType v)
void PrintSelf(std::ostream &os, Indent indent) const override
ImageToImageFilter< TInputImage, TOutputImage > Superclass
virtual void SetVariance(ArrayType _arg)
typename TOutputImage::InternalPixelType OutputInternalPixelType
~DiscreteGaussianDerivativeImageFilter() override=default
virtual void SetMaximumError(ArrayType _arg)
FixedArray< unsigned int, Self::ImageDimension > OrderArrayType
void SetMaximumError(const typename ArrayType::ValueType v)
virtual void SetOrder(OrderArrayType _arg)
Simulate a standard C array with copy semantics.
Control indentation during Print() invocation.
Definition itkIndent.h:50
Implements transparent reference counting.
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
constexpr TContainer MakeFilled(typename TContainer::const_reference value)