# US 2024/0406360 A1 · Image enhancement processing method and apparatus, device and storage medium

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

- Number: US 2024/0406360 A1
- Document ID: US20240406360A1
- Status: Published application
- Kind: A1
- Application number: 18/746,291
- Filed: 2024-06-18
- Published: 2024-12-05
- Earliest claimed: 2023-12-18
- Assignees: Beijing Baidu Netcom Science Technology Co., Ltd.
- Applicants: Beijing Baidu Netcom Science Technology Co., Ltd.
- Inventors: Feiyang LIU
- Web page: https://patentgrep.com/patent/US20240406360A1

## CPC

- H04N 9/646: {for image enhancement, e.g. vertical detail restoration, cross-colour elimination, contour correction, chrominance trapping filters}
- G06T 5/70: Denoising; Smoothing
- G06T 5/73: Deblurring; Sharpening
- G06T 2207/10024: Color image
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

The present disclosure provides an image enhancement processing method and apparatus, a device and a storage medium, which relate to the field of artificial intelligence technology, especially to the field of cloud computing technology. The specific implementation scheme is: in response to an input image read, obtaining a color space corresponding to the input image and all color pixels of at least one color component in the color space; determining sharpened pixel values respectively corresponding to pixel positions of all the color pixels; determining smoothed sharpened pixel values respectively corresponding to all the pixel positions based on the sharpened pixel values respectively corresponding to the pixel positions of all the color pixels; obtaining a to-be-coded image corresponding to the input image according to the smoothed sharpened pixel values respectively corresponding to all the pixel positions.

## Claims

### Claim 1

An image enhancement processing method, comprising:
in response to an input image read, obtaining a color space corresponding to the input image and all color pixels of at least one color component in the color space;
determining sharpened pixel values respectively corresponding to pixel positions of all the color pixels;
determining smoothed sharpened pixel values respectively corresponding to all the pixel positions based on the sharpened pixel values respectively corresponding to the pixel positions of all the color pixels;
obtaining a to-be-coded image corresponding to the input image according to the smoothed sharpened pixel values respectively corresponding to all the pixel positions.

### Claim 2 (depends on 1)

The method according to claim 1, wherein determining the sharpened pixel values respectively corresponding to the pixel positions of all the color pixels, comprises:
determining an original pixel value at a pixel position of each color pixel in all the color pixels and a Gaussian mean of all original pixel values in a neighborhood of each color pixel;
determining the sharpened pixel value corresponding to the pixel position of each color pixel according to the original pixel value at the pixel position of each color pixel and the Gaussian mean of all the original pixel values in the neighborhood of each color pixel.

### Claim 3 (depends on 2)

The method according to claim 2, wherein determining the sharpened pixel value corresponding to the pixel position of each color pixel according to the original pixel value at the pixel position of each color pixel and the Gaussian mean of all the original pixel values in the neighborhood of each color pixel, comprises:
determining a difference between the original pixel value at the pixel position of each color pixel and the Gaussian mean of all the original pixel values in the neighborhood of each color pixel;
determining the sharpened pixel value corresponding to the pixel position of each color pixel according to a product of the difference and a predetermined scaling factor.

### Claim 4 (depends on 1)

The method according to claim 1, wherein determining the smoothed sharpened pixel values respectively corresponding to all the pixel positions based on the sharpened pixel values respectively corresponding to the pixel positions of all the color pixels, comprises:
obtaining a sharpened pixel plane of the at least one color component based on the sharpened pixel values respectively corresponding to the pixel positions of all the color pixels;
determining smoothed sharpened pixel values respectively corresponding to all the pixel positions on the sharpened pixel plane according to all sharpened pixel values of the sharpened pixel plane of the at least one color component.

### Claim 5 (depends on 4)

The method according to claim 4, wherein determining the smoothed sharpened pixel values respectively corresponding to all the pixel positions on the sharpened pixel plane according to all the sharpened pixel values of the sharpened pixel plane of the at least one color component, comprises:
determining the smoothed sharpened pixel values respectively corresponding to all the pixel positions on the sharpened pixel plane according to a Gaussian mean of all the sharpened pixel values of the sharpened pixel plane of the at least one color component.

### Claim 6 (depends on 1)

The method according to claim 1, wherein obtaining the to-be-coded image corresponding to the input image according to the smoothed sharpened pixel values respectively corresponding to all the pixel positions, comprises:
obtaining to-be-coded pixel values respectively corresponding to all the pixel positions according to original pixel values respectively corresponding to all the pixel positions and the smoothed sharpened pixel values respectively corresponding to all the pixel positions;
obtaining a to-be-coded pixel plane of the at least one color component based on the to-be-coded pixel values respectively corresponding to all the pixel positions;
obtaining the to-be-coded image corresponding to the input image based on the to-be-coded pixel plane of the at least one color component.

### Claim 7 (depends on 6)

The method according to claim 6, wherein obtaining the to-be-coded pixel values respectively corresponding to all the pixel positions according to the original pixel values respectively corresponding to all the pixel positions and the smoothed sharpened pixel values respectively corresponding to all the pixel positions, comprises:
acquiring a bit depth of the input image and an effective range corresponding to the bit depth;
determining a sum value of the original pixel values and the smoothed sharpened pixel values respectively corresponding to all the pixel positions;
if a sum value corresponding to any one of the pixel positions exceeds the effective range, truncating the sum value that exceeds the effective range to the effective range to obtain the to-be-coded pixel values respectively corresponding to all the pixel positions.

### Claim 8 (depends on 1)

The method according to claim 1, wherein obtaining the color space corresponding to the input image, comprises:
obtaining an initial color space of the input image;
if the initial color space is not a target color space, performing conversion processing on the initial color space to obtain the color space corresponding to the input image;
if the initial color space is the target color space, taking the target color space as the color space corresponding to the input image.

### Claim at position 9

9-19. (canceled)

### Claim 20 (depends on 2)

The method according to claim 2, wherein obtaining the color space corresponding to the input image, comprises:
obtaining an initial color space of the input image; if the initial color space is not a target color space, performing conversion processing on the initial color space to obtain the color space corresponding to the input image;
if the initial color space is the target color space, taking the target color space as the color space corresponding to the input image.

### Claim 21 (depends on 3)

The method according to claim 3, wherein obtaining the color space corresponding to the input image, comprises:
obtaining an initial color space of the input image;
if the initial color space is not a target color space, performing conversion processing on the initial color space to obtain the color space corresponding to the input image;
if the initial color space is the target color space, taking the target color space as the color space corresponding to the input image.

### Claim 22 (depends on 4)

The method according to claim 4, wherein obtaining the color space corresponding to the input image, comprises:
obtaining an initial color space of the input image;
if the initial color space is not a target color space, performing conversion processing on the initial color space to obtain the color space corresponding to the input image;
if the initial color space is the target color space, taking the target color space as the color space corresponding to the input image.

### Claim 23 (depends on 5)

The method according to claim 5, wherein obtaining the color space corresponding to the input image, comprises:
obtaining an initial color space of the input image;
if the initial color space is not a target color space, performing conversion processing on the initial color space to obtain the color space corresponding to the input image;
if the initial color space is the target color space, taking the target color space as the color space corresponding to the input image.

### Claim 24 (depends on 6)

The method according to claim 6, wherein obtaining the color space corresponding to the input image, comprises:
obtaining an initial color space of the input image;
if the initial color space is not a target color space, performing conversion processing on the initial color space to obtain the color space corresponding to the input image;
if the initial color space is the target color space, taking the target color space as the color space corresponding to the input image.

### Claim 25 (depends on 7)

The method according to claim 7, wherein obtaining the color space corresponding to the input image, comprises:
obtaining an initial color space of the input image;
if the initial color space is not a target color space, performing conversion processing on the initial color space to obtain the color space corresponding to the input image;
if the initial color space is the target color space, taking the target color space as the color space corresponding to the input image.

### Claim 26

An electronic device, comprising:
at least one processor; and
a memory communicatively connected with the at least one processor;
wherein the memory stores an instruction executable by the at least one processor, and the instruction is executed by the at least one processor to enable the at least one processor to:
obtain, in response to an input image read, a color space corresponding to the input image and all color pixels of at least one color component in the color space;
determine sharpened pixel values respectively corresponding to pixel positions of all the color pixels;
determine smoothed sharpened pixel values respectively corresponding to all the pixel positions based on the sharpened pixel values respectively corresponding to the pixel positions of all the color pixels;
obtain a to-be-coded image corresponding to the input image according to the smoothed sharpened pixel values respectively corresponding to all the pixel positions.

### Claim 27 (depends on 26)

The electronic device according to claim 26, wherein the at least one processor is enabled to:
determine an original pixel value at a pixel position of each color pixel in all the color pixels and a Gaussian mean of all original pixel values in a neighborhood of each color pixel;
determine the sharpened pixel value corresponding to the pixel position of each color pixel according to the original pixel value at the pixel position of each color pixel and the Gaussian mean of all the original pixel values in the neighborhood of each color pixel.

### Claim 28 (depends on 26)

The electronic device according to claim 26, wherein the at least one processor is enabled to:
obtain a sharpened pixel plane of the at least one color component based on the sharpened pixel values respectively corresponding to the pixel positions of all the color pixels;
determine smoothed sharpened pixel values respectively corresponding to all the pixel positions on the sharpened pixel plane according to all sharpened pixel values of the sharpened pixel plane of the at least one color component.

### Claim 29 (depends on 26)

The electronic device according to claim 26, wherein the at least one processor is enabled to:
obtain to-be-coded pixel values respectively corresponding to all the pixel positions according to original pixel values respectively corresponding to all the pixel positions and the smoothed sharpened pixel values respectively corresponding to all the pixel positions;
obtain a to-be-coded pixel plane of the at least one color component based on the to-be-coded pixel values respectively corresponding to all the pixel positions;
obtain the to-be-coded image corresponding to the input image based on the to-be-coded pixel plane of the at least one color component.

### Claim 30 (depends on 26)

The electronic device according to claim 26, wherein the at least one processor is enabled to:
acquire an initial color space of the input image;
perform conversion processing on the initial color space to obtain the color space corresponding to the input image, if the initial color space is not a target color space;
take the target color space as the color space corresponding to the input image, if the initial color space is the target color space.

### Claim 31

A non-transitory computer readable storage medium with a computer instruction stored thereon, wherein the computer instruction is configured to enable a computer to:
obtain, in response to an input image read, a color space corresponding to the input image and all color pixels of at least one color component in the color space;
determine sharpened pixel values respectively corresponding to pixel positions of all the color pixels;
determine smoothed sharpened pixel values respectively corresponding to all the pixel positions based on the sharpened pixel values respectively corresponding to the pixel positions of all the color pixels;
obtain a to-be-coded image corresponding to the input image according to the smoothed sharpened pixel values respectively corresponding to all the pixel positions.
