Skip to main content

Hue Range

This rule checks that the hue values of pixels in an image fall within the specified range.

Parameter table

paramunitrequireddescription
minHue°noMinimum hue value in degrees (minHue).
maxHue°noMaximum hue value in degrees (maxHue).

Detailed description

  • Ensures that all colors in the image fall within the specified hue range ([minHue, maxHue]) in degrees.
  • Black, white, and gray colors are exempt from this hue check.

Correction

The correction process proposes 2 alternatives:

  1. Redistribution of Hue:
    • The first proposal redistributes hues to fit within the specified hue range.
    • This aims to maintain the original color diversity.
  2. Gray Replacement:
    • The second proposal replaces colors outside the specified hue range with grayscale tones.
    • This ensures compliance with the specified hue constraints, with a focus on areas that do not comply with the specified hue constraints.

How to setup

This rule evaluates whether an image's hue values conform to specified constraints. Key parameters include:

  • minHue: Minimum hue value in degrees.
  • maxHue: Maximum hue value in degrees.

At least one parameter is required.

Creator tips

  • Analyze the image's color distribution to determine an appropriate hue range.
  • Use color picker tools to identify specific hues in an image.

Examples

valuevalidmaxHueminHuedescription
red30-30The image should be made up of shades of red only.
green18090The image should be made up of shades of green only.