|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object vtk.vtkObjectBase vtk.vtkObject vtk.vtkProcessObject vtk.vtkSource vtk.vtkImageSource vtk.vtkImageToImageFilter vtk.vtkImageReslice
vtkImageReslice - Reslices a volume along a new set of axes.. vtkImageReslice is the swiss-army-knife of image geometry filters: It can permute, rotate, flip, scale, resample, deform, and pad image data in any combination with reasonably high efficiency. Simple operations such as permutation, resampling and padding are done with similar efficiently to the specialized vtkImagePermute, vtkImageResample, and vtkImagePad filters. There are a number of tasks that vtkImageReslice is well suited for:
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. JavaBean wrapper for vtkImageReslice object.
vtkAbstractTransform
,
Serialized FormField Summary | |
protected java.beans.PropertyChangeSupport |
changes
|
Fields inherited from class vtk.vtkObjectBase |
vtkId |
Constructor Summary | |
|
vtkImageReslice()
|
protected |
vtkImageReslice(int dmy)
|
Method Summary | |
void |
autoCropOutputOff()
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. |
void |
autoCropOutputOn()
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. |
int |
getAutoCropOutput()
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. |
double[] |
getBackgroundColor()
Set the background color (for multi-component images). |
double |
getBackgroundLevel()
Set background grey level (for single-component images). |
java.lang.String |
getClassName()
Return the class name as a string. |
vtkImageData |
getInformationInput()
Set a vtkImageData from which the default Spacing, Origin, and WholeExtent of the output will be copied. |
int |
getInterpolate()
Convenient methods for switching between nearest-neighbor and linear interpolation. |
int |
getInterpolationMode()
Set interpolation mode (default: nearest neighbor). |
java.lang.String |
getInterpolationModeAsString()
Set interpolation mode (default: nearest neighbor). |
int |
getMirror()
Turn on mirror-pad feature (default: off). |
int |
getMTime()
When determining the modified time of the filter, this check the modified time of the transform and matrix. |
int |
getOptimization()
Turn on and off optimizations (default on, they should only be turned off for testing purposes). |
int |
getOutputDimensionality()
Force the dimensionality of the output to either 1, 2, 3 or 0 (default: 3). |
int[] |
getOutputExtent()
Set the extent for the output data. |
double[] |
getOutputOrigin()
Set the origin for the output data. |
double[] |
getOutputSpacing()
Set the voxel spacing for the output data. |
vtkMatrix4x4 |
getResliceAxes()
This method is used to set up the axes for the output voxels. |
double[] |
getResliceAxesDirectionCosines()
Specify the direction cosines for the ResliceAxes (i.e. the first three elements of each of the first three columns of the ResliceAxes matrix). |
void |
getResliceAxesDirectionCosines(double[] id0)
Specify the direction cosines for the ResliceAxes (i.e. the first three elements of each of the first three columns of the ResliceAxes matrix). |
void |
getResliceAxesDirectionCosines(double[] id0,
double[] id1,
double[] id2)
Specify the direction cosines for the ResliceAxes (i.e. the first three elements of each of the first three columns of the ResliceAxes matrix). |
double[] |
getResliceAxesOrigin()
Specify the origin for the ResliceAxes (i.e. the first three elements of the final column of the ResliceAxes matrix). |
void |
getResliceAxesOrigin(double[] id0)
Specify the origin for the ResliceAxes (i.e. the first three elements of the final column of the ResliceAxes matrix). |
vtkAbstractTransform |
getResliceTransform()
Set a transform to be applied to the resampling grid that has been defined via the ResliceAxes and the output Origin, Spacing and Extent. |
vtkImageStencilData |
getStencil()
Use a stencil to limit the calculations to a specific region of the output. |
vtkImageReslice |
getThisImageReslice()
|
int |
getTransformInputSampling()
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. |
int |
getWrap()
Turn on wrap-pad feature (default: off). |
void |
interpolateOff()
Convenient methods for switching between nearest-neighbor and linear interpolation. |
void |
interpolateOn()
Convenient methods for switching between nearest-neighbor and linear interpolation. |
int |
isA(java.lang.String id0)
Return 1 if this class is the same type of (or a subclass of) the named class. |
void |
mirrorOff()
Turn on mirror-pad feature (default: off). |
void |
mirrorOn()
Turn on mirror-pad feature (default: off). |
void |
optimizationOff()
Turn on and off optimizations (default on, they should only be turned off for testing purposes). |
void |
optimizationOn()
Turn on and off optimizations (default on, they should only be turned off for testing purposes). |
void |
setAutoCropOutput(int id0)
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. |
void |
setBackgroundColor(double[] id0)
Set the background color (for multi-component images). |
void |
setBackgroundColor(double id0,
double id1,
double id2,
double id3)
Set the background color (for multi-component images). |
void |
setBackgroundLevel(double id0)
Set background grey level (for single-component images). |
void |
setInformationInput(vtkImageData id0)
Set a vtkImageData from which the default Spacing, Origin, and WholeExtent of the output will be copied. |
void |
setInterpolate(int id0)
Convenient methods for switching between nearest-neighbor and linear interpolation. |
void |
setInterpolationMode(int id0)
Set interpolation mode (default: nearest neighbor). |
void |
setInterpolationModeToCubic()
Set interpolation mode (default: nearest neighbor). |
void |
setInterpolationModeToLinear()
Set interpolation mode (default: nearest neighbor). |
void |
setInterpolationModeToNearestNeighbor()
Set interpolation mode (default: nearest neighbor). |
void |
setMirror(int id0)
Turn on mirror-pad feature (default: off). |
void |
setOptimization(int id0)
Turn on and off optimizations (default on, they should only be turned off for testing purposes). |
void |
setOutputDimensionality(int id0)
Force the dimensionality of the output to either 1, 2, 3 or 0 (default: 3). |
void |
setOutputExtent(int[] id0)
Set the extent for the output data. |
void |
setOutputExtent(int id0,
int id1,
int id2,
int id3,
int id4,
int id5)
Set the extent for the output data. |
void |
setOutputExtentToDefault()
Set the extent for the output data. |
void |
setOutputOrigin(double[] id0)
Set the origin for the output data. |
void |
setOutputOrigin(double id0,
double id1,
double id2)
Set the origin for the output data. |
void |
setOutputOriginToDefault()
Set the origin for the output data. |
void |
setOutputSpacing(double[] id0)
Set the voxel spacing for the output data. |
void |
setOutputSpacing(double id0,
double id1,
double id2)
Set the voxel spacing for the output data. |
void |
setOutputSpacingToDefault()
Set the voxel spacing for the output data. |
void |
setResliceAxes(vtkMatrix4x4 id0)
This method is used to set up the axes for the output voxels. |
void |
setResliceAxesDirectionCosines(double[] id0)
Specify the direction cosines for the ResliceAxes (i.e. the first three elements of each of the first three columns of the ResliceAxes matrix). |
void |
setResliceAxesDirectionCosines(double[] id0,
double[] id1,
double[] id2)
Specify the direction cosines for the ResliceAxes (i.e. the first three elements of each of the first three columns of the ResliceAxes matrix). |
void |
setResliceAxesDirectionCosines(double id0,
double id1,
double id2,
double id3,
double id4,
double id5,
double id6,
double id7,
double id8)
Specify the direction cosines for the ResliceAxes (i.e. the first three elements of each of the first three columns of the ResliceAxes matrix). |
void |
setResliceAxesOrigin(double[] id0)
Specify the origin for the ResliceAxes (i.e. the first three elements of the final column of the ResliceAxes matrix). |
void |
setResliceAxesOrigin(double id0,
double id1,
double id2)
Specify the origin for the ResliceAxes (i.e. the first three elements of the final column of the ResliceAxes matrix). |
void |
setResliceTransform(vtkAbstractTransform id0)
Set a transform to be applied to the resampling grid that has been defined via the ResliceAxes and the output Origin, Spacing and Extent. |
void |
setStencil(vtkImageStencilData id0)
Use a stencil to limit the calculations to a specific region of the output. |
void |
setTransformInputSampling(int id0)
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. |
void |
setWrap(int id0)
Turn on wrap-pad feature (default: off). |
void |
transformInputSamplingOff()
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. |
void |
transformInputSamplingOn()
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. |
protected void |
VTKCastInit()
|
void |
VTKInit()
|
void |
wrapOff()
Turn on wrap-pad feature (default: off). |
void |
wrapOn()
Turn on wrap-pad feature (default: off). |
Methods inherited from class vtk.vtkImageSource |
getOutput, getOutput, getThisImageSource, setOutput |
Methods inherited from class vtk.vtkObject |
AddObserver, breakOnError, debugOff, debugOn, getDebug, getGlobalWarningDisplay, getThisObject, globalWarningDisplayOff, globalWarningDisplayOn, hasObserver, hasObserver, invokeEvent, invokeEvent, modified, Print, PrintRevisions, register, removeObserver, removeObservers, removeObservers, setDebug, setGlobalWarningDisplay |
Methods inherited from class vtk.vtkObjectBase |
addPropertyChangeListener, finalize, getReferenceCount, getThisObjectBase, isTypeOf, removePropertyChangeListener, setReferenceCount, VTKDelete |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.beans.PropertyChangeSupport changes
Constructor Detail |
public vtkImageReslice()
protected vtkImageReslice(int dmy)
Method Detail |
public vtkImageReslice getThisImageReslice()
public java.lang.String getClassName()
vtkObjectBase
getClassName
in class vtkImageToImageFilter
public int isA(java.lang.String id0)
vtkObjectBase
isA
in class vtkImageToImageFilter
public void setResliceAxes(vtkMatrix4x4 id0)
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.
public vtkMatrix4x4 getResliceAxes()
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.
public void setResliceAxesDirectionCosines(double id0, double id1, double id2, double id3, double id4, double id5, double id6, double id7, double id8)
public void setResliceAxesDirectionCosines(double[] id0, double[] id1, double[] id2)
public void setResliceAxesDirectionCosines(double[] id0)
public void getResliceAxesDirectionCosines(double[] id0, double[] id1, double[] id2)
public void getResliceAxesDirectionCosines(double[] id0)
public double[] getResliceAxesDirectionCosines()
public void setResliceAxesOrigin(double id0, double id1, double id2)
public void setResliceAxesOrigin(double[] id0)
public void getResliceAxesOrigin(double[] id0)
public double[] getResliceAxesOrigin()
public void setResliceTransform(vtkAbstractTransform id0)
public vtkAbstractTransform getResliceTransform()
public void setInformationInput(vtkImageData id0)
public vtkImageData getInformationInput()
public void setTransformInputSampling(int id0)
public void transformInputSamplingOn()
public void transformInputSamplingOff()
public int getTransformInputSampling()
public void setAutoCropOutput(int id0)
public void autoCropOutputOn()
public void autoCropOutputOff()
public int getAutoCropOutput()
public void setWrap(int id0)
public int getWrap()
public void wrapOn()
public void wrapOff()
public void setMirror(int id0)
public int getMirror()
public void mirrorOn()
public void mirrorOff()
public void setInterpolationMode(int id0)
public int getInterpolationMode()
public void setInterpolationModeToNearestNeighbor()
public void setInterpolationModeToLinear()
public void setInterpolationModeToCubic()
public java.lang.String getInterpolationModeAsString()
public void setOptimization(int id0)
public int getOptimization()
public void optimizationOn()
public void optimizationOff()
public void setBackgroundColor(double id0, double id1, double id2, double id3)
public void setBackgroundColor(double[] id0)
public double[] getBackgroundColor()
public void setBackgroundLevel(double id0)
public double getBackgroundLevel()
public void setOutputSpacing(double id0, double id1, double id2)
public void setOutputSpacing(double[] id0)
public double[] getOutputSpacing()
public void setOutputSpacingToDefault()
public void setOutputOrigin(double id0, double id1, double id2)
public void setOutputOrigin(double[] id0)
public double[] getOutputOrigin()
public void setOutputOriginToDefault()
public void setOutputExtent(int id0, int id1, int id2, int id3, int id4, int id5)
public void setOutputExtent(int[] id0)
public int[] getOutputExtent()
public void setOutputExtentToDefault()
public void setOutputDimensionality(int id0)
public int getOutputDimensionality()
public int getMTime()
getMTime
in class vtkObject
public void setInterpolate(int id0)
public void interpolateOn()
public void interpolateOff()
public int getInterpolate()
public void setStencil(vtkImageStencilData id0)
public vtkImageStencilData getStencil()
public void VTKInit()
VTKInit
in class vtkObject
protected void VTKCastInit()
VTKCastInit
in class vtkImageToImageFilter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |