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
100 itkSetMacro(Order, OrderArrayType);
101 itkGetConstMacro(Order, const OrderArrayType);
110 itkSetMacro(Variance, ArrayType);
111 itkGetConstMacro(Variance, const ArrayType);
117 itkSetMacro(MaximumError, ArrayType);
118 itkGetConstMacro(MaximumError, const ArrayType);
123 itkGetConstMacro(MaximumKernelWidth, int);
124 itkSetMacro(MaximumKernelWidth, int);
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 void
151 {
152 auto a = MakeFilled<ArrayType>(v);
153 this->SetVariance(a);
154 }
155
156 void
158 {
159 auto a = MakeFilled<ArrayType>(v);
160 this->SetMaximumError(a);
161 }
162
163
167 itkSetMacro(UseImageSpacing, bool);
168 itkGetConstMacro(UseImageSpacing, bool);
169 itkBooleanMacro(UseImageSpacing);
175 itkSetMacro(NormalizeAcrossScale, bool);
176 itkGetConstMacro(NormalizeAcrossScale, bool);
177 itkBooleanMacro(NormalizeAcrossScale);
179 itkConceptMacro(OutputHasNumericTraitsCheck, (Concept::HasNumericTraits<OutputPixelType>));
180
181protected:
192
194 void
195 PrintSelf(std::ostream & os, Indent indent) const override;
196
203 void
205
211 void
212 GenerateData() override;
213
214private:
217
221
226
230
233
236
240};
241} // end namespace itk
242
243#ifndef ITK_MANUAL_INSTANTIATION
244# include "itkDiscreteGaussianDerivativeImageFilter.hxx"
245#endif
246
247#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)