Reference

Table of Contents  ▸  List of Commands  ▸  Filtering  ▸  gradient◀  fft    |    gradient_norm  ▶

gradient

Built-in command

Arguments:

Description:

Compute the gradient components (first derivatives) of selected images.

(equivalent to shortcut command g).


scheme can be { -1=backward | 0=centered | 1=forward | 2=sobel | 3=rotation-invariant (default) | 4=deriche | 5=vanvliet }.
(no arg) compute all significant components.

Default values:

scheme=0.

This command has a tutorial page.

Example of use:

$ gmic image.jpg gradient

Command: image.jpg gradient
Command: image.jpg gradient