Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
mirtk::GenericInterpolateImageFunction< TImage > Class Template Referenceabstract

#include <InterpolateImageFunction.h>

Inheritance diagram for mirtk::GenericInterpolateImageFunction< TImage >:
Inheritance graph
Collaboration diagram for mirtk::GenericInterpolateImageFunction< TImage >:
Collaboration graph

Public Member Functions

virtual double EvaluateInside (double, double, double=0, double=0) const
 
virtual void EvaluateInside (double *, double, double, double=0, int=1) const
 
virtual void EvaluateInside (Vector &, double, double, double=0, double=0) const
 
virtual double EvaluateOutside (double, double, double=0, double=0) const
 Evaluate scalar image at an arbitrary location (in pixels)
 
virtual void EvaluateOutside (double *, double, double, double=0, int=1) const
 Evaluate multi-channel image at an arbitrary location (in pixels)
 
virtual void EvaluateOutside (Vector &, double, double, double=0, double=0) const
 Evaluate vector image at an arbitrary location (in pixels)
 
virtual double EvaluateWithPaddingInside (double, double, double=0, double=0) const
 
virtual void EvaluateWithPaddingInside (double *, double, double, double=0, int=1) const
 
virtual void EvaluateWithPaddingInside (Vector &, double, double, double=0, double=0) const
 
virtual double EvaluateWithPaddingOutside (double, double, double=0, double=0) const
 
virtual void EvaluateWithPaddingOutside (double *, double, double, double=0, int=1) const
 
virtual void EvaluateWithPaddingOutside (Vector &, double, double, double=0, double=0) const
 
virtual void Extrapolator (ExtrapolateImageFunction *, bool=false)
 Set extrapolate image function for evaluation outside of image domain.
 
ExtrapolatorTypeExtrapolator ()
 
const ExtrapolatorTypeExtrapolator () const
 
VoxelType Get (double, double, double=0, double=0) const
 
virtual VoxelType GetInside (double, double, double=0, double=0) const =0
 
virtual VoxelType GetOutside (double, double, double=0, double=0) const =0
 Evaluate generic image at an arbitrary location (in pixels)
 
VoxelType GetWithPadding (double, double, double=0, double=0) const
 
virtual VoxelType GetWithPaddingInside (double, double, double=0, double=0) const =0
 
virtual VoxelType GetWithPaddingOutside (double, double, double=0, double=0) const =0
 
virtual void Initialize (bool coeff=false)
 
virtual void Input (const BaseImage *)
 Set input image.
 
const ImageType * Input () const
 Get input image.
 
virtual ExtrapolateImageFunctionNew (enum ExtrapolationMode, const BaseImage *=NULL)
 Construct extrapolator which is compatible with this interpolator.
 
VoxelType operator() (double, double, double=0, double=0) const
 Evaluate generic image at an arbitrary location (in pixels)
 
virtual ~GenericInterpolateImageFunction ()
 Destructor.
 
- Public Member Functions inherited from mirtk::InterpolateImageFunction
const ImageAttributesAttributes () const
 Lattice attributes.
 
virtual void BoundingBox (double, double, int &, int &, int &, int &) const
 Returns discrete boundaries of local 2D image region needed for interpolation.
 
virtual void BoundingBox (double, double, double, int &, int &, int &, int &, int &, int &) const
 Returns discrete boundaries of local 3D image region needed for interpolation.
 
virtual void BoundingBox (double, double, double, double, int &, int &, int &, int &, int &, int &, int &, int &) const
 Returns discrete boundaries of local 4D image region needed for interpolation.
 
virtual void BoundingInterval (double, int &, int &) const =0
 
double Evaluate (double, double, double=0, double=0) const
 
double Evaluate (const Point &, double=0) const
 
double Evaluate (double, double, double=0, double=0)
 
void Evaluate (double *, double, double, double=0, int=1) const
 
void Evaluate (double *, const Point &, int=1) const
 
void Evaluate (Vector &, double, double, double=0, double=0) const
 
template<class TVoxel >
void Evaluate (GenericImage< TVoxel > &) const
 Evaluate image function at all locations of the output image.
 
void EvaluateJacobian (Matrix &, double, double, double=0, double=NaN) const
 
virtual void EvaluateJacobianInside (Matrix &, double, double, double=0, double=NaN) const
 
virtual void EvaluateJacobianOutside (Matrix &, double, double, double=0, double=NaN) const
 
void EvaluateJacobianWithPadding (Matrix &, double, double, double=0, double=NaN) const
 
virtual void EvaluateJacobianWithPaddingInside (Matrix &, double, double, double=0, double=NaN) const
 
virtual void EvaluateJacobianWithPaddingOutside (Matrix &, double, double, double=0, double=NaN) const
 
double EvaluateWithPadding (double, double, double=0, double=0) const
 
void EvaluateWithPadding (double *, double, double, double=0, int=1) const
 
void EvaluateWithPadding (Vector &, double, double, double=0, double=0) const
 
enum ExtrapolationMode ExtrapolationMode () const
 Get extrapolation mode used by this interpolator.
 
ExtrapolateImageFunctionExtrapolator ()
 
const ExtrapolateImageFunctionExtrapolator () const
 
void ImageToWorld (double &, double &) const
 Convert image location (in pixels) to world coordinates (in mm)
 
void ImageToWorld (double &, double &, double &) const
 Convert image location (in pixels) to world coordinates (in mm)
 
void ImageToWorld (Point &) const
 Convert image location (in pixels) to world coordinates (in mm)
 
void ImageToWorld (Vector3 &) const
 Convert image vector (in pixels) to world coordinates (in mm)
 
virtual void Initialize ()
 
void Input (const BaseImage *)
 Set input image.
 
const BaseImageInput () const
 Get input image.
 
void Inside (double &, double &, double &, double &) const
 
void Inside (double &, double &, double &, double &, double &, double &) const
 
void Inside (double &, double &, double &, double &, double &, double &, double &, double &) const
 
virtual enum InterpolationMode InterpolationMode () const =0
 Get interpolation mode corresponding to this interpolator.
 
bool IsForeground (double, double) const
 
bool IsForeground (double, double, double) const
 
bool IsForeground (double, double, double, double) const
 
bool IsForeground (const Point &) const
 
bool IsForeground (const Point &, double) const
 
bool IsInside (double, double) const
 
bool IsInside (double, double, double) const
 
bool IsInside (double, double, double, double) const
 
bool IsInside (const Point &) const
 
bool IsInside (const Point &, double) const
 
bool IsOutside (double, double) const
 
bool IsOutside (double, double, double) const
 
bool IsOutside (double, double, double, double) const
 
bool IsOutside (const Point &) const
 
bool IsOutside (const Point &, double) const
 
int T () const
 Image size along t axis.
 
double TSize () const
 Image spacing along t axis.
 
virtual void Update ()
 
void WorldToImage (double &, double &) const
 Convert world coordinates (in mm) to image location (in pixels)
 
void WorldToImage (double &, double &, double &) const
 Convert world coordinates (in mm) to image location (in pixels)
 
void WorldToImage (Point &) const
 Convert world coordinates (in mm) to image location (in pixels)
 
void WorldToImage (Vector3 &) const
 Convert world coordinates vector (in mm) to image vector (in pixels)
 
int X () const
 Image size along x axis.
 
double XSize () const
 Image spacing along x axis.
 
int Y () const
 Image size along y axis.
 
double YSize () const
 Image spacing along y axis.
 
int Z () const
 Image size along z axis.
 
double ZSize () const
 Image spacing along z axis.
 
virtual ~InterpolateImageFunction ()
 Destructor.
 
- Public Member Functions inherited from mirtk::ImageFunction
virtual ~ImageFunction ()
 Destructor.
 
- Public Member Functions inherited from mirtk::Object
virtual const char * NameOfClass () const =0
 Get name of class, which this object is an instance of.
 
virtual ParameterList Parameter () const
 Get parameter name/value pairs.
 
bool Parameter (const ParameterList &)
 Set parameters from name/value pairs.
 
virtual bool Set (const char *name, const char *value)
 
virtual ~Object ()
 Destructor.
 

Static Public Member Functions

static GenericInterpolateImageFunctionNew (enum InterpolationMode=Interpolation_Default, const TImage *=NULL)
 Construct interpolator with default infinite extension of input image.
 
static GenericInterpolateImageFunctionNew (enum InterpolationMode, enum ExtrapolationMode, const TImage *=NULL)
 
- Static Public Member Functions inherited from mirtk::InterpolateImageFunction
static InterpolateImageFunctionNew (enum InterpolationMode=Interpolation_Default, const BaseImage *=NULL)
 Construct interpolator with default infinite extension of input image.
 
static InterpolateImageFunctionNew (enum InterpolationMode, enum ExtrapolationMode, const BaseImage *=NULL)
 
- Static Public Member Functions inherited from mirtk::Object
static const char * NameOfType ()
 Get name of this class type.
 

Protected Member Functions

 GenericInterpolateImageFunction ()
 Default constructor.
 
- Protected Member Functions inherited from mirtk::InterpolateImageFunction
 InterpolateImageFunction ()
 Default constructor.
 
- Protected Member Functions inherited from mirtk::ImageFunction
 ImageFunction ()
 Default constructor.
 
 ImageFunction (const ImageFunction &)
 Copy constructor.
 
- Protected Member Functions inherited from mirtk::Object
template<typename... Args>
void Throw (ErrorType err, const char *func, Args... args) const
 

Additional Inherited Members

- Static Protected Member Functions inherited from mirtk::Object
template<typename... Args>
static void ThrowStatic (ErrorType err, const char *cls, const char *func, Args... args)
 
- Protected Attributes inherited from mirtk::InterpolateImageFunction
ExtrapolateImageFunction_InfiniteInput
 
bool _InfiniteInputOwner
 Whether infinite discrete image was instantiated by this image function.
 
double _x1
 

Detailed Description

template<class TImage>
class mirtk::GenericInterpolateImageFunction< TImage >

Abstract base class of generic interpolation functions

This interpolation interface is templated over the input image type and thus can access the image data using non-virtual getters which return the image values with the appropriate voxel type. Therefore, it is more efficient and type safe to use this interpolation interface whenever the image type is known. Otherwise, use the abstract InterpolateImageFunction interface instead.

See also
InterpolateImageFunction

Definition at line 559 of file InterpolateImageFunction.h.

Member Function Documentation

§ EvaluateInside() [1/3]

template<class TImage >
double mirtk::GenericInterpolateImageFunction< TImage >::EvaluateInside ( double  x,
double  y,
double  z = 0,
double  t = 0 
) const
inlinevirtual

Evaluate scalar image without handling boundary conditions

This version is faster than EvaluateOutside, but is only defined inside the domain for which all image values required for interpolation are defined and thus require no extrapolation of the finite image.

Implements mirtk::InterpolateImageFunction.

Definition at line 1368 of file InterpolateImageFunction.h.

§ EvaluateInside() [2/3]

template<class TImage >
void mirtk::GenericInterpolateImageFunction< TImage >::EvaluateInside ( double *  v,
double  x,
double  y,
double  z = 0,
int  vt = 1 
) const
inlinevirtual

Evaluate multi-channel image without handling boundary conditions

This version is faster than EvaluateOutside, but is only defined inside the domain for which all image values required for interpolation are defined and thus require no extrapolation of the finite image.

Reimplemented from mirtk::InterpolateImageFunction.

Definition at line 1400 of file InterpolateImageFunction.h.

§ EvaluateInside() [3/3]

template<class TImage >
void mirtk::GenericInterpolateImageFunction< TImage >::EvaluateInside ( Vector v,
double  x,
double  y,
double  z = 0,
double  t = 0 
) const
inlinevirtual

Evaluate vector image without handling boundary conditions

This version is faster than EvaluateOutside, but is only defined inside the domain for which all image values required for interpolation are defined and thus require no extrapolation of the finite image.

Implements mirtk::InterpolateImageFunction.

Definition at line 1440 of file InterpolateImageFunction.h.

§ EvaluateWithPaddingInside() [1/3]

template<class TImage >
double mirtk::GenericInterpolateImageFunction< TImage >::EvaluateWithPaddingInside ( double  x,
double  y,
double  z = 0,
double  t = 0 
) const
inlinevirtual

Evaluate scalar image at an arbitrary location (in pixels)

If the location is partially inside the foreground region of the image, only the foreground values are interpolated. Otherwise, the _DefaultValue is returned.

This version is faster than EvaluateWithPaddingOutside, but is only defined inside the domain for which all image values required for interpolation are defined and thus require no extrapolation of the finite image.

Implements mirtk::InterpolateImageFunction.

Definition at line 1384 of file InterpolateImageFunction.h.

§ EvaluateWithPaddingInside() [2/3]

template<class TImage >
void mirtk::GenericInterpolateImageFunction< TImage >::EvaluateWithPaddingInside ( double *  v,
double  x,
double  y,
double  z = 0,
int  vt = 1 
) const
inlinevirtual

Evaluate multi-channel image at an arbitrary location (in pixels)

If the location is partially inside the foreground region of the image, only the foreground values are interpolated. Otherwise, the _DefaultValue is returned.

This version is faster than EvaluateWithPaddingOutside, but is only defined inside the domain for which all image values required for interpolation are defined and thus require no extrapolation of the finite image.

Reimplemented from mirtk::InterpolateImageFunction.

Definition at line 1420 of file InterpolateImageFunction.h.

§ EvaluateWithPaddingInside() [3/3]

template<class TImage >
void mirtk::GenericInterpolateImageFunction< TImage >::EvaluateWithPaddingInside ( Vector v,
double  x,
double  y,
double  z = 0,
double  t = 0 
) const
inlinevirtual

Evaluate vector image at an arbitrary location (in pixels)

If the location is partially inside the foreground region of the image, only the foreground values are interpolated. Otherwise, a vector set to the _DefaultValue is returned.

This version is faster than EvaluateWithPaddingOutside, but is only defined inside the domain for which all image values required for interpolation are defined and thus require no extrapolation of the finite image.

Implements mirtk::InterpolateImageFunction.

Definition at line 1456 of file InterpolateImageFunction.h.

§ EvaluateWithPaddingOutside() [1/3]

template<class TImage >
double mirtk::GenericInterpolateImageFunction< TImage >::EvaluateWithPaddingOutside ( double  x,
double  y,
double  z = 0,
double  t = 0 
) const
inlinevirtual

Evaluate scalar image at an arbitrary location (in pixels)

If the location is partially inside the foreground region of the image, only the foreground values are interpolated. Otherwise, the _DefaultValue is returned.

Implements mirtk::InterpolateImageFunction.

Definition at line 1392 of file InterpolateImageFunction.h.

§ EvaluateWithPaddingOutside() [2/3]

template<class TImage >
void mirtk::GenericInterpolateImageFunction< TImage >::EvaluateWithPaddingOutside ( double *  v,
double  x,
double  y,
double  z = 0,
int  vt = 1 
) const
inlinevirtual

Evaluate multi-channel image at an arbitrary location (in pixels)

If the location is partially inside the foreground region of the image, only the foreground values are interpolated. Otherwise, the _DefaultValue is returned.

Reimplemented from mirtk::InterpolateImageFunction.

Definition at line 1430 of file InterpolateImageFunction.h.

§ EvaluateWithPaddingOutside() [3/3]

template<class TImage >
void mirtk::GenericInterpolateImageFunction< TImage >::EvaluateWithPaddingOutside ( Vector v,
double  x,
double  y,
double  z = 0,
double  t = 0 
) const
inlinevirtual

Evaluate vector image at an arbitrary location (in pixels)

If the location is partially inside the foreground region of the image, only the foreground values are interpolated. Otherwise, a vector set to the _DefaultValue is returned.

Implements mirtk::InterpolateImageFunction.

Definition at line 1464 of file InterpolateImageFunction.h.

§ Extrapolator() [1/2]

template<class TImage >
GenericInterpolateImageFunction< TImage >::ExtrapolatorType * mirtk::GenericInterpolateImageFunction< TImage >::Extrapolator ( )
inline

Get extrapolate image function for evaluation outside of image domain or NULL if extrapolation mode is Extrapolation_None

Definition at line 1320 of file InterpolateImageFunction.h.

§ Extrapolator() [2/2]

template<class TImage >
const GenericInterpolateImageFunction< TImage >::ExtrapolatorType * mirtk::GenericInterpolateImageFunction< TImage >::Extrapolator ( ) const
inline

Get extrapolate image function for evaluation outside of image domain or NULL if extrapolation mode is Extrapolation_None

Definition at line 1328 of file InterpolateImageFunction.h.

§ Get()

template<class TImage >
TImage::VoxelType mirtk::GenericInterpolateImageFunction< TImage >::Get ( double  x,
double  y,
double  z = 0,
double  t = 0 
) const
inline

Evaluate generic image at an arbitrary location (in pixels)

If the location is inside the domain for which the filter can perform an interpolation without considering a particular boundary condition, the faster GetInside method is called. Otherwise, the GetOutside method which makes use of the extrapolation of the discrete image domain in order to interpolate also at boundary or outside locations is used.

Definition at line 1341 of file InterpolateImageFunction.h.

§ GetInside()

template<class TImage>
virtual VoxelType mirtk::GenericInterpolateImageFunction< TImage >::GetInside ( double  ,
double  ,
double  = 0,
double  = 0 
) const
pure virtual

Evaluate generic image without handling boundary conditions

This version is faster than GetOutside, but is only defined inside the domain for which all image values required for interpolation are defined and thus require no extrapolation of the finite image.

Implemented in mirtk::GenericLinearInterpolateImageFunction< TImage >, mirtk::GenericLinearInterpolateImageFunction< ImageType >, mirtk::GenericLinearInterpolateImageFunction< CPImage >, mirtk::GenericLinearInterpolateImageFunction< BaseImage >, mirtk::GenericFastCubicBSplineInterpolateImageFunction< TImage >, mirtk::GenericFastCubicBSplineInterpolateImageFunction< CPImage >, mirtk::GenericFastCubicBSplineInterpolateImageFunction< BaseImage >, mirtk::GenericCubicBSplineInterpolateImageFunction< TImage >, mirtk::GenericCubicBSplineInterpolateImageFunction< BaseImage >, mirtk::GenericBSplineInterpolateImageFunction< TImage >, mirtk::GenericBSplineInterpolateImageFunction< BaseImage >, mirtk::GenericGaussianInterpolateImageFunction< TImage >, mirtk::GenericGaussianInterpolateImageFunction< BaseImage >, mirtk::GenericLinearInterpolateImageFunction< TImage >, mirtk::GenericLinearInterpolateImageFunction< ImageType >, mirtk::GenericLinearInterpolateImageFunction< CPImage >, mirtk::GenericLinearInterpolateImageFunction< BaseImage >, mirtk::GenericSincInterpolateImageFunction< TImage >, mirtk::GenericSincInterpolateImageFunction< BaseImage >, mirtk::GenericCSplineInterpolateImageFunction< TImage >, mirtk::GenericCSplineInterpolateImageFunction< BaseImage >, mirtk::GenericNearestNeighborInterpolateImageFunction< TImage >, mirtk::GenericNearestNeighborInterpolateImageFunction< BaseImage >, mirtk::GenericBSplineInterpolateImageFunction2D< TImage >, mirtk::GenericBSplineInterpolateImageFunction3D< TImage >, mirtk::GenericBSplineInterpolateImageFunction4D< TImage >, mirtk::GenericBSplineInterpolateImageFunction2D< BaseImage >, mirtk::GenericBSplineInterpolateImageFunction3D< BaseImage >, mirtk::GenericBSplineInterpolateImageFunction4D< BaseImage >, mirtk::GenericCubicBSplineInterpolateImageFunction2D< TImage >, mirtk::GenericCubicBSplineInterpolateImageFunction3D< TImage >, mirtk::GenericCubicBSplineInterpolateImageFunction4D< TImage >, mirtk::GenericFastCubicBSplineInterpolateImageFunction2D< TImage >, mirtk::GenericFastCubicBSplineInterpolateImageFunction3D< TImage >, mirtk::GenericFastCubicBSplineInterpolateImageFunction4D< TImage >, mirtk::GenericGaussianInterpolateImageFunction4D< TImage >, mirtk::GenericCubicBSplineInterpolateImageFunction2D< BaseImage >, mirtk::GenericCubicBSplineInterpolateImageFunction3D< BaseImage >, mirtk::GenericCubicBSplineInterpolateImageFunction4D< BaseImage >, mirtk::GenericFastCubicBSplineInterpolateImageFunction2D< CPImage >, mirtk::GenericFastCubicBSplineInterpolateImageFunction2D< BaseImage >, mirtk::GenericFastCubicBSplineInterpolateImageFunction3D< CPImage >, mirtk::GenericFastCubicBSplineInterpolateImageFunction3D< BaseImage >, mirtk::GenericFastCubicBSplineInterpolateImageFunction4D< CPImage >, mirtk::GenericFastCubicBSplineInterpolateImageFunction4D< BaseImage >, mirtk::GenericGaussianInterpolateImageFunction4D< BaseImage >, mirtk::GenericCSplineInterpolateImageFunction3D< TImage >, mirtk::GenericGaussianInterpolateImageFunction2D< TImage >, mirtk::GenericGaussianInterpolateImageFunction3D< TImage >, mirtk::GenericLinearInterpolateImageFunction2D< TImage >, mirtk::GenericLinearInterpolateImageFunction3D< TImage >, mirtk::GenericLinearInterpolateImageFunction4D< TImage >, mirtk::GenericSincInterpolateImageFunction2D< TImage >, mirtk::GenericSincInterpolateImageFunction3D< TImage >, mirtk::GenericSincInterpolateImageFunction4D< TImage >, mirtk::GenericCSplineInterpolateImageFunction3D< BaseImage >, mirtk::GenericGaussianInterpolateImageFunction2D< BaseImage >, mirtk::GenericGaussianInterpolateImageFunction3D< BaseImage >, mirtk::GenericLinearInterpolateImageFunction2D< BaseImage >, mirtk::GenericLinearInterpolateImageFunction3D< BaseImage >, mirtk::GenericLinearInterpolateImageFunction4D< CPImage >, mirtk::GenericLinearInterpolateImageFunction4D< BaseImage >, mirtk::GenericSincInterpolateImageFunction2D< BaseImage >, mirtk::GenericSincInterpolateImageFunction3D< BaseImage >, mirtk::GenericSincInterpolateImageFunction4D< BaseImage >, mirtk::GenericCSplineInterpolateImageFunction2D< TImage >, mirtk::GenericCSplineInterpolateImageFunction4D< TImage >, mirtk::GenericCSplineInterpolateImageFunction2D< BaseImage >, and mirtk::GenericCSplineInterpolateImageFunction4D< BaseImage >.

§ GetWithPadding()

template<class TImage >
TImage::VoxelType mirtk::GenericInterpolateImageFunction< TImage >::GetWithPadding ( double  x,
double  y,
double  z = 0,
double  t = 0 
) const
inline

Evaluate generic image at an arbitrary location (in pixels)

If the location is partially inside the foreground region of the image, only the foreground values are interpolated. Otherwise, the _DefaultValue is returned.

Definition at line 1351 of file InterpolateImageFunction.h.

§ GetWithPaddingInside()

template<class TImage>
virtual VoxelType mirtk::GenericInterpolateImageFunction< TImage >::GetWithPaddingInside ( double  ,
double  ,
double  = 0,
double  = 0 
) const
pure virtual

Evaluate generic image without handling boundary conditions

If the location is partially inside the foreground region of the image, only the foreground values are interpolated. Otherwise, the _DefaultValue is returned.

This version is faster than GetWithPaddingOutside, but is only defined inside the domain for which all image values required for interpolation are defined and thus require no extrapolation of the finite image.

Implemented in mirtk::GenericFastCubicBSplineInterpolateImageFunction< TImage >, mirtk::GenericFastCubicBSplineInterpolateImageFunction< CPImage >, mirtk::GenericFastCubicBSplineInterpolateImageFunction< BaseImage >, mirtk::GenericCubicBSplineInterpolateImageFunction< TImage >, mirtk::GenericCubicBSplineInterpolateImageFunction< BaseImage >, mirtk::GenericBSplineInterpolateImageFunction< TImage >, mirtk::GenericBSplineInterpolateImageFunction< BaseImage >, mirtk::GenericGaussianInterpolateImageFunction< TImage >, mirtk::GenericGaussianInterpolateImageFunction< BaseImage >, mirtk::GenericLinearInterpolateImageFunction< TImage >, mirtk::GenericLinearInterpolateImageFunction< ImageType >, mirtk::GenericLinearInterpolateImageFunction< CPImage >, mirtk::GenericLinearInterpolateImageFunction< BaseImage >, mirtk::GenericSincInterpolateImageFunction< TImage >, mirtk::GenericSincInterpolateImageFunction< BaseImage >, mirtk::GenericCSplineInterpolateImageFunction< TImage >, mirtk::GenericCSplineInterpolateImageFunction< BaseImage >, mirtk::GenericNearestNeighborInterpolateImageFunction< TImage >, mirtk::GenericNearestNeighborInterpolateImageFunction< BaseImage >, mirtk::GenericBSplineInterpolateImageFunction2D< TImage >, mirtk::GenericBSplineInterpolateImageFunction3D< TImage >, mirtk::GenericBSplineInterpolateImageFunction4D< TImage >, mirtk::GenericGaussianInterpolateImageFunction4D< TImage >, mirtk::GenericBSplineInterpolateImageFunction2D< BaseImage >, mirtk::GenericBSplineInterpolateImageFunction3D< BaseImage >, mirtk::GenericBSplineInterpolateImageFunction4D< BaseImage >, mirtk::GenericGaussianInterpolateImageFunction4D< BaseImage >, mirtk::GenericCSplineInterpolateImageFunction3D< TImage >, mirtk::GenericCubicBSplineInterpolateImageFunction2D< TImage >, mirtk::GenericCubicBSplineInterpolateImageFunction3D< TImage >, mirtk::GenericCubicBSplineInterpolateImageFunction4D< TImage >, mirtk::GenericFastCubicBSplineInterpolateImageFunction2D< TImage >, mirtk::GenericFastCubicBSplineInterpolateImageFunction3D< TImage >, mirtk::GenericFastCubicBSplineInterpolateImageFunction4D< TImage >, mirtk::GenericGaussianInterpolateImageFunction2D< TImage >, mirtk::GenericGaussianInterpolateImageFunction3D< TImage >, mirtk::GenericLinearInterpolateImageFunction2D< TImage >, mirtk::GenericLinearInterpolateImageFunction3D< TImage >, mirtk::GenericLinearInterpolateImageFunction4D< TImage >, mirtk::GenericSincInterpolateImageFunction2D< TImage >, mirtk::GenericSincInterpolateImageFunction3D< TImage >, mirtk::GenericSincInterpolateImageFunction4D< TImage >, mirtk::GenericCSplineInterpolateImageFunction3D< BaseImage >, mirtk::GenericCubicBSplineInterpolateImageFunction2D< BaseImage >, mirtk::GenericCubicBSplineInterpolateImageFunction3D< BaseImage >, mirtk::GenericCubicBSplineInterpolateImageFunction4D< BaseImage >, mirtk::GenericFastCubicBSplineInterpolateImageFunction2D< CPImage >, mirtk::GenericFastCubicBSplineInterpolateImageFunction2D< BaseImage >, mirtk::GenericFastCubicBSplineInterpolateImageFunction3D< CPImage >, mirtk::GenericFastCubicBSplineInterpolateImageFunction3D< BaseImage >, mirtk::GenericFastCubicBSplineInterpolateImageFunction4D< CPImage >, mirtk::GenericFastCubicBSplineInterpolateImageFunction4D< BaseImage >, mirtk::GenericGaussianInterpolateImageFunction2D< BaseImage >, mirtk::GenericGaussianInterpolateImageFunction3D< BaseImage >, mirtk::GenericLinearInterpolateImageFunction2D< BaseImage >, mirtk::GenericLinearInterpolateImageFunction3D< BaseImage >, mirtk::GenericLinearInterpolateImageFunction4D< CPImage >, mirtk::GenericLinearInterpolateImageFunction4D< BaseImage >, mirtk::GenericSincInterpolateImageFunction2D< BaseImage >, mirtk::GenericSincInterpolateImageFunction3D< BaseImage >, mirtk::GenericSincInterpolateImageFunction4D< BaseImage >, mirtk::GenericCSplineInterpolateImageFunction2D< TImage >, mirtk::GenericCSplineInterpolateImageFunction4D< TImage >, mirtk::GenericCSplineInterpolateImageFunction2D< BaseImage >, and mirtk::GenericCSplineInterpolateImageFunction4D< BaseImage >.

§ GetWithPaddingOutside()

template<class TImage>
virtual VoxelType mirtk::GenericInterpolateImageFunction< TImage >::GetWithPaddingOutside ( double  ,
double  ,
double  = 0,
double  = 0 
) const
pure virtual

Evaluate generic image at an arbitrary location (in pixels)

If the location is partially inside the foreground region of the image, only the foreground values are interpolated. Otherwise, the _DefaultValue is returned.

Implemented in mirtk::GenericFastCubicBSplineInterpolateImageFunction< TImage >, mirtk::GenericFastCubicBSplineInterpolateImageFunction< CPImage >, mirtk::GenericFastCubicBSplineInterpolateImageFunction< BaseImage >, mirtk::GenericCubicBSplineInterpolateImageFunction< TImage >, mirtk::GenericCubicBSplineInterpolateImageFunction< BaseImage >, mirtk::GenericBSplineInterpolateImageFunction< TImage >, mirtk::GenericBSplineInterpolateImageFunction< BaseImage >, mirtk::GenericGaussianInterpolateImageFunction< TImage >, mirtk::GenericGaussianInterpolateImageFunction< BaseImage >, mirtk::GenericLinearInterpolateImageFunction< TImage >, mirtk::GenericLinearInterpolateImageFunction< ImageType >, mirtk::GenericLinearInterpolateImageFunction< CPImage >, mirtk::GenericLinearInterpolateImageFunction< BaseImage >, mirtk::GenericSincInterpolateImageFunction< TImage >, mirtk::GenericSincInterpolateImageFunction< BaseImage >, mirtk::GenericCSplineInterpolateImageFunction< TImage >, mirtk::GenericCSplineInterpolateImageFunction< BaseImage >, mirtk::GenericNearestNeighborInterpolateImageFunction< TImage >, mirtk::GenericNearestNeighborInterpolateImageFunction< BaseImage >, mirtk::GenericGaussianInterpolateImageFunction4D< TImage >, mirtk::GenericGaussianInterpolateImageFunction4D< BaseImage >, mirtk::GenericBSplineInterpolateImageFunction2D< TImage >, mirtk::GenericBSplineInterpolateImageFunction3D< TImage >, mirtk::GenericBSplineInterpolateImageFunction4D< TImage >, mirtk::GenericCSplineInterpolateImageFunction3D< TImage >, mirtk::GenericGaussianInterpolateImageFunction2D< TImage >, mirtk::GenericGaussianInterpolateImageFunction3D< TImage >, mirtk::GenericLinearInterpolateImageFunction2D< TImage >, mirtk::GenericLinearInterpolateImageFunction3D< TImage >, mirtk::GenericLinearInterpolateImageFunction4D< TImage >, mirtk::GenericSincInterpolateImageFunction2D< TImage >, mirtk::GenericSincInterpolateImageFunction3D< TImage >, mirtk::GenericSincInterpolateImageFunction4D< TImage >, mirtk::GenericBSplineInterpolateImageFunction2D< BaseImage >, mirtk::GenericBSplineInterpolateImageFunction3D< BaseImage >, mirtk::GenericBSplineInterpolateImageFunction4D< BaseImage >, mirtk::GenericCSplineInterpolateImageFunction3D< BaseImage >, mirtk::GenericGaussianInterpolateImageFunction2D< BaseImage >, mirtk::GenericGaussianInterpolateImageFunction3D< BaseImage >, mirtk::GenericLinearInterpolateImageFunction2D< BaseImage >, mirtk::GenericLinearInterpolateImageFunction3D< BaseImage >, mirtk::GenericLinearInterpolateImageFunction4D< CPImage >, mirtk::GenericLinearInterpolateImageFunction4D< BaseImage >, mirtk::GenericSincInterpolateImageFunction2D< BaseImage >, mirtk::GenericSincInterpolateImageFunction3D< BaseImage >, mirtk::GenericSincInterpolateImageFunction4D< BaseImage >, mirtk::GenericCSplineInterpolateImageFunction2D< TImage >, mirtk::GenericCSplineInterpolateImageFunction4D< TImage >, mirtk::GenericCubicBSplineInterpolateImageFunction2D< TImage >, mirtk::GenericCubicBSplineInterpolateImageFunction3D< TImage >, mirtk::GenericCubicBSplineInterpolateImageFunction4D< TImage >, mirtk::GenericFastCubicBSplineInterpolateImageFunction2D< TImage >, mirtk::GenericFastCubicBSplineInterpolateImageFunction3D< TImage >, mirtk::GenericFastCubicBSplineInterpolateImageFunction4D< TImage >, mirtk::GenericCSplineInterpolateImageFunction2D< BaseImage >, mirtk::GenericCSplineInterpolateImageFunction4D< BaseImage >, mirtk::GenericCubicBSplineInterpolateImageFunction2D< BaseImage >, mirtk::GenericCubicBSplineInterpolateImageFunction3D< BaseImage >, mirtk::GenericCubicBSplineInterpolateImageFunction4D< BaseImage >, mirtk::GenericFastCubicBSplineInterpolateImageFunction2D< CPImage >, mirtk::GenericFastCubicBSplineInterpolateImageFunction2D< BaseImage >, mirtk::GenericFastCubicBSplineInterpolateImageFunction3D< CPImage >, mirtk::GenericFastCubicBSplineInterpolateImageFunction3D< BaseImage >, mirtk::GenericFastCubicBSplineInterpolateImageFunction4D< CPImage >, and mirtk::GenericFastCubicBSplineInterpolateImageFunction4D< BaseImage >.

§ Initialize()

template<class TImage >
void mirtk::GenericInterpolateImageFunction< TImage >::Initialize ( bool  coeff = false)
inlinevirtual

§ New()

template<class TImage>
GenericInterpolateImageFunction< TImage > * mirtk::GenericInterpolateImageFunction< TImage >::New ( enum InterpolationMode  imode,
enum ExtrapolationMode  emode,
const TImage *  image = NULL 
)
static

Construct interpolator with specified infinite extension of input image

The caller is required to set the input, initialize, and destroy the interpolator only, the extrapolator is initialized and destroyed by the interpolator unless the extrapolator has been replaced using the setter.

Definition at line 356 of file InterpolateImageFunction.hxx.


The documentation for this class was generated from the following files: