Image Hue Determination Using Discrete Candidate Color Segmentation
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Current methods for determining image hue, such as weighted averaging, often result in inaccurate calculations, leading to distorted hue values, especially for images with mixed colors like half pure red and half pure green, which are incorrectly calculated as pure yellow.
Innovation Solution
A method and wireless handheld device that obtain color information including hue, brightness, and saturation values, compare the hue values of pixels to preset candidate colors evenly distributed on a hue circle, and accumulate weight values to determine the image hue based on the closest candidate color with the highest weight value.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Ease of operation
If the method of weighted averaging is used to calculate image hue by adding RGB values or hue values of all pixels and calculating an average value, then the calculation process is simple, but the calculated image hue is inaccurate and distorted
Solution Approach 1:
The patent segments the continuous hue spectrum into discrete candidate colors (e.g., red, green, blue, yellow, cyan, magenta) with predetermined hue values. Instead of calculating a continuous average hue that may fall between color boundaries and cause distortion, the method divides pixels into groups based on their closest matching candidate color, then determines the image hue as one of these discrete candidate colors. This segmentation resolves the contradiction by sacrificing continuous precision for discrete accuracy that aligns with human color perception.
Solution Approach 2:
The patent inverts the traditional approach by not calculating an average hue value directly from all pixels. Instead, it assigns each pixel to a candidate color group and counts the weighted occurrences. The image hue is determined by the candidate color with the highest weighted count, rather than by averaging all hue values. This inversion of the calculation logic eliminates the distortion problem inherent in direct averaging while maintaining computational efficiency.
2Productivity
If the method of weighted averaging calculates image hue by averaging hue values of all pixels, then the calculation is rapid, but the result is distorted and does not accurately reflect the dominant color
Solution Approach 1:
The patent segments the hue determination process into discrete candidate color categories. Each pixel is assigned to one of several candidate colors based on its hue value, and the image hue is determined by counting weighted occurrences in each category. This segmentation enables rapid determination by avoiding complex continuous calculations while accurately identifying the dominant color category, thus resolving the contradiction between speed and accuracy.
Solution Approach 2:
The patent introduces candidate colors as intermediary categories between individual pixel hues and the final image hue determination. Instead of directly averaging all pixel hues (which causes distortion), the method uses candidate colors as mediators to group and aggregate pixel information. This intermediary approach maintains calculation speed while eliminating distortion by leveraging the discrete nature of human color perception.
Data Source
AI summary
The present invention provides a device and a machine readable storage medium for determining image hue, which relate to the field of image processing. The device is configured to perform: obtaining color information of a part or all of pixels of an image including hue values, brightness values and saturation values; determining a pixel whose hue value needs to be compared according to the obtained color information, and comparing the pixel, whose hue value needs to be compared, with hue values of preset multiple candidate colors, determining a closest candidate color, and accumulating a weight value of the pixel whose hue value needs to be compared to a weight value of the closest candidate color; and using hue of a candidate color with the highest weight value as hue of the image. The machine readable storage medium can cause a processor to perform the steps above.


