#include <irtkInterpolateImageFunction.h>
This is the abstract base class which defines a common interface for all filters which take an image as input and sample that image at arbitrary location. Each derived class has to implement all abstract member functions.
Definition at line 34 of file irtkInterpolateImageFunction.h.
Public Member Functions | |
irtkInterpolateImageFunction () | |
Constructor. | |
virtual | ~irtkInterpolateImageFunction () |
Deconstuctor. | |
virtual void | Initialize () |
Returns the name of the class Initialize. | |
virtual double | Evaluate (double, double, double, double=0)=0 |
Evaluate the filter at an arbitrary image location (in pixels). | |
virtual double | EvaluateInside (double, double, double, double=0)=0 |
Evaluate the filter at an arbitrary image location (in pixels) without handling boundary conditions. | |
virtual Bool | IsInside (double, double, double) |
Check if the location is inside the image domain for which this image interpolation function can be used without handling any form of boundary conditions. | |
virtual void | Inside (double &, double &, double &, double &, double &, double &) |
Returns the image domain for which this image interpolation function can be used without handling any form of boundary conditions. | |
Static Public Member Functions | |
static irtkInterpolateImageFunction * | New (irtkInterpolationMode, irtkBaseImage *) |
Constuctor. | |
Protected Attributes | |
int | _clamped |
Flag whether to clamp interpolated values to min and max range of original data. | |
double | _min |
Min and max range of original data. | |
double | _max |
double | _x1 |
Domain of input image for which this image interpolation function can be used without handling any form of boundary conditions. | |
double | _y1 |
double | _z1 |
double | _x2 |
double | _y2 |
double | _z2 |
virtual double irtkInterpolateImageFunction::EvaluateInside | ( | double | , | |
double | , | |||
double | , | |||
double | = 0 | |||
) | [pure virtual] |
Evaluate the filter at an arbitrary image location (in pixels) without handling boundary conditions.
This version is faster than the method above, but is only defined inside the image domain.
Implemented in irtkBSplineInterpolateImageFunction, irtkBSplineInterpolateImageFunction2D, irtkCSplineInterpolateImageFunction, irtkCSplineInterpolateImageFunction2D, irtkGaussianInterpolateImageFunction, irtkGaussianInterpolateImageFunction2D, irtkLinearInterpolateImageFunction, irtkLinearInterpolateImageFunction2D, irtkNearestNeighborInterpolateImageFunction, irtkNearestNeighborInterpolateImageFunction2D, irtkSincInterpolateImageFunction, and irtkSincInterpolateImageFunction2D.
Bool irtkInterpolateImageFunction::IsInside | ( | double | x, | |
double | y, | |||
double | z | |||
) | [inline, virtual] |
Check if the location is inside the image domain for which this image interpolation function can be used without handling any form of boundary conditions.
Definition at line 86 of file irtkInterpolateImageFunction.h.
References _x1.
void irtkInterpolateImageFunction::Inside | ( | double & | x1, | |
double & | y1, | |||
double & | z1, | |||
double & | x2, | |||
double & | y2, | |||
double & | z2 | |||
) | [inline, virtual] |
Returns the image domain for which this image interpolation function can be used without handling any form of boundary conditions.
Definition at line 92 of file irtkInterpolateImageFunction.h.
References _x1.
double irtkInterpolateImageFunction::_x1 [protected] |
Domain of input image for which this image interpolation function can be used without handling any form of boundary conditions.
Definition at line 48 of file irtkInterpolateImageFunction.h.
Referenced by Inside(), and IsInside().