Gradient (Gradient)
This filter computes gradient vectors for an image/volume.
The Gradient filter computes the gradient vector at each point in an image or volume. This filter uses central differences to compute the gradients. The Gradient filter operates on uniform rectilinear (image) data and produces image data output.

PropertyDescriptionDefault Value(s)Restrictions
Dimensionality
(Dimensionality)
This property indicates whether to compute the gradient in two dimensions or in three. If the gradient is being computed in two dimensions, the X and Y dimensions are used. 3

The value must be one of the following: Two (2), Three (3).

 
Input
(Input)
This property specifies the input to the Gradient filter.  

The selected object must be the result of the following: sources (includes readers), filters.

The dataset must contain a point array with 1 components.

The selected dataset must be one of the following types (or a subclass of one of them): vtkImageData.

 
Select Input Scalars
(SelectInputScalars)
This property lists the name of the array from which to compute the gradient.  

An array of scalars is required.