Documentation for vtkImageReslice

vtkImageReslice - Reslices a volume along the axes specified.

Super Class: vtkImageFilter

Description:

vtkImageReslice will reslice a volume along the axes specified by the reslicing transformation matrix. The extent, origin, and sampling density of the output data can also be set.

 

Caveats:

Interpolation cannot (yet) be used on a 2D image because the trilinear interpolation requires a cube of eight input voxels for each output voxel.

 

See Also:

vtkImageFilter, vtkTransform

 

Methods:

void vtkImageReslice ()
void vtkImageReslice ()
static vtkImageReslice *New ()
const char *GetClassName ()
void PrintSelf (unknown & ,vtkIndent )
void SetResliceTransform (vtkTransform *)
vtkTransform *GetResliceTransform ()
void SetInterpolate (int )
int GetInterpolate ()
void InterpolateOn ()
void InterpolateOff ()
void SetBackgroundLevel (double )
double GetBackgroundLevel ()
void SetOutputSpacing (float ,float ,float )
void SetOutputSpacing (float *)
float *GetOutputSpacing ()
void SetOutputOrigin (float ,float ,float )
void SetOutputOrigin (float *)
float *GetOutputOrigin ()
void SetOutputExtent (int *)
int *GetOutputExtent ()
void ComputeIndexMatrix (vtkMatrix4x4 *)
int FindExtent (int & ,int & ,double * ,float * ,int * ,int * ,int )
void ExecuteImageInformation ()
void ComputeRequiredInputUpdateExtent (int ,int )
void ThreadedExecute (vtkImageData * ,vtkImageData * ,int ,int )

 

Detailed Method Descriptions:

Set reslicing transform (describes the set of axis along which to reslice)

void SetResliceTransform (vtkTransform *)
vtkTransform *GetResliceTransform ()

Turn on trilinear interpolation (default: nearest neighbor)

void SetInterpolate (int )
int GetInterpolate ()
void InterpolateOn ()
void InterpolateOff ()

Allow user to set background 'color'

void SetBackgroundLevel (double )
double GetBackgroundLevel ()

Spacing, origin, and extent of output data

void SetOutputSpacing (float ,float ,float )
void SetOutputSpacing (float *)
float *GetOutputSpacing ()
void SetOutputOrigin (float ,float ,float )
void SetOutputOrigin (float *)
float *GetOutputOrigin ()
void SetOutputExtent (int *)
int *GetOutputExtent ()

This method is passed a input and output region, and executes the filter algorithm to fill the output from the input. It just executes a switch statement to call the correct function for the regions data types.

void ThreadedExecute (vtkImageData * ,vtkImageData * ,int ,int )