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