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.1.5

Reference

Table of Contents  ▸  List of Commands  ▸  Mathematical Operators  ▸  sign◀  ror    |    sin  ▶

sign

Built-in command

No arguments

Description:

Compute the pointwise sign of selected images.

Examples of use:

• Example #1

$ gmic image.jpg +sub {ia} sign[-1]

Command: image.jpg +sub {ia} sign[-1]
Command: image.jpg +sub {ia} sign[-1]

• Example #2

$ gmic 300,1,1,1,'cos(20*x/w+u)' +sign display_graph 400,300

Command: 300,1,1,1,'cos(20*x/w+u)' +sign display_graph 400,300
Command: 300,1,1,1,'cos(20*x/w+u)' +sign display_graph 400,300
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.