18 #ifndef itkDiscreteHessianGaussianImageFunction_h
19 #define itkDiscreteHessianGaussianImageFunction_h
45 template <
typename TInputImage,
typename TOutput =
double>
47 :
public ImageFunction<TInputImage, SymmetricSecondRankTensor<TOutput, TInputImage::ImageDimension>, TOutput>
77 static constexpr
unsigned int ImageDimension2 = InputImageType::ImageDimension;
103 #if !defined(ITK_LEGACY_REMOVE)
106 InterpolationModeEnum::NearestNeighbourInterpolation;
107 static constexpr
InterpolationModeEnum LinearInterpolation = InterpolationModeEnum::LinearInterpolation;
113 Evaluate(
const PointType & point)
const override;
117 EvaluateAtIndex(
const IndexType & index)
const override;
129 itkSetVectorMacro(Variance,
double, VarianceArrayType::Length);
136 m_Variance.Fill(variance);
146 SetVariance(sigma * sigma);
154 itkSetClampMacro(MaximumError,
double, 0.00001, 0.99999);
155 itkGetConstMacro(MaximumError,
double);
161 itkSetMacro(NormalizeAcrossScale,
bool);
162 itkGetConstMacro(NormalizeAcrossScale,
bool);
163 itkBooleanMacro(NormalizeAcrossScale);
167 itkSetMacro(UseImageSpacing,
bool);
168 itkGetConstMacro(UseImageSpacing,
bool);
169 itkBooleanMacro(UseImageSpacing);
176 itkSetMacro(MaximumKernelWidth,
unsigned int);
177 itkGetConstMacro(MaximumKernelWidth,
unsigned int);
190 SetInputImage(
const InputImageType * ptr)
override;
197 RecomputeGaussianKernel();
210 PrintSelf(std::ostream & os,
Indent indent)
const override;
213 RecomputeGaussianKernel();
221 double m_MaximumError{ 0.005 };
226 unsigned int m_MaximumKernelWidth{ 30 };
243 bool m_NormalizeAcrossScale{
true };
246 bool m_UseImageSpacing{
true };
253 #ifndef ITK_MANUAL_INSTANTIATION
254 # include "itkDiscreteHessianGaussianImageFunction.hxx"