Patent attributes
An image processing method includes: (a) receiving a to-be-processed image; (b) obtaining a target brightness of the to-be-processed image; (c) creating a histogram curve of the to-be-processed image; (d) clipping the histogram curve according to a clipping value; (e) obtaining a mapping function of the clipped histogram curve; (f) obtaining a mapped image mapped according to the mapping function; (g) obtaining an average brightness of the mapped image; (h) obtaining a difference between the target brightness and the average brightness; and (i) if the difference is greater than a threshold, adjusting the clipping value and repeating steps (d) to (i) until the difference is less than the threshold. Thus, if the to-be-processed image does not reach the target brightness, the image processing device automatically repeats steps (c) to (i) until the to-be-processed image reaches the target brightness.