Subject color matching method and mobile terminal
暂无分享,去创建一个
The invention discloses a subject color matching method and a mobile terminal. The subject color matching method comprises the steps that an image is obtained, color gamut analysis is conducted on the image and a color region, in a preset threshold, of RGB difference values of all pixel points is obtained; an RGB average value of the color region is worked out and color matching is conducted on a subject according to the RBG average value. Thus, users can conduct automatic color matching on the subject, and the individual requirements of the users are met. Particularly, the users can obtain an image of current costume through a camera and apply the color of the costume to the subject to enable a corresponding relationship between the color of the costume and the color of the subject to be established, therefore, the individuality of the users is highlighted and interactivity and interestingness are achieved. According to the subject color matching method and the mobile terminal, the color region, in the preset threshold, of the RGB difference values of all the pixel points in the image is obtained, the color of the color region is determined to be the main color of the image, therefore, determination of the main color of the image is simpler and faster, the calculation amount is small, the speed is high and resource consumption is low.