#include <irtkImageTransformation.h>
Inherited by irtkImageHomogeneousTransformation.
This class implements an image filter which takes an input image and a transformation and computes the corresponding output image. The output image is calculated by looping over the voxel locations and calculating the corresponding voxel locations in the input image. The intensity of the voxels of the output image is by interpolation from the input image. Note, that the transformation is assumed to map the input image into the ouput image and is therefore inverted during the execution of the filter. All calculations are carried out using world coordinates rather than image coordinates.
Definition at line 38 of file irtkImageTransformation.h.
Public Member Functions | |
irtkImageTransformation () | |
Constructor. | |
virtual | ~irtkImageTransformation () |
Destructor. | |
virtual void | SetInput (irtkImage *) |
Sets input image. | |
virtual void | SetInput (irtkImage *, irtkTransformation *) |
Sets input image and transformation. | |
virtual void | SetOutput (irtkImage *) |
Sets output image. | |
virtual void | SetTransformation (irtkTransformation *) |
Sets transformation. | |
virtual void | PutTargetPaddingValue (double) |
Puts the target padding value. | |
virtual double | GetTargetPaddingValue () |
Gets the target padding value. | |
virtual void | PutSourcePaddingValue (double) |
Puts the source padding value. | |
virtual double | GetSourcePaddingValue () |
Gets the source padding value. | |
virtual irtkImageFunction * | GetInterpolator (void) |
Gets the interpolator. | |
virtual void | PutInterpolator (irtkImageFunction *) |
Sets the interpolator. | |
virtual void | PutScaleFactorAndOffset (double=1, double=0) |
Sets scale and otfset. | |
virtual void | InvertOn (void) |
Invert on. | |
virtual void | InvertOff (void) |
Sets the interpolator. | |
virtual void | Run () |
Runs the filter. | |
Static Public Member Functions | |
static irtkImageTransformation * | New (irtkTransformation *) |
Static constructor. | |
Public Attributes | |
irtkImage * | _input |
Input for the image to image filter. | |
irtkImage * | _output |
Output for the image to image filter. | |
irtkTransformation * | _transformation |
Transformation. | |
irtkImageFunction * | _interpolator |
Interpolation. | |
double | _TargetPaddingValue |
Padding value in target (voxels in the target image with this value will be ignored). | |
double | _SourcePaddingValue |
Padding value in source (voxels outside the source image will be set to this value). | |
double | _ScaleFactor |
Scale factor for intensities in transformed image. | |
double | _Offset |
Offset for intensities in transformed image. | |
int | _Invert |
Flag whether to invert transformation. |
irtkImageTransformation::irtkImageTransformation | ( | ) |
Constructor.
This constructs an transformation filter with a given interpolation mode and padding value. By default the interpolation mode is set to trilinear and invert is off
static irtkImageTransformation* irtkImageTransformation::New | ( | irtkTransformation * | ) | [static] |
Static constructor.
This constructs an transformation filter for a given transformation. If there is a fast transformation filter, it will use this fast transformation filter, otherwise the standard transformation filter is used.