CN115037882A - Image brightness adjusting method, imaging device and computer storage medium - Google Patents

Image brightness adjusting method, imaging device and computer storage medium Download PDF

Info

Publication number
CN115037882A
CN115037882A CN202110247357.XA CN202110247357A CN115037882A CN 115037882 A CN115037882 A CN 115037882A CN 202110247357 A CN202110247357 A CN 202110247357A CN 115037882 A CN115037882 A CN 115037882A
Authority
CN
China
Prior art keywords
partition
image
adjusted
value
brightness
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110247357.XA
Other languages
Chinese (zh)
Other versions
CN115037882B (en
Inventor
夏志伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SmartSens Technology Shanghai Co Ltd
Original Assignee
SmartSens Technology Shanghai Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SmartSens Technology Shanghai Co Ltd filed Critical SmartSens Technology Shanghai Co Ltd
Priority to CN202110247357.XA priority Critical patent/CN115037882B/en
Publication of CN115037882A publication Critical patent/CN115037882A/en
Application granted granted Critical
Publication of CN115037882B publication Critical patent/CN115037882B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention belongs to the technical field of image sensors, and relates to an image brightness adjusting method, which comprises the following steps: dividing an original image to be adjusted into a plurality of exposure subareas; designating an exposure partition as a reference partition for first adjustment; and adjusting the brightness of the adjacent exposure subareas according to the reference subarea to enable the brightness of different exposure subareas to be consistent, and obtaining a brightness adjustment image. The invention can automatically complete the task of image brightness adjustment without manual intervention, is suitable for gray level images and color images, and is suitable for image brightness adjustment of continuous video images. The invention also provides an imaging device and a computer storage medium.

Description

Image brightness adjusting method, imaging device and computer storage medium
Technical Field
The present invention relates to the field of image sensor technologies, and in particular, to an image brightness adjustment method, an imaging device, and a computer storage medium.
Background
Image sensors are widely used in video surveillance and other related fields. In some traffic monitoring camera application occasions, the brightness of a traffic signal lamp after being started is equivalent to the surrounding environment, and the brightness is brighter. When the image sensor is used for video monitoring shooting of scenes containing traffic lights, the red lights with weak illumination are prone to color cast (except red, other color channels are over-exploded) in cloudy days, and the problem of traffic light over-exposure can occur in shooting at night. The reason for this problem is that the current image sensor is usually linear in design, and the linear image sensor has a small illumination range and cannot collect all signals from a low-illumination environment to a strong-light environment, so that the output dynamic range of the linear image sensor cannot simultaneously satisfy the brightness range of the traffic light and the surrounding environment. To solve the above problem, it is necessary to improve the dynamic range of the image output from the image sensor to meet the application requirements of different scenes.
The dynamic range of the output of the image sensor is increased by adopting a mode of outputting two frames of images for synthesis so as to increase the dynamic range. In the specific design, two frames of images have different exposure times, one frame of image has a long exposure time, and the other frame of image has a short exposure time. One frame of image with a long exposure time can obtain image details clearly in a low-illumination scene, and another frame of image with a short exposure time can obtain image details in a high-illumination scene. The two frames of images are combined, so that a clear image with details of both low-illumination scenes and high-illumination scenes can be obtained. However, in the implementation of the two-frame synthesis, the first frame image needs to be read and stored, and the second frame image needs to be read and then merged. Therefore, in a specific application, the two-frame image synthesis has a problem of motion blur.
Another kind of image sensor solution for this scene is to use different exposure times for different areas in one frame of exposure process, i.e. to control the exposure time so that the output one frame of image contains different exposures, thereby solving the problem of overexposure in the image. However, the existing image fusion method is to fuse the complete scene images with different exposures, that is, to fuse the multi-frame exposure images, and under the condition of the divisional exposure, the different exposure images for fusion only contain a part of the scene, so that the existing image fusion method cannot meet the requirement of the divisional exposure image fusion.
Therefore, in the image processing process such as the image fusion process described above, it is often necessary to perform brightness adjustment on the original image before subsequent processing and application.
Disclosure of Invention
It is therefore an object of the present invention to provide an image brightness adjusting method, an imaging device and a computer storage medium for implementing various image processing applications.
An image brightness adjusting method comprises the following steps:
dividing an original image to be adjusted into a plurality of exposure partitions;
designating an exposure partition as a reference partition for first adjustment; and
and adjusting the brightness of the adjacent exposure subareas according to the reference subarea to enable the brightness of different exposure subareas to be consistent, so as to obtain a brightness adjustment image.
The invention also provides an imaging device, which comprises a processor and a memory, wherein the memory is used for storing at least one instruction, and the processor is used for reading the at least one instruction and executing the method.
The present invention also provides a computer storage medium having at least one instruction stored therein, the at least one instruction being loaded and executed by a processor to implement the method described above.
The invention relates to an image brightness adjusting method, an imaging device and a computer storage medium, wherein an original image to be adjusted is divided into a plurality of exposure subareas; designating an exposure partition as a reference partition for first adjustment; and adjusting the brightness of the adjacent exposure subareas according to the reference subarea to enable the brightness of different exposure subareas to be consistent, and obtaining a brightness adjustment image. . The invention can automatically complete the task of image brightness adjustment without manual intervention, is suitable for gray level images and color images, and is suitable for image brightness adjustment of continuous video images.
In order to make the aforementioned and other objects, features and advantages of the invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
FIG. 1 is a flowchart illustrating the steps of an image brightness adjustment method applied to an on-chip exposure image fusion method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an image corresponding to each step of an on-chip divisional exposure image fusion method to which an image brightness adjustment method according to an embodiment of the present invention is applied;
FIG. 3 is a flowchart illustrating steps of a brightness adjustment method according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating steps of a pixel value mapping method according to an embodiment of the invention;
FIG. 5 is a flowchart illustrating a method for maintaining color saturation according to an embodiment of the present invention;
FIG. 6 is a flowchart illustrating a transition processing method for a join area according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a boundary pixel point in a transition processing method of a join region according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail below with reference to the accompanying drawings and embodiments. It is to be understood that the described embodiments are merely a few embodiments of the invention, and not all embodiments. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
As shown in fig. 1 and fig. 2, an on-chip area exposure image fusion method according to the present invention includes the following steps.
Step S100: the method comprises the steps of carrying out brightness adjustment on an original image Src to be adjusted, dividing the original image Src to be adjusted into a plurality of exposure subareas, designating one exposure subarea as a reference subarea for primary adjustment, and adjusting the brightness of adjacent exposure subareas according to the reference subarea to enable the brightness of different exposure subareas to be consistent, so as to obtain a brightness adjustment image Src _ adj.
Step S200: pixel value mapping is carried out on each partition of the brightness adjusting image Src _ adj, and according to pixel values of pixels to be mapped and other pixels in a set neighborhood where the pixels are located, the pixel values of the pixels of the brightness adjusting image Src _ adj are mapped into the range of [0,2^ n-1], so that a pixel value mapping image Src _ mapping of each partition is obtained. Wherein n is the bit width of the original image Src to be adjusted. In the embodiment of the present invention, n is 8, and thus the pixel value mapping range is [0,255 ]. Those skilled in the art will appreciate that n may take on other bit widths such as 9, 10, 12, etc. in other embodiments.
Step S300: and carrying out color saturation maintenance on the original image Src to be regulated, giving the value of the high-brightness pixel point larger than a set brightness threshold value to the corresponding pixel point in the pixel value mapping image Src _ mapping, weighting the edge pixel point of the assigned high-brightness pixel point in the Src _ mapping image with the value of the pixel point in the set neighborhood, finishing transition processing, and obtaining a color saturation maintenance image Src _ ret.
Step S400: and performing linking area transition processing on adjacent exposure subareas, setting a linking transition area taking a linking boundary as a center in two adjacent exposure subareas, and adjusting the pixel value of a pixel point positioned on one side of the linking boundary to be the weighted sum of the original pixel value and the pixel value of a boundary pixel point adjacent to the linking boundary on the other side of the linking boundary in the linking transition area to complete the fusion of subarea exposure images.
In one embodiment, the color saturation maintaining in step S300 is not necessary, and the transition processing of the connected region in step S400 may be directly performed without performing the color saturation maintaining processing on the original image Src to be adjusted.
As shown in fig. 3, in one embodiment, in the brightness adjustment in step S100, the following steps are specifically included, with the middle partition of the original image Src to be adjusted as the reference partition for the first brightness adjustment.
Step S101: the middle partition of the Src image is selected as the reference partition.
Step S102: and judging whether Src is a gray image or not.
Step S103: and if the Src is a gray level image, assigning the Src image to the original gray level image Src _ gray to be adjusted, and entering step S105, otherwise, entering step S104.
Step S104: the Src image is converted into a gray-scale original image to be adjusted Src _ gray using the following formula (1):
Gray=R*0.299+G*0.587+B*0.114 (1)
wherein, R, G and B are pixel values of R channel, G channel and B channel of the Src image respectively.
Step S105: the average brightness value ave _ ref of the Src _ gray image reference partition (in this embodiment, an overexposed pixel with a pixel value greater than 200 is not considered) and the average brightness value ave _ adj of the neighboring partition to be adjusted (in this embodiment, an overexposed pixel with a pixel value greater than 200 is not considered) are counted.
In the embodiment of the present invention, the average brightness value ave _ ref of the reference partition side of the original to-be-adjusted image Src _ gray near the N rows of the joining boundary and the average brightness value ave _ adj of the adjacent to-be-adjusted partition side near the N rows of the joining boundary are specifically counted.
When the average brightness value ave _ adj of the adjacent to-be-adjusted partitions is counted, firstly, the average value ave _ adj _ all of all pixel points in the N rows is calculated, then, the pixel points with the pixel values smaller than min { (2^ N-1) × A1 and ave _ adj _ all _ A2} in the N rows are considered, N is the bit width of the currently processed image, and finally, the average value of the points is calculated to obtain ave _ adj. Wherein min { (2^ n-1) × A1, ave _ adj _ all × A2} represents taking the smaller of the two values. In one embodiment, the setting parameter A1 is 0.9 and the setting parameter A2 is 1.5.
When the average brightness value ave _ ref of the reference partition is counted, firstly, the average value ave _ ref _ all of all pixel points in the N rows is calculated, then, the pixel points with the pixel values smaller than min { (2^ N-1) × B1 ave _ ref _ all { (2^ N-1) × B2} in the N rows are considered, N is the bit width of the image to be processed currently, and finally, the average value of the points is calculated to obtain ave _ ref. Wherein min { (2^ n-1) × B1, ave _ ref _ all × B2} represents taking the smaller of the two values. In one embodiment, the setting parameter B1 is 0.9 and the setting parameter B2 is 1.5.
The value range of N is [1, min { Height _ region _ adj, Height _ region _ ref } ], wherein Height _ region _ adj represents the Height of an adjacent partition to be adjusted, and Height _ region _ ref represents the Height of a reference partition. If the partition to be adjusted is close to the position of the linking boundary and has a highlight point, N takes a larger value, for example, more than 20 lines, in the value range [1, min { Height _ region _ adj, Height _ region _ ref } ] so as to weaken the influence of the highlight point on the average brightness; otherwise, N is within the above range [1, min { Height _ region _ adj, Height _ region _ ref } ] to take a smaller value, for example, within 10 rows, so as to reduce the amount of computation.
Step S106: and judging whether the difference value of ave _ adj and ave _ ref is smaller than a set first threshold value, wherein in one embodiment, the first threshold value is set to be 0.5, if | ave _ adj-ave _ ref | is smaller than 0.5, the brightness adjustment of the partition to be adjusted is completed, and the step S108 is executed, otherwise, the step S107 is executed.
Step S107: otherwise, calculating a ratio rate of the average brightness values of the reference partition and the partition to be adjusted, that is, rate ═ ave _ ref/ave _ adj, in an embodiment, it is defined that the ratio of the exposure gains of the respective partitions does not exceed 16, that is, the ratio rate is less than or equal to 16, and therefore, if the bit width of the reference partition is 8, the bit width of the pixel value of the partition to be adjusted is extended by 4 bits, that is, the bit width of the pixel value of the partition to be adjusted is 12, and then multiplying the pixel value of the partition to be adjusted of the Src image by the ratio, and entering step S102.
Step S108: and the Src image refers to the adjacent subareas of the subareas, and brightness adjustment is completed, and whether other unadjusted subareas exist is judged.
Step S109: if the brightness adjustment of the adjacent partition of the Src image reference partition is completed and there are other unadjusted partitions, the adjusted partition of the Src image with the adjacent unadjusted partition is used as the reference partition, and the adjacent unadjusted partition is used as the partition to be adjusted, and the process proceeds to step S102.
And if the brightness adjustment of all the subareas is finished, ending the brightness adjustment, and obtaining the brightness adjustment image Src _ adj with the consistent brightness of each subarea.
As shown in fig. 4, in one embodiment, in the pixel value mapping of step S200, calculating a brightness threshold divides pixel points of each partition of the brightness adjustment image Src _ adj into a low brightness point, a medium brightness point and a high brightness point; and according to pixel points to be mapped in each partition of the image Src _ adj and pixel values in a set neighborhood (for example, 9 x 9) of the pixel points, compressing a high dynamic range by adopting a logarithmic equation, and mapping the pixel values to a range of [0,2^ n-1 ].
Step S201: carrying out gray level conversion on each partition of the brightness adjustment image Src _ adj by using a formula (1) to obtain a gray level brightness adjustment image Src _ adj _ gray of each partition of the image Src _ adj, wherein the gray level brightness adjustment image Src _ adj _ gray is used for representing the brightness of the image Src _ adj, and calculating a logarithmic average value lg _ ave of pixel values of the image Src _ adj _ gray by using a following formula (2), namely:
Figure BDA0002964562690000061
where Num is the total number of pixels in the image Src _ adj _ gray, and Src _ adj _ gray (x, y) represents the pixel value of the image Src _ adj _ gray in x rows and y columns, and in one embodiment, the setting parameter α is 0.0001.
Step S202: calculating a brightness threshold value Key, namely:
Figure BDA0002964562690000071
where, grayMax and grayMin denote the maximum pixel value and the minimum pixel value of the image Src _ adj _ gray, respectively.
Step S203: dividing the normalized Src _ adj _ gray image pixel points into low-brightness points, medium-brightness points and high-brightness points according to the brightness threshold Key:
L t =L max -[C1+(1-C1)*Key]*(L max -L min ) (4)
L h =L min +[C2+(1-C2)*(1-Key)]*(L max -L min ) (5)
wherein L is max And L min Respectively the maximum value and the minimum value after normalization of the image Src _ adj _ gray, wherein the pixel value in the normalized image is less than L t The pixel points of (A) are low-brightness points which are more than L h The pixel points of (1) are high-brightness points, and the middle is a middle-brightness point. The value range of C1 is set to be 0.5-1, and the value of C2 is set to be smaller than the value of C1. In one embodiment, C1 is 0.9 and C2 is 0.6.
Step S204: whether the image Src _ adj is a grayscale image is determined.
Step S205: if the image Src _ adj is a gray level image, normalizing the image Src _ adj to obtain a normalized brightness adjustment image Src _ adj _ norm.
Step S206: if the image Src _ adj is a color image, normalizing the three color channels of the image Src _ adj respectively to obtain a normalized brightness adjustment image Src _ adj _ norm.
Step S207: for each pixel point of the normalized image Src _ adj _ norm, the pixel points in a set neighborhood (for example, a window of m × m) with the pixel point as the center are considered, and the ratio rates of low, medium and high brightness points in the window are respectively calculated l ,rate m ,rate h
Step S208: mapping pixel values of the low, medium and high brightness points by using the following formula (6); namely:
Figure BDA0002964562690000072
wherein the parameter s i ,q i ,k i Is a positive value greater than 1, i ∈ [ l, m, h]Corresponding to low, medium and high brightness points, respectively, parameter s i The value increases from the low brightness point to the high brightness point, and the parameter q i 、k i The value decreases from the low brightness point to the high brightness point, L n Is the pixel value, L, of the image Src _ adj _ norm nmax Is the maximum pixel value, L, of the image Src _ adj _ norm i Is the value after mapping. In one embodiment, s i Has a value in the range of 2 to 15, q i Has a value in the range of 20 to 500, k i The value range of (A) is 20-500. In one embodiment, s of the low luminance point, the medium luminance point and the high luminance point i ,q i ,k i The values of (d) are shown in table 1.
Is low in s l =2 q l =50 k l =50
In s m =5 q m =45 k m =45
Height of s h =5 q h =30 k h =30
Table 1
Step S209: normalizing each pixel point of the image Src _ adj _ norm according to three groups of different s i ,q i ,k i Value, calculating the mapping value L of low brightness point, middle brightness point and high brightness point l ,L m ,L h And thus obtaining the mapping value of the pixel point of the image Src _ adj as follows:
L=(L l *rate l +L m *rate m +L h *rate h )*(2^n-1) (7)
in one embodiment, the pixel value mapped image is denoted as Src mapping.
As shown in fig. 5, in one embodiment, in the color saturation maintenance of step S300, in the original image Src to be adjusted, the value of the high-brightness pixel point that is greater than the set brightness threshold is assigned to the pixel value to map the corresponding pixel point in the image Src _ mapping, and the edge pixel point of the high-brightness pixel point assigned to the Src _ mapping image is weighted with the value of the pixel point in the set neighborhood, so as to complete the transition processing.
Step S301: creating a template image Mask, initializing a pixel value of the Mask image to be 0, traversing the Gray image, if the pixel value is greater than (2^ n-1) × D1, for example, when n is 8 and a parameter D1 is set to be 0.8, if the pixel value is greater than 200, setting the pixel value of the position corresponding to the pixel value in the Mask image to be 255, and setting the pixel value of the position corresponding to the Src _ mapping image to be the value of the pixel point at the same position of the Src image. In this embodiment, the bit width of the template image Mask is greater than or equal to 8.
Step S302: the Mask image is subjected to morphological dilation processing, and is subjected to mean filtering of a set neighborhood (e.g., 11 × 11).
Step S303: traversing the Mask image, and when the pixel value of the Mask image is not 0 and not 255, adjusting the pixel value of the corresponding position in the Src _ mapping image as shown in formula (8), that is:
Figure BDA0002964562690000081
where, (x, y) represents pixel point positions in the Mask image whose median is not 0 and is not 255.
In one embodiment, the image after the color saturation preserving process is denoted Src _ ret.
As shown in fig. 6 and 7, in one embodiment, the transition processing of the splicing region in step S400 specifically includes the following steps.
Step S401: and setting the first boundary pixel point (x1, y1) and the second boundary pixel point (x2, y2) as boundary pixel points on two sides of the connection boundary position of the adjacent first exposure subarea and the second exposure subarea respectively.
Step S402: at the (x1, y1) side, in the set splicing transition region, splicing M, such as 20, pixel point sets { (x _ t 1) in the radial direction of the edge i ,y_t1 i ) And i equals to 1,2, …,20}, and processing a pixel point at a corresponding position in the Src _ ret image according to the following formula (9):
Figure BDA0002964562690000091
wherein Dis1 represents the pixel distance of the currently processed pixel distance (x2, y 2); src _ ret (x2, y2) is the pixel of the second border pixel point (x2, y2) that holds the image at color saturation.
Step S403: at the (x2, y2) side, in the set splicing transition region, splicing M, such as 20, pixel point sets { (x _ t 2) in the radial direction of the edge i ,y_t2 i ) And i equals to 1,2, …,20}, and processing a pixel point at a corresponding position in the Src _ ret image according to the following formula (10):
Figure BDA0002964562690000092
wherein Dis2 represents the pixel distance of the currently processed pixel distance (x1, y 1); src _ ret (x1, y1) is the pixel value of the first boundary pixel (x1, y1) at which the image is maintained at color saturation.
Step S404: and carrying out Gaussian filtering on the connection transition region.
The invention discloses an in-chip partition exposure image fusion method, which is characterized in that brightness adjustment is carried out on an original image to be adjusted; carrying out pixel value mapping on the brightness adjusting image; maintaining the color saturation of the original image to be adjusted; and carrying out transition processing on the adjacent exposure subareas in the connection area, thereby realizing the fusion of the subarea exposure images. The invention can automatically complete the fusion task of the subarea exposure image without manual intervention, is suitable for gray level images and color images, and is suitable for the subarea exposure fusion of continuous video images.
In some embodiments, there is also provided an imaging device, including a processor and a memory, where the memory stores a plurality of instructions, and the processor is configured to read the plurality of instructions and execute the image brightness adjusting method, for example, including: dividing an original image to be adjusted into a plurality of exposure subareas; designating an exposure partition as a reference partition for first adjustment; and adjusting the brightness of the adjacent exposure subareas according to the reference subarea to enable the brightness of different exposure subareas to be consistent, and obtaining a brightness adjustment image. .
In some embodiments, there is also provided a computer readable storage medium storing a plurality of instructions readable by a processor and executable by the processor to perform the on-chip zoned exposure image fusion method described above, for example, comprising: dividing an original image to be adjusted into a plurality of exposure partitions; designating an exposure partition as a reference partition for first adjustment; and adjusting the brightness of the adjacent exposure subareas according to the reference subareas to enable the brightness of different exposure subareas to be consistent, so as to obtain a brightness adjustment image. .
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, the recitation of an element by the phrase "comprising an … …" does not exclude the presence of additional like elements in the process, method, article, or apparatus that comprises the element, and further, where similarly-named elements, features, or elements in different embodiments of the invention may have the same meaning, or may have different meanings, that particular meaning should be determined by their interpretation in the embodiment or further by context with the embodiment.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope herein. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context. Also, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context indicates otherwise. It will be further understood that the terms "comprises," "comprising," "includes" and/or "including," when used in this specification, specify the presence of stated features, steps, operations, elements, components, items, species, and/or groups, but do not preclude the presence, or addition of one or more other features, steps, operations, elements, components, species, and/or groups thereof. The terms "or" and/or "as used herein are to be construed as inclusive or meaning any one or any combination. Thus, "A, B or C" or "A, B and/or C" means "any of the following: a; b; c; a and B; a and C; b and C; A. b and C ". An exception to this definition will occur only when a combination of elements, functions, steps or operations are inherently mutually exclusive in some way.
The present invention is not limited to the above preferred embodiments, and any modification, equivalent replacement or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (12)

1. An image brightness adjusting method is characterized by comprising the following steps:
dividing an original image to be adjusted into a plurality of exposure subareas;
designating an exposure partition as a reference partition for first adjustment; and
and adjusting the brightness of the adjacent exposure subareas according to the reference subareas, so that the brightness of different exposure subareas is consistent, and obtaining a brightness adjustment image.
2. The image brightness adjustment method according to claim 1, wherein the brightness adjustment includes the steps of:
and taking the middle subarea of the original image to be adjusted as a reference subarea for brightness adjustment.
3. The image brightness adjustment method according to claim 1, wherein the brightness adjustment includes the steps of:
and if the original image to be adjusted is a color image, converting the original image to be adjusted into a gray original image to be adjusted.
4. The image brightness adjustment method according to claim 3, characterized in that it is converted into a gray-scale original image to be adjusted according to the following formula:
Gray=R*0.299+G*0.587+B*0.114
wherein, R, G and B are pixel values of red pixels, green pixels and blue pixels in the original image to be adjusted respectively.
5. The image brightness adjustment method according to claim 1, wherein the brightness adjustment further comprises the steps of:
counting the average brightness value of the partition to be adjusted and the average brightness value of the reference partition, and calculating the ratio of the average brightness value of the reference partition to the average brightness value of the partition to be adjusted;
judging the difference value between the average brightness value of the partition to be regulated and the average brightness value of the reference partition; and
and if the absolute value of the difference value between the average brightness value of the to-be-adjusted partition and the average brightness value of the reference partition is smaller than the set first threshold, the brightness adjustment of the to-be-adjusted partition is finished.
6. The image brightness adjustment method according to claim 5, wherein the brightness adjustment includes the steps of:
if the difference value between the average brightness value of the to-be-adjusted partition and the average brightness value of the reference partition is larger than the first threshold, calculating the ratio of the average brightness values of the reference partition and the to-be-adjusted partition; and
and multiplying the pixel value of the subarea to be adjusted by the ratio.
7. The image brightness adjustment method according to claim 6, wherein the counting the average brightness values of the partitions to be adjusted and the average brightness value of the reference partition means:
and counting the average brightness value (ave _ ref) of the N rows close to the joint boundary on the side of the reference partition of the original image to be adjusted and counting the average brightness value (ave _ adj) of the N rows close to the joint boundary on the side of the adjacent partition to be adjusted of the original image to be adjusted.
8. The image luminance adjustment method according to claim 7, wherein the step of counting the average luminance values (ave _ ref) of the N rows near the border between the reference partition side of the original image to be adjusted comprises:
when the average brightness value (ave _ adj) of the adjacent to-be-adjusted partition is counted, firstly calculating the average value (ave _ adj _ all) of all pixel points in N rows, then considering the pixel points of which the pixel values in the N rows are smaller than min { (2^ N-1) × A1 and ave _ adj _ all _ A2}, wherein N is the bit width of the current processed image, and finally calculating the average value of the pixel points to obtain the average brightness value (ave _ adj) of the adjacent to-be-adjusted partition;
wherein, min { (2^ n-1) × A1, ave _ adj _ all × A2} represents to take the smaller of the two values, A1 and A2 are set parameters;
the value range of N is [1, min { Height _ region _ adj, Height _ region _ ref } ], wherein Height _ region _ adj represents the Height of an adjacent partition to be adjusted, and Height _ region _ ref represents the Height of a reference partition.
9. The image brightness adjustment method according to claim 7, wherein the step of counting the average brightness value (ave _ adj) of the adjacent partition to be adjusted side of the original image to be adjusted near the N rows of the joining boundary comprises:
when the average brightness value (ave _ ref) of the reference partition is counted, firstly calculating the average value (ave _ ref _ all) of all pixel points in N rows, then considering the pixel points of which the pixel values in the N rows are smaller than min { (2^ N-1) × B1 and ave _ ref _ all × B2}, wherein N is the bit width of the currently processed image, and finally calculating the average value of the pixel points to obtain the average brightness value (ave _ ref) of the reference partition;
wherein, min { (2^ n-1) × B1, ave _ ref _ all × B2} represents to take the smaller one of the two values, and B1 and B2 are set parameters;
the value range of N is [1, min { Height _ region _ adj, Height _ region _ ref } ], wherein Height _ region _ adj represents the Height of an adjacent partition to be adjusted, and Height _ region _ ref represents the Height of a reference partition.
10. The image brightness adjustment method according to claim 1, wherein the brightness adjustment includes the steps of:
and if the brightness adjustment of the adjacent partitions of the reference partition is finished and other unadjusted partitions exist, taking the adjusted partition of the adjacent unadjusted partition in the original image to be adjusted as the reference partition, and taking the adjacent unadjusted partition as the partition to be adjusted for brightness adjustment.
11. An imaging apparatus comprising a processor and a memory, the memory storing at least one instruction, the processor configured to read the at least one instruction and perform the method of any one of claims 1 to 10.
12. A computer storage medium having stored therein at least one instruction which is loaded and executed by a processor to implement the method of any one of claims 1-10.
CN202110247357.XA 2021-03-05 2021-03-05 Image brightness adjusting method, imaging device and computer storage medium Active CN115037882B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110247357.XA CN115037882B (en) 2021-03-05 2021-03-05 Image brightness adjusting method, imaging device and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110247357.XA CN115037882B (en) 2021-03-05 2021-03-05 Image brightness adjusting method, imaging device and computer storage medium

Publications (2)

Publication Number Publication Date
CN115037882A true CN115037882A (en) 2022-09-09
CN115037882B CN115037882B (en) 2024-02-20

Family

ID=83118063

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110247357.XA Active CN115037882B (en) 2021-03-05 2021-03-05 Image brightness adjusting method, imaging device and computer storage medium

Country Status (1)

Country Link
CN (1) CN115037882B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101245247B1 (en) * 2012-08-30 2013-03-19 재단법인대구경북과학기술원 The method and device for adjusting brightness of image and multiple camera using that
CN104125410A (en) * 2014-07-02 2014-10-29 深圳英飞拓科技股份有限公司 Panoramic video multi-lens exposure compensation method and device thereof
US20150116376A1 (en) * 2013-10-31 2015-04-30 Canon Kabushiki Kaisha Display apparatus and control method therefor
CN106570838A (en) * 2016-10-28 2017-04-19 成都西纬科技有限公司 Image brightness optimization method and device
CN107492335A (en) * 2017-09-26 2017-12-19 惠科股份有限公司 Method, structure and the repair system of image compensation signal generation
WO2018105097A1 (en) * 2016-12-09 2018-06-14 三菱電機株式会社 Image synthesis device, image synthesis method, and image synthesis program
CN108377345A (en) * 2018-04-11 2018-08-07 浙江大华技术股份有限公司 A kind of exposure parameter values determine method, apparatus, multi-lens camera and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101245247B1 (en) * 2012-08-30 2013-03-19 재단법인대구경북과학기술원 The method and device for adjusting brightness of image and multiple camera using that
US20150116376A1 (en) * 2013-10-31 2015-04-30 Canon Kabushiki Kaisha Display apparatus and control method therefor
CN104125410A (en) * 2014-07-02 2014-10-29 深圳英飞拓科技股份有限公司 Panoramic video multi-lens exposure compensation method and device thereof
CN106570838A (en) * 2016-10-28 2017-04-19 成都西纬科技有限公司 Image brightness optimization method and device
WO2018105097A1 (en) * 2016-12-09 2018-06-14 三菱電機株式会社 Image synthesis device, image synthesis method, and image synthesis program
CN107492335A (en) * 2017-09-26 2017-12-19 惠科股份有限公司 Method, structure and the repair system of image compensation signal generation
CN108377345A (en) * 2018-04-11 2018-08-07 浙江大华技术股份有限公司 A kind of exposure parameter values determine method, apparatus, multi-lens camera and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
辛浪;刘钧;袁渊;: "基于图像分割和局部亮度调整的微光图像颜色传递算法", 应用光学, no. 02 *

Also Published As

Publication number Publication date
CN115037882B (en) 2024-02-20

Similar Documents

Publication Publication Date Title
JP5832855B2 (en) Image processing apparatus, imaging apparatus, and image processing program
CN112565636B (en) Image processing method, device, equipment and storage medium
US8284271B2 (en) Chroma noise reduction for cameras
JP5677113B2 (en) Image processing device
RU2496250C1 (en) Image processing apparatus and method
WO2021143300A1 (en) Image processing method and apparatus, electronic device and storage medium
US20140267883A1 (en) Method of selecting a subset from an image set for generating high dynamic range image
CN111209775B (en) Signal lamp image processing method, device, equipment and storage medium
JP2013530657A (en) High dynamic range image capture and rendering
CN113888437A (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
JP2012054827A (en) Image processor, image processing method and program
JP5804856B2 (en) Image processing apparatus, image processing method, and program
CN112351218A (en) Automatic exposure method, device, electronic equipment and computer readable storage medium
CN112907497B (en) Image fusion method and image fusion device
WO2017099150A1 (en) Image processing apparatus and method, program, and recording medium
JP2013058859A (en) Image processor, image processing method, and program
CN114820405A (en) Image fusion method, device, equipment and computer readable storage medium
CN113748426A (en) Content aware PQ range analyzer and tone mapping in real-time feeds
CN111724447B (en) Image processing method, system, electronic equipment and storage medium
CN113163127B (en) Image processing method, device, electronic equipment and storage medium
CN115037882B (en) Image brightness adjusting method, imaging device and computer storage medium
CN115018714A (en) Image pixel value mapping method, imaging device and computer storage medium
CN115018743A (en) On-chip partition exposure image fusion method, imaging device and computer storage medium
CN113222869B (en) Image processing method
WO2023110880A1 (en) Image processing methods and systems for low-light image enhancement using machine learning models

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant