#include <vtkImageReslice.h>
Inheritance diagram for vtkImageReslice:
Public Methods | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
virtual void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | SetResliceAxes (vtkMatrix4x4 *) |
virtual vtkMatrix4x4 * | GetResliceAxes () |
virtual void | SetResliceTransform (vtkAbstractTransform *) |
virtual vtkAbstractTransform * | GetResliceTransform () |
virtual void | SetWrap (int) |
virtual int | GetWrap () |
virtual void | WrapOn () |
virtual void | WrapOff () |
virtual void | SetMirror (int) |
virtual int | GetMirror () |
virtual void | MirrorOn () |
virtual void | MirrorOff () |
virtual void | SetInterpolationMode (int) |
virtual int | GetInterpolationMode () |
void | SetInterpolationModeToNearestNeighbor () |
void | SetInterpolationModeToLinear () |
void | SetInterpolationModeToCubic () |
const char * | GetInterpolationModeAsString () |
virtual void | SetOptimization (int) |
virtual int | GetOptimization () |
virtual void | OptimizationOn () |
virtual void | OptimizationOff () |
virtual void | SetBackgroundColor (float, float, float, float) |
virtual void | SetBackgroundColor (float[4]) |
virtual float * | GetBackgroundColor () |
virtual void | GetBackgroundColor (float &, float &, float &, float &) |
virtual void | GetBackgroundColor (float[4]) |
void | SetBackgroundLevel (float v) |
float | GetBackgroundLevel () |
virtual void | SetOutputSpacing (float, float, float) |
virtual void | SetOutputSpacing (float[3]) |
virtual float * | GetOutputSpacing () |
virtual void | GetOutputSpacing (float &, float &, float &) |
virtual void | GetOutputSpacing (float[3]) |
virtual void | SetOutputOrigin (float, float, float) |
virtual void | SetOutputOrigin (float[3]) |
virtual float * | GetOutputOrigin () |
virtual void | GetOutputOrigin (float &, float &, float &) |
virtual void | GetOutputOrigin (float[3]) |
virtual void | SetOutputExtent (int, int, int, int, int, int) |
virtual void | SetOutputExtent (int[6]) |
virtual int * | GetOutputExtent () |
virtual void | GetOutputExtent (int &, int &, int &, int &, int &, int &) |
virtual void | GetOutputExtent (int[6]) |
virtual void | SetOutputAlwaysCenteredOnInput (int) |
virtual int | GetOutputAlwaysCenteredOnInput () |
virtual void | OutputAlwaysCenteredOnInputOn () |
virtual void | OutputAlwaysCenteredOnInputOff () |
unsigned long int | GetMTime () |
vtkMatrix4x4 * | GetIndexMatrix () |
int | FindExtent (int &r1, int &r2, float *point, float *xAxis, int *inMin, int *inMax, int *outExt) |
void | SetInterpolate (int t) |
void | InterpolateOn () |
void | InterpolateOff () |
int | GetInterpolate () |
Static Public Methods | |
vtkImageReslice * | New () |
int | IsTypeOf (const char *type) |
vtkImageReslice * | SafeDownCast (vtkObject *o) |
Protected Methods | |
vtkImageReslice () | |
~vtkImageReslice () | |
vtkImageReslice (const vtkImageReslice &) | |
void | operator= (const vtkImageReslice &) |
void | ExecuteInformation (vtkImageData *input, vtkImageData *output) |
void | ExecuteInformation () |
void | ComputeInputUpdateExtent (int inExt[6], int outExt[6]) |
void | ThreadedExecute (vtkImageData *inData, vtkImageData *outData, int ext[6], int id) |
void | OptimizedComputeInputUpdateExtent (int inExt[6], int outExt[6]) |
void | OptimizedThreadedExecute (vtkImageData *inData, vtkImageData *outData, int ext[6], int id) |
Protected Attributes | |
vtkMatrix4x4 * | ResliceAxes |
vtkAbstractTransform * | ResliceTransform |
vtkMatrix4x4 * | IndexMatrix |
int | Wrap |
int | Mirror |
int | InterpolationMode |
int | Optimization |
float | BackgroundColor [4] |
float | OutputOrigin [3] |
float | OutputSpacing [3] |
int | OutputExtent [6] |
int | OutputAlwaysCenteredOnInput |
The primary uses of this class are to extract either oblique or orthogonal slices from a volume, or to apply either a linear, perspective, or warp transformation to a volume.
This class is the swiss-army-knife of image geometry filters: It can permute, flip, rotate, scale, resample, and pad image data in any combination at similar efficiency to the specialized image filters that do the same things.
Definition at line 79 of file vtkImageReslice.h.
|
|
|
|
|
Definition at line 190 of file vtkImageReslice.h. |
|
Instantiate object with no start, end, or progress methods. Reimplemented from vtkImageToImageFilter. |
|
Return the class name as a string. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkImageToImageFilter. |
|
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkImageToImageFilter. |
|
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkImageToImageFilter. |
|
Will cast the supplied object to vtkObject* is this is a safe operation (i.e., a safe downcast); otherwise NULL is returned. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkImageToImageFilter. |
|
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes. Reimplemented from vtkImageToImageFilter. |
|
Use this method, in conjunction with SetOutputOrigin(), SetOutputSpacing() and SetOutputExtent(), to set up a grid of points at which to resample the input. The Axes specify the axes of the resampling grid, the OutputSpacing specifies the grid spacing, the OutputOrigin specifies the location of the origin of the grid (i.e the coordinates of voxel index (0,0,0) in the coordinate system specified by the Axes), and the OutputExtent specifies the size of resampling grid i.e. the ranges of the (i,j,k) indices. The first column of the matrix specifies the x-axis vector (set the fourth element to zero), the second column specifies the y-axis, and the third column the z-axis. The fourth column specifies the origin of the axes (set the fourth element to one). The matrix can be used to specify a perspective transformation (i.e. non-zero fourth elements for the axes), but the matrix must be invertible. |
|
|
|
Set a transform to be applied to the resampling grid that was specified in SetResliceAxes(). Note that applying a transform to the resampling grid is equivalent to applying the inverse of the same transform to the image before resampling it. Nonlinear transforms can be used here. |
|
|
|
Turn on wrap-pad feature (default: off). |
|
|
|
|
|
|
|
Turn on mirror-pad feature (default: off). This will override the wrap-pad, if set. |
|
|
|
|
|
|
|
Set interpolation mode (default: nearest neighbor). |
|
|
|
Definition at line 126 of file vtkImageReslice.h. |
|
Definition at line 128 of file vtkImageReslice.h. |
|
Definition at line 130 of file vtkImageReslice.h. |
|
Definition at line 217 of file vtkImageReslice.h. |
|
Turn on and off optimizations (default on, they should only be turned off for testing purposes). |
|
|
|
|
|
|
|
Set the background color (for multi-component images). |
|
|
|
|
|
|
|
|
|
Set background grey level (for single-component images). Definition at line 145 of file vtkImageReslice.h. |
|
Definition at line 146 of file vtkImageReslice.h. |
|
Spacing, origin, and extent of output data. The OutputSpacing default is (1,1,1), and the default OutputOrigin and OutputExtent are set to cover the entire transformed input extent. NOTE: The OutputOrigin and OutputExtent values are only used if OutputAlwaysCenteredOnInputOff. Otherwise, they are automatically computed. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
When determining the modified time of the filter, this check the modified time of the transform and matrix. Reimplemented from vtkObject. |
|
Helper functions not meant to be used outside this class. |
|
|
|
Convenient methods for switching between nearest-neighbor and linear interpolation (default: off). Definition at line 177 of file vtkImageReslice.h. |
|
Definition at line 180 of file vtkImageReslice.h. |
|
Definition at line 182 of file vtkImageReslice.h. |
|
Definition at line 184 of file vtkImageReslice.h. |
|
Definition at line 191 of file vtkImageReslice.h. |
|
Reimplemented from vtkImageToImageFilter. |
|
Reimplemented from vtkImageToImageFilter. Definition at line 207 of file vtkImageReslice.h. |
|
Reimplemented from vtkImageToImageFilter. |
|
If the subclass does not define an Execute method, then the task will be broken up, multiple threads will be spawned, and each thread will call this method. It is public so that the thread functions can call this method. Reimplemented from vtkImageToImageFilter. |
|
|
|
|
|
Definition at line 193 of file vtkImageReslice.h. |
|
Definition at line 194 of file vtkImageReslice.h. |
|
Definition at line 195 of file vtkImageReslice.h. |
|
Definition at line 196 of file vtkImageReslice.h. |
|
Definition at line 197 of file vtkImageReslice.h. |
|
Definition at line 198 of file vtkImageReslice.h. |
|
Definition at line 199 of file vtkImageReslice.h. |
|
Definition at line 200 of file vtkImageReslice.h. |
|
Definition at line 201 of file vtkImageReslice.h. |
|
Definition at line 202 of file vtkImageReslice.h. |
|
Definition at line 203 of file vtkImageReslice.h. |
|
Definition at line 204 of file vtkImageReslice.h. |