IP Library Granted Patent US 11,875,486
Granted Patent B2
US 11,875,486 · App. 17/240,800 · Granted Jan 16, 2024

Image brightness statistical method and imaging device

Inventor: Yu Zhang (Beijing, CN)
Assignee: BEIJING TUSEN ZHITU TECHNOLOGY CO., LTD.
G06T5/009G06T1/20G06T1/60G06T5/40G06T2207/20208
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,875,486
App. No.
17/240,800
Granted
Jan 16, 2024
Kind
B2
Abstract

Provided in the present disclosure are an image brightness statistical method and an imaging device, related to the image processing field. The method includes: acquiring the bit width of a pixel brightness value of an image to be processed and a maximum acceptable bit width of a block random access memory; dividing bits of each pixel of said image into multiple groups of bits so that the bit width of each group is less than or equal to the maximum acceptable bit width; performing brightness histogram statistics based on the pixel data of same groups to produce a brightness histogram component corresponding to each group; determining brightness evaluation value components of each groups based on the brightness histogram components corresponding to the groups and the number of pixels of said image; and determining a brightness evaluation value of said image based on the brightness evaluation value components.

Claims (53)

1. A method for calculating image brightness, comprising:

obtaining a bit width of a pixel brightness value of an image to be processed and a maximum allowable bit width of a block random access memory of a hardware device for brightness histogram calculation, wherein each pixel brightness value is represented by data with a plurality of bits, and the number of the plurality of bits is equal to the bit width of a pixel brightness value;

dividing bits of each pixel of the image to be processed into a plurality of groups based on the bit width of the pixel brightness value of the image to be processed in such a manner that a number of bits of each group is smaller than or equal to the maximum allowable bit width;

performing brightness histogram calculation based on the data of each group of bits to obtain a brightness histogram component corresponding to the group;

determining a brightness evaluation value component corresponding to each group based on the brightness histogram component corresponding to the group and a number of pixels in the image to be processed; and

determining a brightness evaluation value of the image to be processed based on the respective brightness evaluation value components.

2. The method of claim 1 , wherein said dividing bits of each pixel of the image to be processed into the plurality of groups of bits based on the bit width of the pixel brightness value of the image to be processed in such a manner that a number of bits of each group is smaller than or equal to the maximum allowable bit width comprises:

segmenting data bits of each pixel data of the image to be processed in a group order based on the bit width of the pixel brightness value of the image to be processed, to form the plurality of groups of pixel data in such a manner that the data bits in the plurality of groups form the complete pixel data when combined, wherein the bit width of the pixel data in each group is smaller than or equal to the maximum allowable bit width, and a sum of the bit widths of the plurality of groups of pixel data is equal to the bit width of the pixel brightness value of the image to be processed.

3. The method of claim 1 , wherein said performing the brightness histogram calculation based on the data of each group of bits to obtain the brightness histogram component corresponding to the group comprises:

for the pixel data in the group, using possible values of the pixel data in the group as addresses of the block random access memory, and counting a number of pixels corresponding to each address in the pixel data in the group to form the brightness histogram component corresponding to the group, the brightness histogram component including the number of pixels for each possible value of the pixel data.

4. The method of claim 1 , wherein said determining the brightness evaluation value component corresponding to each group based on the brightness histogram component corresponding to the group and the number of pixels in the image to be processed comprises:

obtaining a number of pixels for each possible value of the pixel data in the group based on the brightness histogram component corresponding to the group;

multiplying each possible value of the pixel data with the number of pixels corresponding to the possible value, and determining a sum of results of the multiplying for all possible values as an accumulated brightness value component corresponding to the group; and

dividing the accumulated brightness value component corresponding to the group by the number of pixels in the image to be processed, to obtain the brightness evaluation value component corresponding to the group.

5. The method of claim 1 , wherein said determining the brightness evaluation value of the image to be processed based on the respective brightness evaluation value components comprises:

concatenating binary values of the respective brightness evaluation value components in an order of their corresponding groups, to form concatenated data representing the brightness evaluation value of the image to be processed.

6. The method of claim 1 , wherein the bit width of the pixel brightness value of the image to be processed is 24 bits, and

said dividing bits of each pixel of the image to be processed into the plurality of groups comprises: segmenting each pixel data of the image to be processed in a group order to form three groups of 8-bit pixel data.

7. The method of claim 1 , wherein said dividing bits of each pixel of the image to be processed into the plurality of groups comprises:

segmenting data bits of each pixel data of the image to be processed uniformly in a group order to form the plurality of groups of pixel data having equal data bit widths.

8. The method of claim 7 , wherein the data bit widths are an integer power of 2.

9. The method of claim 1 , wherein the image processor is a Field Programmable Gate Array (FPGA) and the image to be processed is a High Dynamic Range (HDR) image.

10. An imaging device, comprising an image sensor and an image processor, wherein the image sensor is configured to capture an image, and the image processor is configured to:

obtain the captured image as an image to be processed, and obtain a bit width of a pixel brightness value of the image to be processed and a maximum allowable bit width of a block random access memory of a hardware device for brightness histogram calculation, wherein each pixel brightness value is represented by data with a plurality of bits, and the number of the plurality of bits is equal to the bit width;

divide bits of each pixel of the image to be processed into a plurality of groups based on the bit width of the pixel brightness value of the image to be processed in such a manner that a number of bits of each group is smaller than or equal to the maximum allowable bit width;

perform brightness histogram calculation based on the data of each group of bits to obtain a brightness histogram component corresponding to the group;

determine a brightness evaluation value component corresponding to each group based on the brightness histogram component corresponding to the group and a number of pixels in the image to be processed; and

determine a brightness evaluation value of the image to be processed based on the respective brightness evaluation value components.

11. The imaging device of claim 10 , wherein the image processor is configured to:

segment data bits of each pixel data of the image to be processed in a group order based on the bit width of the pixel brightness value of the image to be processed, to form the plurality of groups of pixel data in such a manner that the data bits in the plurality of groups form the complete pixel data when combined, wherein the bit width of the pixel data in each group is smaller than or equal to the maximum allowable bit width, and a sum of the bit widths of the plurality of groups of pixel data is equal to the bit width of the pixel brightness value of the image to be processed.

12. The imaging device of claim 10 , wherein the image processor is configured to:

for the pixel data in the group, use possible values of the pixel data in the group as addresses of the block random access memory, and count a number of pixels corresponding to each address in the pixel data in the group to form the brightness histogram component corresponding to the group, the brightness histogram component including the number of pixels for each possible value of the pixel data.

13. The imaging device of claim 10 , wherein the image processor is configured to:

obtain a number of pixels for each possible value of the pixel data in the group based on the brightness histogram component corresponding to the group;

multiply each possible value of the pixel data with the number of pixels corresponding to the possible value, and determining a sum of results of the multiplying for all possible values as an accumulated brightness value component corresponding to the group; and

divide the accumulated brightness value component corresponding to the group by the number of pixels in the image to be processed, to obtain the brightness evaluation value component corresponding to the group.

14. The imaging device of claim 10 , wherein the image processor is configured to:

concatenate binary values of the respective brightness evaluation value components in an order of their corresponding groups, to form concatenated data representing the brightness evaluation value of the image to be processed.

15. The imaging device of claim 10 , wherein the image processor is configured to:

segment data bits of each pixel data of the image to be processed uniformly in a group order to form the plurality of groups of pixel data having equal data bit widths.

16. The imaging device of claim 10 , wherein the image to be processed is a High Dynamic Range (HDR) image.

17. The imaging device of claim 16 , wherein the image sensor is configured to capture the image to obtain original image data, and combine the original image data to obtain the HDR image, and

the image processor is configured to obtain the HDR image from the image sensor.

18. The imaging device of claim 16 , wherein the image sensor is configured to capture the image to obtain original image data, and

the image processor is configured to obtain the original image data from the image sensor, and combine the original image data to obtain the HDR image.

19. A non-transitory computer readable storage medium, having a computer program stored thereon, wherein the program, when executed by a processor, implements a method for calculating image brightness, the method comprising:

obtaining a bit width of a pixel brightness value of an image to be processed and a maximum allowable bit width of a block random access memory of a hardware device for brightness histogram calculation, wherein each pixel brightness value is represented by data with a plurality of bits, and the number of the plurality of bits is equal to the bit width;

dividing bits of each pixel of the image to be processed into a plurality of groups based on the bit width of the pixel brightness value of the image to be processed in such a manner that a number of bits of each group is smaller than or equal to the maximum allowable bit width;

performing brightness histogram calculation based on the data of each group of bits to obtain a brightness histogram component corresponding to the group;

determining a brightness evaluation value component corresponding to each group based on the brightness histogram component corresponding to the group and a number of pixels in the image to be processed; and

determining a brightness evaluation value of the image to be processed based on the respective brightness evaluation value components.

20. The non-transitory computer readable storage medium in claim 19 , wherein said dividing bits of each pixel of the image to be processed into the plurality of groups of bits based on the bit width of the pixel brightness value of the image to be processed in such a manner that a number of bits of each group is smaller than or equal to the maximum allowable bit width comprises:

segmenting data bits of each pixel data of the image to be processed in a group order based on the bit width of the pixel brightness value of the image to be processed, to form the plurality of groups of pixel data in such a manner that the data bits in the plurality of groups form the complete pixel data when combined, wherein the bit width of the pixel data in each group is smaller than or equal to the maximum allowable bit width, and a sum of the bit widths of the plurality of groups of pixel data is equal to the bit width of the pixel brightness value of the image to be processed.

Assignments (4)
CHANGE OF NAME Recorded Dec 9, 2025
From: TUSEN WEILAI TECHNOLOGY CO., LTD.
To: BEIJING OCGEN INTERACTION TECHNOLOGY
Reel/Frame 073916/0643 →
CHANGE OF NAME Recorded Dec 9, 2025
From: BEIJING TUSEN ZHITU TECHNOLOGY CO., LTD.
To: BEIJING OCGEN TECHNOLOGY CO., LTD.
Reel/Frame 073916/0416 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jan 26, 2022
From: BEIJING TUSEN WEILAI TECHNOLOGY CO., LTD.
To: BEIJING TUSEN ZHITU TECHNOLOGY CO., LTD.
Reel/Frame 058869/0349 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 26, 2021
From: ZHANG, YU
To: BEIJING TUSEN WEILAI TECHNOLOGY CO., LTD.
Reel/Frame 056044/0445 →
Priority Claims (1)
CN 201811257211.8 · Oct 26, 2018 · national
Continuity (2)
Continuation PCTCN2019077048 · Mar 5, 2019
Related Publication 20210248723A1 · Aug 12, 2021