Hue Range
This rule checks that the hue values of pixels in an image fall within the specified range.
Parameter table
param | unit | required | description |
---|---|---|---|
minHue | ° | no | Minimum hue value in degrees (minHue ). |
maxHue | ° | no | Maximum 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:
- Redistribution of Hue:
- The first proposal redistributes hues to fit within the specified hue range.
- This aims to maintain the original color diversity.
- 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
value | valid | maxHue | minHue | description |
---|---|---|---|---|
✅ | 30 | -30 | The image should be made up of shades of red only. | |
✅ | 180 | 90 | The image should be made up of shades of green only. |