Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
mirtk::ExtrapolateImageFunction Class Referenceabstract

#include <ExtrapolateImageFunction.h>

Inheritance diagram for mirtk::ExtrapolateImageFunction:
Inheritance graph
Collaboration diagram for mirtk::ExtrapolateImageFunction:
Collaboration graph

Public Member Functions

const ImageAttributesAttributes () const
 Attributes of input image.
 
double Evaluate (double, double, double=0, double=0) const
 Get scalar image value at the nearest discrete image location.
 
virtual double Evaluate (double, double, double=0, double=0)
 Get scalar image value at the nearest discrete image location.
 
virtual enum ExtrapolationMode ExtrapolationMode () const =0
 Get extrapolation mode corresponding to this extrapolator.
 
double GetAsDouble (int) const
 Get scalar image value at an arbitrary discrete image location.
 
virtual double GetAsDouble (int, int, int=0, int=0) const =0
 Get scalar image value at an arbitrary discrete image location.
 
Vector GetAsVector (int) const
 Get vector image value at an arbitrary discrete image location.
 
Vector GetAsVector (int, int, int=0, int=0) const
 Get vector image value at an arbitrary discrete image location.
 
void GetAsVector (Vector &, int) const
 Get vector image value at an arbitrary discrete image location.
 
virtual void GetAsVector (Vector &, int, int, int=0, int=0) const =0
 Get vector image value at an arbitrary discrete image location.
 
virtual bool IsForeground (int, int, int=0, int=0) const
 
int N () const
 Number of vector components per image voxel.
 
int T () const
 Size of input image in t dimension.
 
double TSize () const
 Voxel size of input image in t dimension.
 
int X () const
 Size of input image in x dimension.
 
double XSize () const
 Voxel size of input image in x dimension.
 
int Y () const
 Size of input image in y dimension.
 
double YSize () const
 Voxel size of input image in y dimension.
 
int Z () const
 Size of input image in z dimension.
 
double ZSize () const
 Voxel size of input image in z dimension.
 
virtual ~ExtrapolateImageFunction ()
 Destructor.
 
- Public Member Functions inherited from mirtk::ImageFunction
virtual void Initialize ()
 
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 ExtrapolateImageFunctionNew (ExtrapolationMode mode, const BaseImage *=NULL)
 Construct extrapolator or return NULL if mode is Extrapolation_None.
 
- Static Public Member Functions inherited from mirtk::Object
static const char * NameOfType ()
 Get name of this class type.
 

Protected Member Functions

 ExtrapolateImageFunction ()
 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)
 

Detailed Description

Abstract base class for discrete image extrapolation

This abstract base class defines a common interface for image functions which provide a value at each discrete image location, especially also those which are outside the finite domain on which the image is defined. At these outside voxels, the image function extrapolates the image values, thus extending an image function to an infinite discrete lattice. An image extrapolate image function is mainly used indirectly through an instance of InterpolateImageFunction. Image values at continuous voxel positions are interpolated by the interpolate image function using the extrapolated image values at discrete lattice points.

Definition at line 46 of file ExtrapolateImageFunction.h.

Member Function Documentation

§ IsForeground()

bool mirtk::ExtrapolateImageFunction::IsForeground ( int  i,
int  j,
int  k = 0,
int  l = 0 
) const
inlinevirtual

Whether the extrapolated value is identical to the background value of the input image. If the input uses a background mask instead, only subclasses of IndexExtrapolateImageFunction can determine whether the voxel at the transformed location is in the foreground region.

Reimplemented in mirtk::IndexExtrapolateImageFunction< TImage >, and mirtk::IndexExtrapolateImageFunction< BaseImage >.

Definition at line 499 of file ExtrapolateImageFunction.h.


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