vtkImageGradient

Section: Visualization Toolkit Imaging Classes

Usage

vtkImageGradient computes the gradient vector of an image. The vector results are stored as scalar components. The Dimensionality determines whether to perform a 2d or 3d gradient. The default is two dimensional XY gradient. OutputScalarType is always double. Gradient is computed using central differences.

To create an instance of class vtkImageGradient, simply invoke its constructor as follows

  obj = vtkImageGradient

Methods

The class vtkImageGradient has several methods that can be used. They are listed below. Note that the documentation is translated automatically from the VTK sources, and may not be completely intelligible. When in doubt, consult the VTK website. In the methods listed below, obj is an instance of the vtkImageGradient class.