Patent ID: 9613399
Date: 2017-04-04
CPC Classifications: G06T,H04N

Claim:
1. A method for enhancing colors of an image, comprising the steps of: extracting a red component, a green component, and a blue component in an RGB color space from each pixel in the image, successively; converting the red component, the green component, and the blue component into a hue component, a saturation component, and a value component in an HSV color space of the pixel; judging whether the saturation component is greater than 0 and smaller than 1; stretching the saturation component to obtain a stretched saturation component, if the saturation component is greater than 0 and smaller than 1; and converting the hue component, the stretched saturation component, and the value component into an enhanced red component, an enhanced green component, and an enhanced blue component in the RGB color space, wherein stretching the saturation component comprises the steps of: judging whether the saturation component is greater than or equal to a set saturation threshold value; and stretching the saturation component in such a manner that a greater saturation component is stretched with a smaller stretching amplitude, if the saturation component is greater than or equal to the set saturation threshold value; or stretching the saturation component in such a manner that a greater saturation component is stretched with a smaller stretching amplitude or a greater stretching amplitude, if the saturation component is smaller than the set saturation threshold value.