18 #ifndef __itkAdvancedLinearInterpolateImageFunction_h 19 #define __itkAdvancedLinearInterpolateImageFunction_h 21 #include "itkLinearInterpolateImageFunction.h" 62 template<
class TInputImage,
class TCoordRep =
double >
64 public LinearInterpolateImageFunction< TInputImage, TCoordRep >
70 typedef LinearInterpolateImageFunction< TInputImage, TCoordRep >
Superclass;
81 typedef typename Superclass::OutputType
OutputType;
91 typedef typename Superclass::RealType
RealType;
109 const ContinuousIndexType & x )
const;
113 const ContinuousIndexType & x,
118 Dispatch< ImageDimension >(), x, value, deriv );
133 struct DispatchBase {};
134 template<
unsigned int >
135 struct Dispatch :
public DispatchBase {};
139 const Dispatch< 2 > &,
140 const ContinuousIndexType & x,
146 const Dispatch< 3 > &,
147 const ContinuousIndexType & x,
153 const DispatchBase &,
154 const ContinuousIndexType & x,
164 const ContinuousIndexType & x,
168 itkExceptionMacro( <<
"ERROR: EvaluateValueAndDerivativeAtContinuousIndex() " 169 <<
"is not implemented for this dimension (" 170 << ImageDimension <<
")." );
178 #ifndef ITK_MANUAL_INSTANTIATION 179 #include "itkAdvancedLinearInterpolateImageFunction.hxx" Superclass::InputPixelType InputPixelType
void operator=(const Self &)
AdvancedLinearInterpolateImageFunction()
CovariantVector< OutputType, itkGetStaticConstMacro(ImageDimension) > CovariantVectorType
Superclass::OutputType OutputType
void EvaluateValueAndDerivativeOptimized(const DispatchBase &, const ContinuousIndexType &x, OutputType &value, CovariantVectorType &deriv) const
SmartPointer< Self > Pointer
AdvancedLinearInterpolateImageFunction Self
Superclass::RealType RealType
LinearInterpolateImageFunction< TInputImage, TCoordRep > Superclass
Superclass::InputImageType InputImageType
void EvaluateValueAndDerivativeUnOptimized(const ContinuousIndexType &x, OutputType &value, CovariantVectorType &deriv) const
ContinuousIndexType::ValueType ContinuousIndexValueType
CovariantVectorType EvaluateDerivativeAtContinuousIndex(const ContinuousIndexType &x) const
void EvaluateValueAndDerivativeAtContinuousIndex(const ContinuousIndexType &x, OutputType &value, CovariantVectorType &deriv) const
void EvaluateValueAndDerivativeOptimized(const Dispatch< 2 > &, const ContinuousIndexType &x, OutputType &value, CovariantVectorType &deriv) const
itkStaticConstMacro(ImageDimension, unsigned int, Superclass::ImageDimension)
Superclass::IndexType IndexType
Superclass::ContinuousIndexType ContinuousIndexType
~AdvancedLinearInterpolateImageFunction()
SmartPointer< const Self > ConstPointer
InputImageType::SpacingType InputImageSpacingType
Linearly interpolate an image at specified positions.