Reference

Table of Contents  ▸  List of Commands  ▸  Mathematical Operators  ▸  atan2◀  atan    |    atanh  ▶

atan2

Built-in command

Arguments:

Description:

Compute the pointwise oriented arctangent of selected images.

Each selected image is regarded as the y-argument of the arctangent function, while the
specified image gives the corresponding x-argument.

This command has a tutorial page.

Example of use:

$ gmic (-1,1) (-1;1) resize 400,400,1,1,3 atan2[1] [0] keep[1] mod {pi/8}
Command: (-1,1) (-1;1) resize 400,400,1,1,3 atan2[1] [0] keep[1] mod {pi/8}