vtk
Class vtkFiniteDifferenceGradientEstimator
java.lang.Object
vtk.vtkObjectBase
vtk.vtkObject
vtk.vtkEncodedGradientEstimator
vtk.vtkFiniteDifferenceGradientEstimator
- All Implemented Interfaces:
- java.io.Serializable
- public class vtkFiniteDifferenceGradientEstimator
- extends vtkEncodedGradientEstimator
- implements java.io.Serializable
vtkFiniteDifferenceGradientEstimator - Use finite differences to estimate gradient..
vtkFiniteDifferenceGradientEstimator is a concrete subclass of
vtkEncodedGradientEstimator that uses a central differences technique to
estimate the gradient. The gradient at some sample location (x,y,z)
would be estimated by:
nx = (f(x-dx,y,z) - f(x+dx,y,z)) / 2*dx;
ny = (f(x,y-dy,z) - f(x,y+dy,z)) / 2*dy;
nz = (f(x,y,z-dz) - f(x,y,z+dz)) / 2*dz;
This value is normalized to determine a unit direction vector and a
magnitude. The normal is computed in voxel space, and
dx = dy = dz = SampleSpacingInVoxels. A scaling factor is applied to
convert this normal from voxel space to world coordinates.
JavaBean wrapper for vtkFiniteDifferenceGradientEstimator object.
- Author:
- vtk2jbean Automatic JavaBean wrapper for VTK.
- See Also:
- Serialized Form
Field Summary |
protected java.beans.PropertyChangeSupport |
changes
|
Methods inherited from class vtk.vtkEncodedGradientEstimator |
boundsClipOff, boundsClipOn, computeGradientMagnitudesOff, computeGradientMagnitudesOn, cylinderClipOff, cylinderClipOn, getBounds, getBoundsClip, getBoundsClipMaxValue, getBoundsClipMinValue, getComputeGradientMagnitudes, getCylinderClip, getDirectionEncoder, getEncodedNormalIndex, getEncodedNormalIndex, getGradientMagnitudeBias, getGradientMagnitudeScale, getInput, getLastUpdateTimeInCPUSeconds, getLastUpdateTimeInSeconds, getNumberOfThreads, getNumberOfThreadsMaxValue, getNumberOfThreadsMinValue, getThisEncodedGradientEstimator, getUseCylinderClip, getZeroNormalThreshold, getZeroPad, getZeroPadMaxValue, getZeroPadMinValue, setBounds, setBounds, setBoundsClip, setComputeGradientMagnitudes, setCylinderClip, setDirectionEncoder, setGradientMagnitudeBias, setGradientMagnitudeScale, setInput, setNumberOfThreads, setZeroNormalThreshold, setZeroPad, update, zeroPadOff, zeroPadOn |
Methods inherited from class vtk.vtkObject |
AddObserver, breakOnError, debugOff, debugOn, getDebug, getGlobalWarningDisplay, getMTime, getThisObject, globalWarningDisplayOff, globalWarningDisplayOn, hasObserver, hasObserver, invokeEvent, invokeEvent, modified, Print, PrintRevisions, register, removeObserver, removeObservers, removeObservers, setDebug, setGlobalWarningDisplay, unRegister |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
changes
protected java.beans.PropertyChangeSupport changes
vtkFiniteDifferenceGradientEstimator
public vtkFiniteDifferenceGradientEstimator()
vtkFiniteDifferenceGradientEstimator
protected vtkFiniteDifferenceGradientEstimator(int dmy)
getThisFiniteDifferenceGradientEstimator
public vtkFiniteDifferenceGradientEstimator getThisFiniteDifferenceGradientEstimator()
getClassName
public java.lang.String getClassName()
- Description copied from class:
vtkObjectBase
- Return the class name as a string. This method is defined
in all subclasses of vtkObjectBase with the vtkTypeRevisionMacro found
in vtkSetGet.h.
- Overrides:
getClassName
in class vtkEncodedGradientEstimator
isA
public int isA(java.lang.String id0)
- Description copied from class:
vtkObjectBase
- 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 vtkTypeRevisionMacro found in vtkSetGet.h.
- Overrides:
isA
in class vtkEncodedGradientEstimator
setSampleSpacingInVoxels
public void setSampleSpacingInVoxels(int id0)
- Set/Get the spacing between samples for the finite differences
method used to compute the normal. This spacing is in voxel units.
getSampleSpacingInVoxels
public int getSampleSpacingInVoxels()
- Set/Get the spacing between samples for the finite differences
method used to compute the normal. This spacing is in voxel units.
VTKInit
public void VTKInit()
- Overrides:
VTKInit
in class vtkObject
VTKCastInit
protected void VTKCastInit()
- Overrides:
VTKCastInit
in class vtkEncodedGradientEstimator
Copyright © 2004 Sydney ViSLAB. All Rights Reserved.