# US 2020/0394760 A1 · Image adjustment method and associated image processing circuit

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

- Number: US 2020/0394760 A1
- Document ID: US20200394760A1
- Status: Published application
- Kind: A1
- Application number: 16/732,332
- Filed: 2020-01-01
- Published: 2020-12-17
- Earliest claimed: 2019-06-13
- Assignees: Realtek Semiconductor Corp.
- Applicants: Realtek Semiconductor Corp.
- Inventors: Zhong-Yi Qiu; Wen-Tsung Huang; Kai Liu
- Web page: https://patentgrep.com/patent/US20200394760A1

## CPC

- G06T 5/70: Denoising; Smoothing
- G06T 5/20: using local operators
- G06T 2207/20012: Locally adaptive
- G06T 2207/20021: Dividing image into blocks, subimages or windows
- G06T 2207/20192: Edge enhancement; Edge preservation
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

An image adjustment method includes: sequentially processing a plurality of pixels in at least one frame, wherein a pixel under processing is a current pixel, the current pixel and multiple adjacent pixels form a current block, and each current block is performed with following operations: reading a grayscale value of each pixel in the current block; determining a region grayscale value and a region variance of the current block according to the grayscale values of the pixels; generating a variance adjustment parameter via a variance adjustment function, wherein the region grayscale value is a variable of the variance adjustment function; generating an adjusted region variance according to the variance adjustment parameter and the region variance; and comparing the adjusted region variance with a variance threshold to determine whether to perform a noise suppression operation on the current pixel.

## Claims

### Claim 1

An image adjustment method for adjusting an image, the image comprising at least one frame that comprises a plurality of pixels, the image adjustment method comprising:
sequentially processing the pixels in the at least one frame, wherein a pixel under processing is a current pixel, the current pixel and a plurality of adjacent pixels form a current block, and each current block is processed with following operations:
reading a grayscale value of each pixel in the current block;
determining a region grayscale value and a region variance of the current block according to the grayscale values of the pixels;
generating a variance adjustment parameter via a variance adjustment function, wherein the region grayscale value is a variable of the variance adjustment function;
generating an adjusted region variance according to the variance adjustment parameter and the region variance; and
comparing the adjusted region variance with a variance threshold to determine whether to perform a noise suppression operation on the current pixel.

### Claim 2 (depends on 1)

The image adjustment method of claim 1, wherein the region grayscale value of the current block is an average of the grayscale values of all pixels in the current block.

### Claim 3 (depends on 1)

The image adjustment method of claim 1, wherein the variance adjustment function is a gradient adjustment function, the variance adjustment parameter is a gradient adjustment parameter and the region variance is a region gradient.

### Claim 4 (depends on 3)

The image adjustment method of claim 3, wherein the region gradient comprises a vertical gradient and a horizontal gradient, and the region gradient is expressed as:
G=|Gx|+|Gy|
where Gx is the horizontal gradient and Gy is the vertical gradient.

### Claim 5 (depends on 4)

The image adjustment method of claim 4, wherein the step of generating the adjusted region variance according to the variance adjustment parameter and the region variance is expressed as a following function:
Gfinal=f1(Brightnesslocal)×G
where Gfinal is the adjusted region variance, f1 is the gradient adjustment function, Brightnesslocal is the region grayscale value and G is the region gradient.

### Claim 6 (depends on 5)

The image adjustment method of claim 5, wherein the gradient adjustment function is a linear transfer function and is expressed as:
v


1
,
when


Brightness
local
<
b


1
v


1
+
(
v

2
-
v

1
)
×
B

r

i

g

h

tness
local
-
b


1
b

2
-
b

1
,

when


Brightness
local
<
b


2
f


1

=
{
v


2
+
(
v

3
-
v

2
)
×
B

r

i

g

h

tness
local
-
b


2
b

3
-
b

2
,

when


Brightness
local
<
b


3


vm
,
when


Brightness
local
≥
bm
where b1˜bm correspond to different brightness segments and v1˜vm are generated according to f1(b1)˜f1(bm).

### Claim 7 (depends on 1)

The image adjustment method of claim 1, wherein the step of comparing the adjusted region variance with the variance threshold to determine whether to perform the noise suppression operation on the current pixel further comprises:
when the adjusted region variance of the current block is smaller than the variance threshold, not performing the noise suppression operation on the current pixel.

### Claim 8 (depends on 1)

The image adjustment method of claim 1, further comprising:
using a filter to adjust the region grayscale value and generate an adjusted grayscale value, wherein the adjusted grayscale value is expressed as:
Pout=α×Plpf+(1−α)×Pin
where Pin is original grayscale value, Plpf is the grayscale value after being filtered, Pout is the adjusted grayscale value and α is a noise suppression strength.

### Claim 9 (depends on 8)

The image adjustment method of claim 8, wherein the noise suppression strength is expressed as:
coef


1
,
when


G
final

<
edge_thd1
α
=
{
c

o

e

f

1
+
(
coef


2
-
coef


1
)
×
G
final
-
edge_thd1
edge_thd2
-
edge_thd1
,

when


edge_thd1
<
G
final
<
edge_thd


2




coef


2
,
when


G
final

≥
edge_thd2
where edge_thd1 and edge_thd2 are respectively a first edge feature threshold and a second edge feature threshold, coef1 and coef2 are respectively user defined noise suppression strengths.

### Claim 10 (depends on 9)

The image adjustment method of claim 9, further comprising:
dynamically adjusting the first edge feature threshold and the second edge feature threshold according to the region grayscale value to generate an adjusted first edge feature threshold and an adjusted second edge feature threshold, wherein the adjusted first edge feature threshold and the adjusted second edge feature threshold are expressed as:
edge_thd1_final=edge_thd1+brightness_offset
edge_thd2_final=edge_thd2+brightness_offset
where edge_thd1_final and edge_thd2_final are respectively the adjusted first edge feature threshold and the adjusted second edge feature threshold, and brightness_offset is an grayscale offset .

### Claim 11

An image processing circuit, comprising:
a processor, configured to sequentially process a plurality of pixels in at least one frame of an image, wherein a pixel under processing is a current pixel, the current pixel and a plurality of adjacent pixels form a current block, and the processor is configured to process each current block with following operations:
reading a grayscale value of each pixel in the current block;
determining a region grayscale value and a region variance of the current block according to the grayscale values of the pixels;
generating a variance adjustment parameter via a variance adjustment function, wherein the region grayscale value is a variable of the variance adjustment function;
generating an adjusted region variance according to the variance adjustment parameter and the region variance; and
comparing the adjusted region variance with a variance threshold to determine whether to perform a noise suppression operation on the current pixel.

### Claim 12 (depends on 11)

The image processing circuit of claim 11, wherein the region grayscale value of the current block is an average of the grayscale values of all pixels in the current block.

### Claim 13 (depends on 11)

The image processing circuit of claim 11, wherein the variance adjustment function is a gradient adjustment function, the variance adjustment parameter is a gradient adjustment parameter and the region variance is a region gradient.

### Claim 14 (depends on 13)

The image processing circuit of claim 13, wherein the region gradient comprises a vertical gradient and a horizontal gradient, and the region gradient is expressed as:
G=|Gx|+|Gy|
where Gx is the horizontal gradient and Gy is the vertical gradient.

### Claim 15 (depends on 14)

The image processing circuit of claim 14, wherein the operation of generating the adjusted region variance according to the variance adjustment parameter and the region variance is expressed as a following function:
Gfinal=f1(Brightnesslocal)×G
where Gfinal is the adjusted region variance, f1 is the gradient adjustment function, Brightnesslocal is the region grayscale value and G is the region gradient.

### Claim 16 (depends on 15)

The image processing circuit of claim 15, wherein the gradient adjustment function is a linear transfer function and is expressed as:
v


1
,
when


Brightness
local
<
b


1
v


1
+
(
v

2
-
v

1
)
×
B

r

i

g

h

tness
local
-
b


1
b

2
-
b

1
,

when


Brightness
local
<
b


2
f


1

=
{
v


2
+
(
v

3
-
v

2
)
×
B

r

i

g

h

tness
local
-
b


2
b

3
-
b

2
,

when


Brightness
local
<
b


3


vm
,
when


Brightness
local
≥
bm
where b1˜bm correspond to different brightness segments and v1˜vm are generated according to f1(b1)˜f1(bm).

### Claim 17 (depends on 11)

The image processing circuit of claim 11, wherein the operation of comparing the adjusted region variance with the variance threshold to determine whether to perform the noise suppression operation on the current pixel further comprises:
when the adjusted region variance of the current block is smaller than the variance threshold, not performing the noise suppression operation on the current pixel.

### Claim 18 (depends on 11)

The image processing circuit of claim 11, wherein the processor is further configured to process each current block with following operation:
using a filter to adjust the region grayscale value and generate an adjusted grayscale value, wherein the adjusted grayscale value is expressed as:
Pout=α×Plpf+(1−α)×Pin
where Pin is original grayscale value, Plpf is the grayscale value after being filtered, Pout is the adjusted grayscale value and α is a noise suppression strength.

### Claim 19 (depends on 18)

The image processing of claim 18, wherein the noise suppression strength is expressed as:
coef


1
,
when


G
final

<
edge_thd1
α
=
{
c

o

e

f

1
+
(
coef


2
-
coef


1
)
×
G
final
-
edge_thd1
edge_thd2
-
edge_thd1
,

when


edge_thd1
<
G
final
<
edge_thd


2



coef


2
,
when


G
final

≥
edge_thd2
where edge_thd1 and edge_thd2 are respectively a first edge feature threshold and a second edge feature threshold, coef1 and coef2 are respectively user defined noise suppression strengths.

### Claim 20 (depends on 19)

The image processing of claim 19, wherein the processor is further configured to process each current block with following operation:
dynamically adjusting the first edge feature threshold and the second edge feature threshold according to the region grayscale value to generate an adjusted first edge feature threshold and an adjusted second edge feature threshold, wherein the adjusted first edge feature threshold and the adjusted second edge feature threshold are expressed as:
edge_thd1_final=edge_thd1+brightness_offset
edge_thd2_final=edge_thd2+brightness_offset
where edge_thd1_final and edge_thd2_final are respectively the adjusted first edge feature threshold and the adjusted second edge feature threshold, and brightness_offset is an grayscale offset.
