Patent ID: 7269293

Claim:
A method for enhancing video image data, the method comprising the following steps: (a) inputting image data having a plurality of pixels; (b) providing a first gray level range and a second gray level range; according to the plurality of pixels in the image data being within the first gray level range, generating a first mean gray level, a first minimum gray level, a first maximum gray level; and according to the plurality of pixels in the image data being within the second gray level range, generating a second mean gray level, a second minimum gray level, and a second maximum gray level; wherein the boundary between the first gray level range and the second gray level range is a first threshold; (c) according to the first threshold, generating a second threshold; according to the second threshold, the first mean gray level, the first minimum gray level, and the first maximum gray level, generating a third mean gray level; and according to the second threshold, the second mean gray level, the second minimum gray level, and the second maximum gray level, generating a fourth mean gray level; (d) according to the third mean gray level, the first mean gray level, and the first minimum gray level, generating a first gain value; and according to the fourth mean gray level, the second mean gray level, the second minimum gray level, generating a second gain value; and (e) according to the first mean gray level, the first gain value, the third mean gray level, the second mean gray level, the second gain value, and the fourth mean gray level, generating adjusted image data gray levels for the first gray level range and the second gray level range.