# US 2023/0069014 A1 · Method and apparatus for generating low bit width hdr image, storage medium, and terminal

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

- Number: US 2023/0069014 A1
- Document ID: US20230069014A1
- Status: Published application
- Kind: A1
- Application number: 17/794,409
- Filed: 2021-03-19
- Published: 2023-03-02
- Earliest claimed: 2020-01-21
- Assignees: Spreadtrum Communications (Shanghai) Co., Ltd.
- Applicants: Spreadtrum Communications (Shanghai) Co., Ltd.
- Inventors: Chunting LIU; Danfeng JIE; Xiaomeng ZHANG; Huan CHEN; Xiaofeng PENG
- Web page: https://patentgrep.com/patent/US20230069014A1

## CPC

- H04N 19/102: characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N 23/741: by increasing the dynamic range of the image compared to the dynamic range of the electronic image sensors
- G06T 5/40: using histogram techniques
- G06T 5/50: using two or more images, e.g. averaging or subtraction
- G06T 5/92: based on global image properties
- G06T 7/11: Region-based segmentation
- H04N 19/136: Incoming video signal characteristics or properties
- H04N 19/184: the unit being bits, e.g. of the compressed video stream
- H04N 23/667: Camera operation mode switching, e.g. between still and video, sport and normal or high- and low-resolution modes
- H04N 23/80: Camera processing pipelines; Components thereof
- G06T 2207/20208: High dynamic range [HDR] image processing
- G06T 2207/20221: Image fusion; Image merging
- H04N 19/98: Adaptive-dynamic-range coding [ADRC]
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

A method and an apparatus for generating HDR image with low bit width, a storage medium, and a terminal are provided. The method includes: determining a to-be-processed HDR image with high bit width; splitting the to-be-processed HDR image with high bit width to obtain N frames of split images which include a first frame to an Nth frame; performing bit width reduction processing on the N frames of split images respectively, to obtain N frames of low-bit-width images; and synthesizing the N frames of low-bit-width images to obtain the HDR image with low bit width.

## Claims

### Claim 1

A method for generating a High Dynamic Range (HDR) image with low bit width, comprising:
determining a to-be-processed HDR image with high bit width;
splitting the to-be-processed HDR image with high bit width to obtain N frames of split images which comprise a first frame to an Nth frame;
performing bit width reduction processing on the N frames of split images respectively, to obtain N frames of low-bit-width images; and
synthesizing the N frames of low-bit-width images to obtain the HDR image with low bit width.

### Claim 2 (depends on 1)

The method according to claim 1, wherein said splitting the to-be-processed HDR image with high bit width comprises:
determining a total split gain;
determining a number N of split frames based on a preset single frame gain and the total split gain;
determining the first frame to an (N-1)th frame of split images based on the preset single frame gain and the to-be-processed HDR image with high bit width; and
determining the Nth frame of split image based on at least the total split gain.

### Claim 3 (depends on 2)

The method according to claim 2, wherein said determining a total split gain comprises:
converting the to-be-processed HDR image with high bit width to a grayscale image;
obtaining a statistical cumulative histogram based on the grayscale image;
determining a grayscale statistical cumulative value of a first preset pixel probability based on the statistical cumulative histogram; and
dividing a first preset standard value by the grayscale statistical cumulative value of the first preset pixel probability to obtain a first quotient value as the total split gain.

### Claim 4 (depends on 3)

The method according to claim 3, wherein the first preset pixel probability is a lower limit value of a first preset pixel probability range.

### Claim 5 (depends on 2)

The method according to claim 2, wherein said determining a total split gain comprises:
converting the to-be-processed HDR image with high bit width to a grayscale image;
obtaining a statistical cumulative histogram based on the grayscale image;
determining a grayscale statistical cumulative value of a second preset pixel probability based on the statistical cumulative histogram; and
dividing a second preset standard value by the grayscale statistical cumulative value of the second preset pixel probability to obtain a second quotient value as the total split gain.

### Claim 6 (depends on 5)

The method according to claim 5, wherein the second preset pixel probability is an upper limit value of a second preset pixel probability range.

### Claim 7 (depends on 2)

The method according to claim 2, wherein said determining a total split gain comprises:
converting the to-be-processed HDR image with high bit width to a grayscale image;
obtaining a statistical cumulative histogram based on the grayscale image;
determining an average value of grayscale statistical cumulative values within a third preset pixel probability range based on the statistical cumulative histogram; and
dividing a preset average standard value by the average value of the grayscale statistical cumulative values to obtain a third quotient value as the total split gain.

### Claim 8 (depends on 2)

The method according to claim 2, wherein the number N of split frames is determined based on the preset single frame gain and the total split gain by using a following formula:
N=┌log2(G_total)/log2(G_delta)┐+1,
where G_total is the total split gain, and G_delta is the preset single frame gain.

### Claim 9 (depends on 2)

The method according to claim 2, wherein said determining the first frame to an (N-1)th frame of split images based on the preset single frame gain and the to-be-processed HDR image with high bit width comprises:
multiplying the to-be-processed HDR image with high bit width by (N-2) G_deltas to obtain the (N-1)th frame of split image,
where G_delta is the preset single frame gain, and N≥2.

### Claim 10 (depends on 2)

The method according to claim 2, wherein said determining the Nth frame of split image based on at least the total split gain comprises:
determining that the Nth frame of split image is a product of the (N-1)th frame of split image and an N frame gain,
where the N frame gain is G_total/(G_delta{circumflex over ( )}(N-2)), G_total is the total split gain, and G_delta is the preset single frame gain.

### Claim 11 (depends on 2)

The method according to claim 2, wherein said determining the Nth frame of split image based on at least the total split gain comprises:
determining that the Nth frame of split image is a product of the to-be-processed HDR image with high bit width and the total split gain.

### Claim 12 (depends on 1)

The method according to claim 1, wherein said synthesizing the N frames of low-bit-width images to obtain the HDR image with low bit width comprises:
inputting the N frames of low-bit-width images into an Image Signal Processor (ISP) to output processed N frames of low-bit-width images; and
performing fusion processing on the processed N frames of low-bit-width images to obtain the HDR image with low bit width.

### Claim 13

(canceled)

### Claim 14

A non-transitory storage medium storing one or more programs, the one or more programs comprising computer instructions, which, when executed by a processor, cause the processor to
determine a to-be-processed HDR image with high bit width;
split the to-be-processed HDR image with high bit width to obtain N frames of split images which comprise a first frame to an Nth frame;
perform bit width reduction processing on the N frames of split images respectively, to obtain N frames of low-bit-width images; and
synthesize the N frames of low-bit-width images to obtain an HDR image with low bit width.

### Claim 15

A terminal comprising a memory and a processor, wherein the memory stores one or more programs, the one or more programs comprising computer instructions, which, when executed by the processor, cause the processor to:
determine a to-be-processed HDR image with high bit width;
split the to-be-processed HDR image with high bit width to obtain N frames of split images which comprise a first frame to an Nth frame;
perform bit width reduction processingon the N frames of split images respectively, to obtain N frames of low-bit-width images; and
synthesize the N frames of low-bit-width images to obtain an HDR image with low bit width.

### Claim 16 (depends on 15)

The terminal according to claim 15, wherein said splitting the to-be-processed HDR image with high bit width comprises:
determining a total split gain;
determining a number N of split frames based on a preset single frame gain and the total split gain;
determining the first frame to an (N-1)th frame of split images based on the preset single frame gain and the to-be-processed HDR image with high bit width; and
determining the Nth frame of split image based on at least the total split gain.

### Claim 17 (depends on 16)

The terminal according to claim 16, wherein said determining a total split gain comprises:
converting the to-be-processed HDR image with high bit width to a grayscale image;
obtaining a statistical cumulative histogram based on the grayscale image;
determining a grayscale statistical cumulative value of a first preset pixel probability based on the statistical cumulative histogram; and
dividing a first preset standard value by the grayscale statistical cumulative value of the first preset pixel probability to obtain a first quotient value as the total split gain.

### Claim 18 (depends on 17)

The terminal according to claim 17, wherein the first preset pixel probability is a lower limit value of a first preset pixel probability range.

### Claim 19 (depends on 16)

The terminal according to claim 16, wherein said determining a total split gain comprises:
converting the to-be-processed HDR image with high bit width to a grayscale image;
obtaining a statistical cumulative histogram based on the grayscale image;
determining a grayscale statistical cumulative value of a second preset pixel probability based on the statistical cumulative histogram; and
dividing a second preset standard value by the grayscale statistical cumulative value of the second preset pixel probability to obtain a second quotient value as the total split gain.

### Claim 20 (depends on 19)

The terminal according to claim 19, wherein the second preset pixel probability is an upper limit value of a second preset pixel probability range.

### Claim 21 (depends on 16)

The terminal according to claim 16, wherein said determining a total split gain comprises:
converting the to-be-processed HDR image with high bit width to a grayscale image;
obtaining a statistical cumulative histogram based on the grayscale image;
determining an average value of grayscale statistical cumulative values within a third preset pixel probability range based on the statistical cumulative histogram; and
dividing a preset average standard value by the average value of the grayscale statistical cumulative values to obtain a third quotient value as the total split gain.
