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;
142 void PrintSelf(std::ostream& os,
Indent indent)
const;
146 void operator=(
const Self& );
154 #ifndef ITK_MANUAL_INSTANTIATION
155 # 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 void SetInputImage(const InputImageType *ptr)
Calculate the derivative by central differencing in physical space.
Superclass::ContinuousIndexType ContinuousIndexType
Superclass::PointType PointType
virtual OutputType EvaluateAtContinuousIndex(const ContinuousIndexType &cindex) const
virtual OutputType EvaluateAtIndex(const IndexType &index) const
~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