Home // International Journal On Advances in Software, volume 17, numbers 1 and 2, 2024 // View article


Reliable Color Recognition in Images by Using a Modified HSV Algorithm

Authors:
Samuel Kosolapov

Keywords: -Image Processing; HSV; reliable color recognition; reliable color manipulations;.

Abstract:
There are several situations in which the HSV (Hue, Saturation, Value) algorithm is a natural choice for executing color recognition in a specific image. Unfortunately, whereas Value and Saturation can be calculated in any situation, Hue cannot be calculated when the specific pixel is gray. Practically, for dark regions, nearly gray regions, and for overbleached areas, the calculation of the Hue must be considered as non-reliable. Inherent to digital camera noise, makes the calculations of Hue in the above situations problematic. In an attempt to provide more control during color manipulations, an extended structure “sHSVF” was defined, in which F is a "Validity Flag". Additionally, the structure "sValidityParameters" was defined. To make the code more clear, names of the fields in this structure were changed. The specific pixel now can be flagged as "IS VALID", “IS GRAY”, "HAS DARK COLOR COMPONENT", “HAS OVERBLEACHED COLOR COMPONENT", "IS NEARLY GRAY". This flag may be instrumental for reliable color recognition and for reliable modification of the color of the pixels in accordance with the selected rules. By selecting values of the “sValidityParameters”, the algorithm user can specify situations when the color of the specific pixel is set to the pre-defined value, marking problematic situations. The examples provided demonstrate that this approach can be used for reliable color recognition and advanced color manipulations for synthetic and real-life images

Pages: 33 to 43

Copyright: Copyright (c) to authors, 2024. Used with permission.

Publication date: June 30, 2024

Published in: journal

ISSN: 1942-2628