Patent ID: 8565523

Claim:
A method comprising: designating, by a processing device, a reference color encoded in a first color space; determining, by the processing device, a region of interest in a digital image comprised of a plurality of pixels, the determined region of interest comprising a first subset of the plurality of pixels; converting, by the processing device, the digital image and the reference color into a modified color space by applying a predetermined gamma value; transforming, by the processing device, the reference color and the digital image, including the determined region of interest, into an opponent color space comprising separate luminance and chromatic channels; determining, by the processing device, in the opponent color space, an average color of at least a subset of colors appearing within the transformed region of interest's subset of pixels; determining, by the processing device, a difference of at least one channel in the opponent color space between the determined average color and the reference color; and performing, by the processing device, an image processing operation on any of the plurality of pixels within the digital image based on the determined difference.