In file inrimage/Interpolator.h:

class TrilinVectInterpolator : public Interpolator

Trilinear interpolation for images with vector voxels. It will not work for scalar images.

Inheritance:


Public Classes

struct VoxelNotAVector : public Exception
Exception thrown when image voxel is not a vector.
VoxelNotAVector (std::string const& f, std::string const& e="voxel is not a vector")
Constructor. See base class to information.

Public Methods

Voxel& operator) (Inrimage const& img, double x, double y, double z, Voxel& v) const
get interpolated value at img(x,y,z)
Interpolator* clone () const
returns a copy of the object.
static TrilinVectInterpolator* interpolatorByType (Inrimage::WORD_TYPE t, size_t v)
return a TypedTrilinVectInterpolator for an image of type t

Protected Methods

static Voxel& addMulVoxDbl (Voxel& r, Voxel const& v, double d)
r += v*d

Documentation

Trilinear interpolation for images with vector voxels. It will not work for scalar images.
struct VoxelNotAVector: public Exception
Exception thrown when image voxel is not a vector.

VoxelNotAVector(std::string const& f, std::string const& e="voxel is not a vector")
Constructor. See base class to information.

Voxel& operator)(Inrimage const& img, double x, double y, double z, Voxel& v) const
get interpolated value at img(x,y,z)
Returns:
v, the voxel in which the value is stored
Parameters:
img - image to interpolate
x - x cartesian coordinate
y - y cartesian coordinate
z - z cartesian coordinate
v - voxel to store value

Interpolator* clone() const
returns a copy of the object.

static TrilinVectInterpolator* interpolatorByType(Inrimage::WORD_TYPE t, size_t v)
return a TypedTrilinVectInterpolator for an image of type t
Parameters:
t - The type of values of the image to interpolate.

static Voxel& addMulVoxDbl(Voxel& r, Voxel const& v, double d)
r += v*d. r and d must be of be vectorial and of the same type. r and d may be equal.
Returns:
r, the result voxel
Parameters:
r - result and initial value
v - voxel to add to r
d - value to scale v by


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de