#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) |
unsigned long int | GetMTime () |
virtual void | SetResliceAxes (vtkMatrix4x4 *) |
virtual vtkMatrix4x4 * | GetResliceAxes () |
void | SetResliceAxesDirectionCosines (double x0, double x1, double x2, double y0, double y1, double y2, double z0, double z1, double z2) |
void | SetResliceAxesDirectionCosines (const double x[3], const double y[3], const double z[3]) |
void | SetResliceAxesDirectionCosines (const double xyz[9]) |
void | GetResliceAxesDirectionCosines (double x[3], double y[3], double z[3]) |
void | GetResliceAxesDirectionCosines (double xyz[9]) |
double * | GetResliceAxesDirectionCosines () |
void | SetResliceAxesOrigin (double x, double y, double z) |
void | SetResliceAxesOrigin (const double xyz[3]) |
void | GetResliceAxesOrigin (double xyz[3]) |
double * | GetResliceAxesOrigin () |
virtual void | SetResliceTransform (vtkAbstractTransform *) |
virtual vtkAbstractTransform * | GetResliceTransform () |
virtual void | SetInformationInput (vtkImageData *) |
virtual vtkImageData * | GetInformationInput () |
virtual void | SetTransformInputSampling (int) |
virtual void | TransformInputSamplingOn () |
virtual void | TransformInputSamplingOff () |
virtual int | GetTransformInputSampling () |
virtual void | SetAutoCropOutput (int) |
virtual void | AutoCropOutputOn () |
virtual void | AutoCropOutputOff () |
virtual int | GetAutoCropOutput () |
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]) |
void | SetOutputSpacingToDefault () |
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]) |
void | SetOutputOriginToDefault () |
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]) |
void | SetOutputExtentToDefault () |
virtual void | SetOutputDimensionality (int) |
virtual int | GetOutputDimensionality () |
void | SetInterpolate (int t) |
void | InterpolateOn () |
void | InterpolateOff () |
int | GetInterpolate () |
void | SetStencil (vtkImageStencilData *stencil) |
vtkImageStencilData * | GetStencil () |
Static Public Methods | |
vtkImageReslice * | New () |
int | IsTypeOf (const char *type) |
vtkImageReslice * | SafeDownCast (vtkObject *o) |
Protected Methods | |
vtkImageReslice () | |
~vtkImageReslice () | |
void | GetAutoCroppedOutputBounds (vtkImageData *input, float bounds[6]) |
void | ExecuteInformation (vtkImageData *input, vtkImageData *output) |
void | ExecuteInformation () |
void | ComputeInputUpdateExtents (vtkDataObject *output) |
void | ComputeInputUpdateExtent (int inExt[6], int outExt[6]) |
void | ThreadedExecute (vtkImageData *inData, vtkImageData *outData, int ext[6], int id) |
vtkMatrix4x4 * | GetIndexMatrix () |
vtkAbstractTransform * | GetOptimizedTransform () |
void | OptimizedComputeInputUpdateExtent (int inExt[6], int outExt[6]) |
void | OptimizedThreadedExecute (vtkImageData *inData, vtkImageData *outData, int ext[6], int id) |
Protected Attributes | |
vtkMatrix4x4 * | ResliceAxes |
double | ResliceAxesDirectionCosines [9] |
double | ResliceAxesOrigin [3] |
vtkAbstractTransform * | ResliceTransform |
vtkImageData * | InformationInput |
int | Wrap |
int | Mirror |
int | InterpolationMode |
int | Optimization |
float | BackgroundColor [4] |
float | OutputOrigin [3] |
float | OutputSpacing [3] |
int | OutputExtent [6] |
int | OutputDimensionality |
int | TransformInputSampling |
int | AutoCropOutput |
vtkMatrix4x4 * | IndexMatrix |
vtkAbstractTransform * | OptimizedTransform |
1) Application of simple rotations, scales, and translations to an image. It is often a good idea to use vtkImageChangeInformation to center the image first, so that scales and rotations occur around the center rather than around the lower-left corner of the image.
2) Resampling of one data set to match the voxel sampling of a second data set via the SetInformationInput() method, e.g. for the purpose of comparing two images or combining two images. A transformation, either linear or nonlinear, can be applied at the same time via the SetResliceTransform method if the two images are not in the same coordinate space.
3) Extraction of slices from an image volume. The most convenient way to do this is to use SetResliceAxesDirectionCosines() to specify the orientation of the slice. The direction cosines give the x, y, and z axes for the output volume. The method SetOutputDimensionality(2) is used to specify that want to output a slice rather than a volume. The SetResliceAxesOrigin() command is used to provide an (x,y,z) point that the slice will pass through. You can use both the ResliceAxes and the ResliceTransform at the same time, in order to extract slices from a volume that you have applied a transformation to.
Definition at line 97 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. |
|
This method is used to set up the axes for the output voxels. The output Spacing, Origin, and Extent specify the locations of the voxels within the coordinate system defined by the axes. The ResliceAxes are used most often to permute the data, e.g. to extract ZY or XZ slices of a volume as 2D XY images. The first column of the matrix specifies the x-axis vector (the fourth element must be set to zero), the second column specifies the y-axis, and the third column the z-axis. The fourth column is the origin of the axes (the fourth element must be set to one). An alternative to SetResliceAxes() is to use SetResliceAxesDirectionCosines() to set the directions of the axes and SetResliceAxesOrigin() to set the origin of the axes. |
|
This method is used to set up the axes for the output voxels. The output Spacing, Origin, and Extent specify the locations of the voxels within the coordinate system defined by the axes. The ResliceAxes are used most often to permute the data, e.g. to extract ZY or XZ slices of a volume as 2D XY images. The first column of the matrix specifies the x-axis vector (the fourth element must be set to zero), the second column specifies the y-axis, and the third column the z-axis. The fourth column is the origin of the axes (the fourth element must be set to one). An alternative to SetResliceAxes() is to use SetResliceAxesDirectionCosines() to set the directions of the axes and SetResliceAxesOrigin() to set the origin of the axes. |
|
Specify the direction cosines for the ResliceAxes (i.e. the first three elements of each of the first three columns of the ResliceAxes matrix). This will modify the current ResliceAxes matrix, or create a new matrix if none exists. |
|
Specify the direction cosines for the ResliceAxes (i.e. the first three elements of each of the first three columns of the ResliceAxes matrix). This will modify the current ResliceAxes matrix, or create a new matrix if none exists. Definition at line 130 of file vtkImageReslice.h. |
|
Specify the direction cosines for the ResliceAxes (i.e. the first three elements of each of the first three columns of the ResliceAxes matrix). This will modify the current ResliceAxes matrix, or create a new matrix if none exists. Definition at line 136 of file vtkImageReslice.h. |
|
Specify the direction cosines for the ResliceAxes (i.e. the first three elements of each of the first three columns of the ResliceAxes matrix). This will modify the current ResliceAxes matrix, or create a new matrix if none exists. |
|
Specify the direction cosines for the ResliceAxes (i.e. the first three elements of each of the first three columns of the ResliceAxes matrix). This will modify the current ResliceAxes matrix, or create a new matrix if none exists. Definition at line 141 of file vtkImageReslice.h. |
|
Specify the direction cosines for the ResliceAxes (i.e. the first three elements of each of the first three columns of the ResliceAxes matrix). This will modify the current ResliceAxes matrix, or create a new matrix if none exists. Definition at line 143 of file vtkImageReslice.h. |
|
Specify the origin for the ResliceAxes (i.e. the first three elements of the final column of the ResliceAxes matrix). This will modify the current ResliceAxes matrix, or create new matrix if none exists. |
|
Specify the origin for the ResliceAxes (i.e. the first three elements of the final column of the ResliceAxes matrix). This will modify the current ResliceAxes matrix, or create new matrix if none exists. Definition at line 153 of file vtkImageReslice.h. |
|
Specify the origin for the ResliceAxes (i.e. the first three elements of the final column of the ResliceAxes matrix). This will modify the current ResliceAxes matrix, or create new matrix if none exists. |
|
Specify the origin for the ResliceAxes (i.e. the first three elements of the final column of the ResliceAxes matrix). This will modify the current ResliceAxes matrix, or create new matrix if none exists. Definition at line 156 of file vtkImageReslice.h. |
|
Set a transform to be applied to the resampling grid that has been defined via the ResliceAxes and the output Origin, Spacing and Extent. Note that applying a transform to the resampling grid (which lies in the output coordinate system) is equivalent to applying the inverse of that transform to the input volume. Nonlinear transforms such as vtkGridTransform and vtkThinPlateSplineTransform can be used here. |
|
Set a transform to be applied to the resampling grid that has been defined via the ResliceAxes and the output Origin, Spacing and Extent. Note that applying a transform to the resampling grid (which lies in the output coordinate system) is equivalent to applying the inverse of that transform to the input volume. Nonlinear transforms such as vtkGridTransform and vtkThinPlateSplineTransform can be used here. |
|
Set a vtkImageData from which the default Spacing, Origin, and WholeExtent of the output will be copied. The spacing, origin, and extent will be permuted according to the ResliceAxes. Any values set via SetOutputSpacing, SetOutputOrigin, and SetOutputExtent will override these values. By default, the Spacing, Origin, and WholeExtent of the Input are used. |
|
Set a vtkImageData from which the default Spacing, Origin, and WholeExtent of the output will be copied. The spacing, origin, and extent will be permuted according to the ResliceAxes. Any values set via SetOutputSpacing, SetOutputOrigin, and SetOutputExtent will override these values. By default, the Spacing, Origin, and WholeExtent of the Input are used. |
|
Specify whether to transform the spacing, origin and extent of the Input (or the InformationInput) according to the direction cosines and origin of the ResliceAxes before applying them as the default output spacing, origin and extent. Default: On. |
|
Specify whether to transform the spacing, origin and extent of the Input (or the InformationInput) according to the direction cosines and origin of the ResliceAxes before applying them as the default output spacing, origin and extent. Default: On. |
|
Specify whether to transform the spacing, origin and extent of the Input (or the InformationInput) according to the direction cosines and origin of the ResliceAxes before applying them as the default output spacing, origin and extent. Default: On. |
|
Specify whether to transform the spacing, origin and extent of the Input (or the InformationInput) according to the direction cosines and origin of the ResliceAxes before applying them as the default output spacing, origin and extent. Default: On. |
|
Turn this on if you want to guarantee that the extent of the output will be large enough to ensure that none of the data will be cropped. |
|
Turn this on if you want to guarantee that the extent of the output will be large enough to ensure that none of the data will be cropped. |
|
Turn this on if you want to guarantee that the extent of the output will be large enough to ensure that none of the data will be cropped. |
|
Turn this on if you want to guarantee that the extent of the output will be large enough to ensure that none of the data will be cropped. |
|
Turn on wrap-pad feature (default: off). |
|
Turn on wrap-pad feature (default: off). |
|
Turn on wrap-pad feature (default: off). |
|
Turn on wrap-pad feature (default: off). |
|
Turn on mirror-pad feature (default: off). This will override the wrap-pad. |
|
Turn on mirror-pad feature (default: off). This will override the wrap-pad. |
|
Turn on mirror-pad feature (default: off). This will override the wrap-pad. |
|
Turn on mirror-pad feature (default: off). This will override the wrap-pad. |
|
Set interpolation mode (default: nearest neighbor). |
|
Set interpolation mode (default: nearest neighbor). |
|
Set interpolation mode (default: nearest neighbor). Definition at line 221 of file vtkImageReslice.h. |
|
Set interpolation mode (default: nearest neighbor). Definition at line 223 of file vtkImageReslice.h. |
|
Set interpolation mode (default: nearest neighbor). Definition at line 225 of file vtkImageReslice.h. |
|
Set interpolation mode (default: nearest neighbor). Definition at line 366 of file vtkImageReslice.h. |
|
Turn on and off optimizations (default on, they should only be turned off for testing purposes). |
|
Turn on and off optimizations (default on, they should only be turned off for testing purposes). |
|
Turn on and off optimizations (default on, they should only be turned off for testing purposes). |
|
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 the background color (for multi-component images). |
|
Set the background color (for multi-component images). |
|
Set the background color (for multi-component images). |
|
Set the background color (for multi-component images). |
|
Set background grey level (for single-component images). Definition at line 246 of file vtkImageReslice.h. |
|
Set background grey level (for single-component images). Definition at line 247 of file vtkImageReslice.h. |
|
Set the voxel spacing for the output data. The default output spacing is the input spacing permuted through the ResliceAxes. |
|
Set the voxel spacing for the output data. The default output spacing is the input spacing permuted through the ResliceAxes. |
|
Set the voxel spacing for the output data. The default output spacing is the input spacing permuted through the ResliceAxes. |
|
Set the voxel spacing for the output data. The default output spacing is the input spacing permuted through the ResliceAxes. |
|
Set the voxel spacing for the output data. The default output spacing is the input spacing permuted through the ResliceAxes. |
|
Set the voxel spacing for the output data. The default output spacing is the input spacing permuted through the ResliceAxes. Definition at line 255 of file vtkImageReslice.h. |
|
Set the origin for the output data. The default output origin is the input origin permuted through the ResliceAxes. |
|
Set the origin for the output data. The default output origin is the input origin permuted through the ResliceAxes. |
|
Set the origin for the output data. The default output origin is the input origin permuted through the ResliceAxes. |
|
Set the origin for the output data. The default output origin is the input origin permuted through the ResliceAxes. |
|
Set the origin for the output data. The default output origin is the input origin permuted through the ResliceAxes. |
|
Set the origin for the output data. The default output origin is the input origin permuted through the ResliceAxes. Definition at line 264 of file vtkImageReslice.h. |
|
Set the extent for the output data. The default output extent is the input extent permuted through the ResliceAxes. |
|
Set the extent for the output data. The default output extent is the input extent permuted through the ResliceAxes. |
|
Set the extent for the output data. The default output extent is the input extent permuted through the ResliceAxes. |
|
Set the extent for the output data. The default output extent is the input extent permuted through the ResliceAxes. |
|
Set the extent for the output data. The default output extent is the input extent permuted through the ResliceAxes. |
|
Set the extent for the output data. The default output extent is the input extent permuted through the ResliceAxes. Definition at line 273 of file vtkImageReslice.h. |
|
Force the dimensionality of the output to either 1, 2, 3 or 0 (default: 3). If the dimensionality is 2D, then the Z extent of the output is forced to (0,0) and the Z origin of the output is forced to 0.0 (i.e. the output extent is confined to the xy plane). If the dimensionality is 1D, the output extent is confined to the x axis. For 0D, the output extent consists of a single voxel at (0,0,0). |
|
Force the dimensionality of the output to either 1, 2, 3 or 0 (default: 3). If the dimensionality is 2D, then the Z extent of the output is forced to (0,0) and the Z origin of the output is forced to 0.0 (i.e. the output extent is confined to the xy plane). If the dimensionality is 1D, the output extent is confined to the x axis. For 0D, the output extent consists of a single voxel at (0,0,0). |
|
When determining the modified time of the filter, this check the modified time of the transform and matrix. Reimplemented from vtkObject. |
|
Convenient methods for switching between nearest-neighbor and linear interpolation. InterpolateOn() is equivalent to SetInterpolationModeToLinear() and InterpolateOff() is equivalent to SetInterpolationModeToNearestNeighbor(). You should not use these methods if you use the SetInterpolationMode methods. Definition at line 300 of file vtkImageReslice.h. |
|
Convenient methods for switching between nearest-neighbor and linear interpolation. InterpolateOn() is equivalent to SetInterpolationModeToLinear() and InterpolateOff() is equivalent to SetInterpolationModeToNearestNeighbor(). You should not use these methods if you use the SetInterpolationMode methods. Definition at line 305 of file vtkImageReslice.h. |
|
Convenient methods for switching between nearest-neighbor and linear interpolation. InterpolateOn() is equivalent to SetInterpolationModeToLinear() and InterpolateOff() is equivalent to SetInterpolationModeToNearestNeighbor(). You should not use these methods if you use the SetInterpolationMode methods. Definition at line 307 of file vtkImageReslice.h. |
|
Convenient methods for switching between nearest-neighbor and linear interpolation. InterpolateOn() is equivalent to SetInterpolationModeToLinear() and InterpolateOff() is equivalent to SetInterpolationModeToNearestNeighbor(). You should not use these methods if you use the SetInterpolationMode methods. Definition at line 309 of file vtkImageReslice.h. |
|
Use a stencil to limit the calculations to a specific region of the output. Portions of the output that are 'outside' the stencil will be cleared to the background color. |
|
Use a stencil to limit the calculations to a specific region of the output. Portions of the output that are 'outside' the stencil will be cleared to the background color. |
|
|
|
Reimplemented from vtkImageToImageFilter. |
|
Reimplemented from vtkImageToImageFilter. Definition at line 347 of file vtkImageReslice.h. |
|
What is the input update extent that is required to produce the desired output? By default, the whole input is always required but this is overridden in many subclasses. Reimplemented from vtkImageToImageFilter. |
|
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 355 of file vtkImageReslice.h. |
|
|
|
|
|
Definition at line 325 of file vtkImageReslice.h. |
|
Definition at line 326 of file vtkImageReslice.h. |
|
Definition at line 327 of file vtkImageReslice.h. |
|
Definition at line 328 of file vtkImageReslice.h. |
|
Definition at line 329 of file vtkImageReslice.h. |
|
Definition at line 330 of file vtkImageReslice.h. |
|
Definition at line 331 of file vtkImageReslice.h. |
|
Definition at line 332 of file vtkImageReslice.h. |
|
Definition at line 333 of file vtkImageReslice.h. |
|
Definition at line 334 of file vtkImageReslice.h. |
|
Definition at line 335 of file vtkImageReslice.h. |
|
Definition at line 336 of file vtkImageReslice.h. |
|
Definition at line 337 of file vtkImageReslice.h. |
|
Definition at line 338 of file vtkImageReslice.h. |
|
Definition at line 339 of file vtkImageReslice.h. |
|
Definition at line 340 of file vtkImageReslice.h. |
|
Definition at line 342 of file vtkImageReslice.h. |
|
Definition at line 343 of file vtkImageReslice.h. |