18#ifndef itkGaussianDerivativeImageFunction_h
19#define itkGaussianDerivativeImageFunction_h
49template <
typename TInputImage,
typename TOutput =
double>
51 :
public ImageFunction<TInputImage, Vector<TOutput, TInputImage::ImageDimension>, TOutput>
74 static constexpr unsigned int ImageDimension = InputImageType::ImageDimension;
76#if !defined(ITK_LEGACY_REMOVE)
77 static constexpr unsigned int ImageDimension2 = ImageDimension;
86 using typename Superclass::OutputType;
92#if !defined(ITK_LEGACY_REMOVE)
120 if (val != this->m_UseImageSpacing)
122 this->m_UseImageSpacing = val;
123 this->RecomputeGaussianKernel();
126 itkBooleanMacro(UseImageSpacing);
127 itkGetMacro(UseImageSpacing,
bool);
180 double m_Sigma[ImageDimension]{};
187 std::vector<Offset<ImageDimension>> m_ImageNeighborhoodOffsets[ImageDimension]{};
189 double m_Extent[ImageDimension]{};
192 bool m_UseImageSpacing{
true };
201#ifndef ITK_MANUAL_INSTANTIATION
202# include "itkGaussianDerivativeImageFunction.hxx"
Compute the Gaussian derivatives of an the image at a specific location in space, i....
typename Superclass::PointType PointType
void PrintSelf(std::ostream &os, Indent indent) const override
OutputType EvaluateAtContinuousIndex(const ContinuousIndexType &cindex) const override
typename InputImageType::IndexType IndexType
void SetSigma(const double sigma)
void SetSigma(const double *sigma)
const double * GetExtent() const
typename InputImageType::PixelType InputPixelType
void SetExtent(const double extent)
GaussianDerivativeImageFunction()
typename GaussianDerivativeSpatialFunctionType::Pointer GaussianDerivativeSpatialFunctionPointer
OutputType EvaluateAtIndex(const IndexType &index) const override
void SetExtent(const double *extent)
void SetUseImageSpacing(const bool val)
~GaussianDerivativeImageFunction() override=default
typename Superclass::ContinuousIndexType ContinuousIndexType
OutputType Evaluate(const PointType &point) const override
const double * GetSigma() const
TInputImage InputImageType
void SetInputImage(const InputImageType *ptr) override
void RecomputeGaussianKernel()
N-dimensional Gaussian spatial function class.
Evaluates a function of an image at specified position.
Control indentation during Print() invocation.
Light weight base class for most itk classes.
A light-weight container object for storing an N-dimensional neighborhood of values.
A templated class holding a n-Dimensional vector.
SmartPointer< Self > Pointer
ImageBaseType::IndexType IndexType
ImageBaseType::PointType PointType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
*par Constraints *The filter image with at least two dimensions and a vector *length of at least The theory supports extension to scalar but *the implementation of the itk vector classes do not **The template parameter TRealType must be floating point(float or double) or *a user-defined "real" numerical type with arithmetic operations defined *sufficient to compute derivatives. **\par Performance *This filter will automatically multithread if run with *SetUsePrincipleComponents