# Huemap

Sets the chromacity of a pixel in the output image according to the intensity the corresponding pixel in the input image. The smallest possible intensity is mapped to lowIntensityHue and the largest possible intensity to highIntensityHue. Chromacity values for other intensities are determined with linear interpolation. The chromacity values are given in degrees which describe rotation on circular color plane.

## Inputs

image
Input image.
lowIntensityHue
Chromaticity value to which lowest intensity pixels are mapped. The lowest intensity is determined by channel_min. It is typically zero. Some examples of the mapping between degrees of rotation and colors are:
Rotation Color
0 deg Red
60 deg Yellow
120 deg Green
180 deg Cyan
240 deg Blue
300 deg Magenta
360 deg Red
highIntensityHue
Chromaticity value to which highest intensity pixels are mapped. The highest intensity is determined by channel_max. It is typically 255.
hueDirection
Hue circle traversal direction.

## Outputs

image
Output color image.

Direction which the hue circle is traversed.

Enumerator
Positive

The hue circle is traversed in the positive direction. If highIntensityHue is smaller than lowIntensityHue, hue wraps at 360.

Negative

The hue circle is traversed in the negative direction. If highIntensityHue is greater than lowIntensityHue, hue wraps at zero.