# US 11,120,532 B2 · Methods for enhancing image contrast and related image processing systems thereof

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 11,120,532 B2
- Document ID: US11120532B2
- Status: Granted
- Kind: B2
- Application number: 16/789,517
- Filed: 2020-02-13
- Published: 2020-06-11
- Granted: 2021-09-14
- Earliest claimed: 2017-08-04
- Assignees: Shanghai Zhaoxin Semiconductor Co., Ltd.
- Applicants: Shanghai Zhaoxin Semiconductor Co., Ltd.
- Inventors: Fuwen Li; Yichen Li
- Web page: https://patentgrep.com/patent/US11120532B2

## CPC

- G06T 5/92: based on global image properties
- G06T 5/40: using histogram techniques
- G06T 2207/20008: Globally adaptive
- G06T 2207/20072: Graph-based image processing
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

An image processing method and corresponding system operate by obtaining a first image and generating a first histogram information based on the first image. The method then obtains a cumulative-distribution-function (CDF) curve according to the first histogram information and generates an adaptive curve according to a high-contrast curve and a low-contrast curve. Finally, the method uses the adaptive curve to adjust the CDF curve to generate a mapping curve, and adjusts the first image by using the mapping curve to generate a second image with contrast enhancement effect.

## Claims

### Claim 1

A method for enhancing image contrast applied to an image processing system, comprising:
obtaining a first image;
generating a first histogram information based on the first image;
obtaining a cumulative-distribution-function (CDF) curve according to the first histogram information;
generating an adaptive curve according to a high-contrast curve and a low-contrast curve;
using the adaptive curve to adjust the CDF curve to generate a mapping curve; and
adjusting the first image by using the mapping curve to generate a second image with contrast enhancement effect.

### Claim 2 (depends on 1)

The method for enhancing image contrast of claim 1, wherein the high-contrast curve is used to enhance the contrast of the first image, and the low-contrast curve is used to enhance details in the dark area of the first image.

### Claim 3 (depends on 1)

The method for enhancing image contrast of claim 1, wherein the adaptive curve is determined by performing a weighted calculation based on the high-contrast curve with a third weight and the low-contrast curve with a fourth weight, wherein the adaptive curve falls between the high-contrast curve and the low-contrast curve.

### Claim 4 (depends on 1)

The method for enhancing image contrast of claim 1, wherein a negative correlation exists between a third weight corresponding to the high-contrast curve and a median bin value of luminance in the first histogram information, and a positive correlation exists between a fourth weight corresponding to the low-contrast curve and the median bin value of luminance.

### Claim 5 (depends on 1)

The method for enhancing image contrast of claim 1, wherein the mapping curve is obtained according to the following equation:
mapLUT[i]=yLUT[j]+(cdf[i]−xLUT[j])*(yLUT[j+1]−yLUT[j])/(xLUT[j+1]−xLUT[j]),
where i and j are non-negative numbers, mapLUT[i] is the value of the mapping point corresponding to the i-th interpolation point cdf[i] of the CDF curve,
xLUT[j] and yLUT[j] are the (x, y) coordinates of the jth item of the adaptive curve, respectively, and
xLUT[j+1] and yLUT[j+1] are the (x, y) coordinates of the (j+1)-th item of the adaptive curve yLUT, respectively.

### Claim 6 (depends on 1)

The method for enhancing image contrast of claim 1, further comprising:
normalizing the CDF curve to generate a normalized CDF curve; and
adjusting the normalized CDF curve based on the adaptive curve to generate the mapping curve.

### Claim 7 (depends on 6)

The method for enhancing image contrast of claim 6, wherein the mapping curve is obtained according to the following equation:
mapLUT[i]=yLUT[j]+(cdfNorm[i]−xLUT[j])*(yLUT[j+1]−yLUT[j])/(xLUT[j+1]−xLUT[j]),
where i and j are positive integers, mapLUT[i] is the value of the mapping point corresponding to the i-th interpolation point cdfNorm[i] of the normalized CDF curve,
xLUT[j] and yLUT[j] are the (x, y) coordinates of the jth item of the adaptive curve, respectively, and
xLUT[j+1] and yLUT[j+1] are the (x, y) coordinates of the (j+1)-th item of the adaptive curve yLUT, respectively.

### Claim 8 (depends on 1)

The method for enhancing image contrast of claim 1, further comprising:
obtaining a first parameter and a second parameter of the first image based on the first histogram information; and
obtaining the CDF curve based on the first parameter and the second parameter;
wherein the first parameter is related to the size/number of homogeneous regions of the first image, the second parameter is related to the average luminance of the first image.

### Claim 9 (depends on 8)

The method for enhancing image contrast of claim 8, wherein the first parameter is the number of bins whose number of pixels exceeds the average number of pixels in the N bins of the first image and a negative correlation exists between the first parameter and the size/number of homogeneous regions of the first image, the second parameter is related to an average luminance of the first image and a negative correlation exists between the second parameter and the average luminance of the first image.

### Claim 10 (depends on 8)

The method for enhancing image contrast of claim 8, further comprising:
performing a weighted calculation based on the first parameter and the second parameter to determine a restriction parameter;
performing a contrast limited histogram equalization processing on the first histogram information by using the restriction parameter to generate a second histogram information; and
obtaining the CDF curve based on the second histogram information.

### Claim 11

An image processing system comprising:
an image input device;
a storage device; and
an image processor coupled to the image input device and the storage device, wherein the image processor obtains a first image from the image input device or the storage device, generates a first histogram information based on the first image, obtains a cumulative-distribution-function (CDF) curve according to the first histogram information, generates an adaptive curve according to a high-contrast curve and a low-contrast curve, uses the adaptive curve to adjust the CDF curve to generate a mapping curve, and adjusts the first image by using the mapping curve to generate a second image with contrast enhancement effect.

### Claim 12 (depends on 11)

The image processing system of claim 11, wherein the high-contrast curve is used to enhance the contrast of the first image, and the low-contrast curve is used to enhance details in the dark area of the first image.

### Claim 13 (depends on 11)

The image processing system of claim 11, wherein the adaptive curve is determined by performing a weighted calculation based on the high-contrast curve with a third weight and the low-contrast curve with a fourth weight, wherein the adaptive curve falls between the high-contrast curve and the low-contrast curve.

### Claim 14 (depends on 11)

The image data processing system of claim 11, wherein a negative correlation exists between a third weight corresponding to the high-contrast curve and a median bin value of luminance in the first histogram information, and a positive correlation exists between a fourth weight corresponding to the low-contrast curve and the median bin value of luminance.

### Claim 15 (depends on 11)

The image processing system of claim 11, wherein the mapping curve is obtained according to the following equation:
mapLUT[i]=yLUT[j]+(cdf[i]−xLUT[j])*(yLUT[j+1]−yLUT[j])/(xLUT[j+1]−xLUT[j]),
where i and j are non-negative numbers, mapLUT[i] is the value of the mapping point corresponding to the i-th interpolation point cdf[i] of the CDF curve,
xLUT[j] and yLUT[j] are the (x, y) coordinates of the jth item of the adaptive curve, respectively, and
xLUT[j+1] and yLUT[j+1] are the (x, y) coordinates of the (j+1)-th item of the adaptive curve yLUT, respectively.

### Claim 16 (depends on 11)

The image processing system of claim 11, wherein the image processor further normalizes the CDF curve to generate a normalized CDF curve, and adjusts the normalized CDF curve based on the adaptive curve to generate the mapping curve.

### Claim 17 (depends on 16)

The image processing system of claim 16, wherein the mapping curve is obtained according to the following equation:
mapLUT[i]=yLUT[j]+(cdfNorm[i]−xLUT[j])*(yLUT[j+1]−yLUT[j])/(xLUT[j+1]−xLUT[j]),
where i and j are positive integers, mapLUT[i] is the value of the mapping point corresponding to the i-th interpolation point cdfNorm[i] of the normalized CDF curve,
xLUT[j] and yLUT[j] are the (x, y) coordinates of the jth item of the adaptive curve, respectively, and
xLUT[j+1] and yLUT[j+1] are the (x, y) coordinates of the (j+1)-th item of the adaptive curve yLUT, respectively.

### Claim 18 (depends on 11)

The image processing system of claim 11, wherein the image processor further obtains a first parameter and a second parameter of the first image based on the first histogram information, and obtains the CDF curve based on the first parameter and the second parameter, wherein the first parameter is related to the size/number of homogeneous regions of the first image, the second parameter is related to the average luminance of the first image.

### Claim 19 (depends on 18)

The image processing system of claim 18, wherein the first parameter is the number of bins whose number of pixels exceeds the average number of pixels in the N bins of the first image and a negative correlation exists between the first parameter and the size/number of homogeneous regions of the first image, the second parameter is related to an average luminance of the first image and a negative correlation exists between the second parameter and the average luminance of the first image.

### Claim 20 (depends on 18)

The image processing system of claim 18, wherein the image processor further performs a weighted calculation based on the first parameter and the second parameter to determine a restriction parameter, performs a contrast limited histogram equalization processing on the first histogram information by using the restriction parameter to generate a second histogram information, and obtains the CDF curve based on the second histogram information.
