# US 2025/0159362 A1 · Image adjusting method, electronic device, and non-transitory computer readable storage medium

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

- Number: US 2025/0159362 A1
- Document ID: US20250159362A1
- Status: Published application
- Kind: A1
- Application number: 18/508,190
- Filed: 2023-11-13
- Published: 2025-05-15
- Earliest claimed: 2023-11-13
- Assignees: HTC Corporation
- Applicants: HTC Corporation
- Inventors: Chin-Yu CHANG; Yun-Ting WANG
- Web page: https://patentgrep.com/patent/US20250159362A1

## CPC

- H04N 23/76: by influencing the image signals
- G06T 5/40: using histogram techniques
- G06T 5/77: Retouching; Inpainting; Scratch removal
- G06T 5/94: based on local image properties, e.g. for local contrast enhancement
- H04N 5/2628: {Alteration of picture size, shape, position or orientation, e.g. zooming, rotation, rolling, perspective, translation}
- H04N 23/71: Circuitry for evaluating the brightness variation
- G06T 2207/20021: Dividing image into blocks, subimages or windows
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

An image adjusting method, suitable for an electronic device is disclosed. The image adjusting method includes the following operations: calculating several patch brightness values of several patches of an image; adjusting a first patch brightness value of a first patch of several patches to generate a first adjusted patch when the first patch brightness value of the first patch is not within a target brightness value range, so that a first adjusted patch brightness value of the first adjusted patch is within the target brightness value range; and replacing the first patch of the image with the first adjusted patch to obtain an adjusted image.

## Claims

### Claim 1

An image adjusting method, suitable for an electronic device, wherein the image adjusting method comprises:
calculating a plurality of patch brightness values of a plurality of patches of an image;
adjusting a first patch brightness value of a first patch of the plurality of patches to generate a first adjusted patch when the first patch brightness value of the first patch is not within a target brightness value range, so that a first adjusted patch brightness value of the first adjusted patch is within the target brightness value range; and
replacing the first patch of the image with the first adjusted patch to obtain an adjusted image.

### Claim 2 (depends on 1)

The image adjusting method of claim 1, further comprising:
extracting a plurality of features according to the adjusted image.

### Claim 3 (depends on 1)

The image adjusting method of claim 1, further comprising:
expanding the first patch to obtain a first area;
adjusting a first area brightness value of the first area to generate a first adjusted area when the first patch brightness value of the first patch is not within the target brightness value range; and
replacing the first area of the image with the first adjusted area to obtain the adjusted image.

### Claim 4 (depends on 3)

The image adjusting method of claim 3, wherein the first area comprises the first patch and the first area is larger than the first patch.

### Claim 5 (depends on 1)

The image adjusting method of claim 1, further comprising:
determining whether a first gradient value of the first patch is higher than a gradient value threshold when the first patch brightness value of the first patch is not within the target brightness value range; and
adjusting the first patch brightness value of the first patch of the plurality of patches to generate the first adjusted patch when the first patch brightness value of the first patch is not within the target brightness value range and the first gradient value of the first patch is higher than a gradient value threshold, so that the first adjusted patch brightness value is within the target brightness value range.

### Claim 6 (depends on 5)

The image adjusting method of claim 5, further comprising:
expanding the first patch to obtain a first area;
adjusting a first area brightness value of a first area corresponding to the first patch to generate a first adjusted area when the first patch brightness value of the first patch is not within the target brightness value range and a first gradient value of the first patch is higher than a gradient value threshold, so that the first adjusted patch brightness value is within the target brightness value range; and
replacing the first area of the image with the first adjusted area to obtain the adjusted image.

### Claim 7 (depends on 5)

The image adjusting method of claim 5, further comprising:
keeping the first patch brightness value of the first patch of the plurality of patches when the first patch brightness value of the first patch is not within the target brightness value range and the first gradient value of the first patch is not higher than the gradient value threshold.

### Claim 8

An electronic device, comprising:
a camera, configured to capture an image of a real space; and
a processor, coupled to the camera, wherein the processor is configured to:
calculate a plurality of patch brightness values of a plurality of patches of the image;
adjust a first patch brightness value of a first patch of the plurality of patches to generate a first adjusted patch when the first patch brightness value of the first patch is not within a target brightness value range, so that a first adjusted patch brightness value of the first adjusted patch is within the target brightness value range; and
replace the first patch of the image with the first adjusted patch to obtain an adjusted image.

### Claim 9 (depends on 8)

The electronic device of claim 8, wherein the processor is further configured to:
extracting a plurality of features according to the adjusted image.

### Claim 10 (depends on 8)

The electronic device of claim 8, wherein the processor is further configured to:
expand the first patch to obtain a first area;
adjust a first area brightness value of the first area to generate a first adjusted area when the first patch brightness value of the first patch is not within the target brightness value range; and
replace the first area of the image with the first adjusted area to obtain the adjusted image.

### Claim 11 (depends on 10)

The electronic device of claim 10, wherein the first area comprises the first patch and the first area is larger than the first patch.

### Claim 12 (depends on 8)

The electronic device of claim 8, wherein the processor is further configured to:
determine whether a first gradient value of the first patch is higher than a gradient value threshold when the first patch brightness value of the first patch is not within the target brightness value range; and
adjust the first patch brightness value of the first patch of the plurality of patches to generate the first adjusted patch when the first patch brightness value of the first patch is not within the target brightness value range and the first gradient value of the first patch is higher than a gradient value threshold, so that the first adjusted patch brightness value is within the target brightness value range.

### Claim 13 (depends on 12)

The electronic device of claim 12, wherein the processor is further configured to:
expand the first patch to obtain a first area;
adjust a first area brightness value of a first area corresponding to the first patch to generate a first adjusted area when the first patch brightness value of the first patch is not within the target brightness value range and a first gradient value of the first patch is higher than a gradient value threshold, so that the first adjusted patch brightness value is within the target brightness value range; and
replace the first area of the image with the first adjusted area to obtain the adjusted image.

### Claim 14 (depends on 12)

The electronic device of claim 12, wherein the processor is further configured to:
keep the first patch brightness value of the first patch of the plurality of patches when the first patch brightness value of the first patch is not within the target brightness value range and the first gradient value of the first patch is not higher than the gradient value threshold.

### Claim 15

A non-transitory computer readable storage medium, wherein the non-transitory computer readable storage medium comprises one or more computer programs stored therein, and the one or more computer programs can be executed by one or more processors so as to be configured to operate an image adjusting method, wherein the image adjusting method comprises:
calculating a plurality of patch brightness values of a plurality of patches of an image;
adjusting a first patch brightness value of a first patch of the plurality of patches to generate a first adjusted patch when the first patch brightness value of the first patch is not within a target brightness value range, so that a first adjusted patch brightness value of the first adjusted patch is within the target brightness value range; and
replacing the first patch of the image with the first adjusted patch to obtain an adjusted image.

### Claim 16 (depends on 15)

The non-transitory computer readable storage medium of claim 15, wherein the image adjusting method further comprises:
extracting a plurality of features according to the adjusted image.

### Claim 17 (depends on 15)

The non-transitory computer readable storage medium of claim 15, wherein the image adjusting method further comprises:
expanding the first patch to obtain a first area;
adjusting a first area brightness value of the first area to generate a first adjusted area when the first patch brightness value of the first patch is not within the target brightness value range; and
replacing the first area of the image with the first adjusted area to obtain the adjusted image;
wherein the first area comprises the first patch and the first area is larger than the first patch.

### Claim 18 (depends on 15)

The non-transitory computer readable storage medium of claim 15, wherein the image adjusting method further comprises:
determining whether a first gradient value of the first patch is higher than a gradient value threshold when the first patch brightness value of the first patch is not within the target brightness value range; and
adjusting the first patch brightness value of the first patch of the plurality of patches to generate the first adjusted patch when the first patch brightness value of the first patch is not within the target brightness value range and the first gradient value of the first patch is higher than a gradient value threshold, so that the first adjusted patch brightness value is within the target brightness value range.

### Claim 19 (depends on 18)

The non-transitory computer readable storage medium of claim 18, wherein the image adjusting method further comprises:
expanding the first patch to obtain a first area;
adjusting a first area brightness value of a first area corresponding to the first patch to generate a first adjusted area when the first patch brightness value of the first patch is not within the target brightness value range and a first gradient value of the first patch is higher than a gradient value threshold, so that the first adjusted patch brightness value is within the target brightness value range; and
replacing the first area of the image with the first adjusted area to obtain the adjusted image.

### Claim 20 (depends on 18)

The non-transitory computer readable storage medium of claim 18, wherein the image adjusting method further comprises:
keeping the first patch brightness value of the first patch of the plurality of patches when the first patch brightness value of the first patch is not within the target brightness value range and the first gradient value of the first patch is not higher than the gradient value threshold.
