17 #ifndef itkPhysicalCentralDifferenceImageFunction_h
18 #define itkPhysicalCentralDifferenceImageFunction_h
43 class TCoordRep =
float >
46 CovariantVector<double, TInputImage::ImageDimension>,
53 static constexpr
unsigned int ImageDimension = TInputImage::ImageDimension;
59 itkGetStaticConstMacro(ImageDimension)>,
94 this->Superclass::SetInputImage( ptr );
95 if ( m_Interpolator.IsNotNull() )
97 m_Interpolator->SetInputImage( ptr );
110 m_Interpolator->GetInputImage()->TransformIndexToPhysicalPoint( index, point );
111 return this->Evaluate( point );
125 m_Interpolator->GetInputImage()->TransformContinuousIndexToPhysicalPoint( cindex, point );
126 return this->Evaluate( point );
136 OutputType Evaluate(
const PointType& point )
const override;
141 void PrintSelf(std::ostream& os,
Indent indent)
const override;
150 #ifndef ITK_MANUAL_INSTANTIATION
151 # include "itkPhysicalCentralDifferenceImageFunction.hxx"
typename Superclass::OutputType OutputType
Light weight base class for most itk classes.
InterpolateImageFunctionType::Pointer m_Interpolator
OutputType EvaluateAtContinuousIndex(const ContinuousIndexType &cindex) const override
OutputType EvaluateAtIndex(const IndexType &index) const override
typename Superclass::IndexType IndexType
void SetInputImage(const InputImageType *ptr) override
Calculate the derivative by central differencing in physical space.
~PhysicalCentralDifferenceImageFunction() override
ImageBaseType::IndexType IndexType
typename Superclass::ContinuousIndexType ContinuousIndexType
Linearly interpolate an image at specified positions.
typename Superclass::PointType PointType
Control indentation during Print() invocation.
ImageBaseType::PointType PointType
TInputImage InputImageType
A templated class holding a n-Dimensional covariant vector.
Evaluates a function of an image at specified position.