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