Patent ID: 8577133

Claim:
A method for determining image hue, comprising: obtaining color information of a part or all of pixels of an image, wherein the color information comprises hue values, brightness values and saturation values; selecting a pixel from the part or all of pixels according to the obtained brightness values and saturation values of the part or all of the pixels; obtaining a weight of the selected pixel; comparing the obtained hue value of the selected pixel with hue values of preset multiple candidate colors, wherein the hue values of the preset multiple candidate colors are evenly covered on a hue circle and each of the preset multiple candidate colors has an initial weight; selecting a first candidate color from the preset multiple candidate colors, wherein the hue value of the first candidate color is closest to the obtained hue value of the selected pixel; obtaining an updated weight of the first candidate color by accumulating the weight of the selected pixel to the initial weight of the first candidate color; selecting, from the preset multiple candidate colors, a second candidate color having a highest weight according to the updated weight of the first candidate color and the initial weights of the preset multiple candidate colors except the first candidate color; and using a hue value of the second candidate color as the image hue.