vtk
Class vtkFiniteDifferenceGradientEstimator

java.lang.Object
  extended byvtk.vtkObjectBase
      extended byvtk.vtkObject
          extended byvtk.vtkEncodedGradientEstimator
              extended byvtk.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
           
 
Fields inherited from class vtk.vtkObjectBase
vtkId
 
Constructor Summary
  vtkFiniteDifferenceGradientEstimator()
           
protected vtkFiniteDifferenceGradientEstimator(int dmy)
           
 
Method Summary
 java.lang.String getClassName()
          Return the class name as a string.
 int getSampleSpacingInVoxels()
          Set/Get the spacing between samples for the finite differences method used to compute the normal.
 vtkFiniteDifferenceGradientEstimator getThisFiniteDifferenceGradientEstimator()
           
 int isA(java.lang.String id0)
          Return 1 if this class is the same type of (or a subclass of) the named class.
 void setSampleSpacingInVoxels(int id0)
          Set/Get the spacing between samples for the finite differences method used to compute the normal.
protected  void VTKCastInit()
           
 void VTKInit()
           
 
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 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

changes

protected java.beans.PropertyChangeSupport changes
Constructor Detail

vtkFiniteDifferenceGradientEstimator

public vtkFiniteDifferenceGradientEstimator()

vtkFiniteDifferenceGradientEstimator

protected vtkFiniteDifferenceGradientEstimator(int dmy)
Method Detail

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.