irtkImageTransformation Class Reference

#include <irtkImageTransformation.h>

Inherited by irtkImageHomogeneousTransformation.

Collaboration diagram for irtkImageTransformation:

Collaboration graph
[legend]

List of all members.


Detailed Description

Filter for image transformations.

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 irtkImageFunctionGetInterpolator (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 irtkImageTransformationNew (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.

Constructor & Destructor Documentation

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


Member Function Documentation

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.


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