18#ifndef itkCentralDifferenceImageFunction_h
19#define itkCentralDifferenceImageFunction_h
73template <
typename TInputImage,
74 typename TCoordRep = float,
75 typename TOutputType = CovariantVector<double, TInputImage::ImageDimension>>
82 static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
106 using typename Superclass::OutputType;
121 using typename Superclass::ContinuousIndexType;
202 itkSetMacro(UseImageDirection,
bool);
203 itkGetConstMacro(UseImageDirection,
bool);
204 itkBooleanMacro(UseImageDirection);
215 template <
typename T>
222 template <
typename Type>
229 template <
typename Type>
236 template <
typename Type>
243 template <
typename Type>
251 template <
typename Type>
258 template <
typename Type>
264 bool m_UseImageDirection{
true };
271#ifndef ITK_MANUAL_INSTANTIATION
272# include "itkCentralDifferenceImageFunction.hxx"
Calculate the derivative by central differencing.
typename TInputImage::SpacingType SpacingType
typename OutputConvertType::ComponentType OutputValueType
void EvaluateSpecialized(const PointType &point, OutputType &derivative, OutputTypeSpecializationStructType< Type >) const
typename InterpolatorType::Pointer InterpolatorPointer
void EvaluateAtIndexSpecialized(const IndexType &index, OutputType &derivative, OutputTypeSpecializationStructType< Type >) const
void EvaluateAtIndexSpecialized(const IndexType &index, OutputType &orientedDerivative, OutputTypeSpecializationStructType< OutputType >) const
void SetInputImage(const TInputImage *inputData) override
CentralDifferenceImageFunction()
void EvaluateAtContinuousIndexSpecialized(const ContinuousIndexType &cindex, OutputType &derivative, OutputTypeSpecializationStructType< Type >) const
~CentralDifferenceImageFunction() override=default
void EvaluateSpecialized(const PointType &point, OutputType &orientedDerivative, OutputTypeSpecializationStructType< OutputType >) const
OutputType EvaluateAtIndex(const IndexType &index) const override
void PrintSelf(std::ostream &os, Indent indent) const override
typename InputImageType::PixelType InputPixelType
virtual void SetInterpolator(InterpolatorType *interpolator)
OutputType Evaluate(const PointType &point) const override
void EvaluateAtContinuousIndexSpecialized(const ContinuousIndexType &cindex, OutputType &orientedDerivative, OutputTypeSpecializationStructType< OutputType >) const
OutputType EvaluateAtContinuousIndex(const ContinuousIndexType &cindex) const override
TInputImage InputImageType
A templated class holding a n-Dimensional covariant vector.
Traits class used to by ConvertPixels to convert blocks of pixels.
typename PixelType::ComponentType ComponentType
Evaluates a function of an image at specified position.
typename InputImageType::IndexType IndexType
Control indentation during Print() invocation.
Base class for all image interpolators.
Light weight base class for most itk classes.
A templated class holding a geometric point in n-Dimensional space.
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