G'MIC - GREYC's Magic for Image Computing: A Full-Featured Open-Source Framework for Image Processing
GREYC CNRS ENSICAEN UNICAEN

A Full-Featured Open-Source Framework for Image Processing



Latest stable version: 3.5.3        Current pre-release: 3.5.4 (2025/04/08)

Reference

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

gradient

Arguments:

Description:

Compute the gradient components (first derivatives) of selected images, along specified axes.

(equivalent to shortcut command g).


scheme can be { -1:Backward | 0:Centered | 1:Forward | 2:Sobel | 3:Rotation-invariant (default) | 4:Deriche | 5:Vanvliet }.
boundary_conditions can be { 0:Dirichlet | 1:Neumann | 2:Periodic | 3:Mirror }.
(no arg) compute all significant components.

Default values:

scheme=0 and boundary_conditions=1.

This command has a tutorial page.

Example of use:

image.jpg gradient

Command: image.jpg gradient
Command: image.jpg gradient
G'MIC - GREYC's Magic for Image Computing: A Full-Featured Open-Source Framework for Image Processing

G'MIC is an open-source software distributed under the CeCILL free software licenses (LGPL-like and/or
GPL-compatible). Copyrights (C) Since July 2008, David Tschumperlé - GREYC UMR CNRS 6072, Image Team.