: colorangle (rgb1, rgb2)

Compute angle between RGB colors in degrees.

Colors are represented as 3 element row vectors, for their RGB values. The angle between rgb1 and rgb2 is defined as:

                   dot (rgb1, rgb2)
cos (angle) = ---------------------------
               norm (rgb1) * norm (rgb2)

This is a binary operator so standard automatic broadcasting rules apply.

Package: image