CN115037882B - 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
CN115037882B
CN115037882B CN202110247357.XA CN202110247357A CN115037882B CN 115037882 B CN115037882 B CN 115037882B CN 202110247357 A CN202110247357 A CN 202110247357A CN 115037882 B CN115037882 B CN 115037882B
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.)
Active
Application number
CN202110247357.XA
Other languages
Chinese (zh)
Other versions
CN115037882A (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

Landscapes

  • Image Processing (AREA)

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 subareas so that the brightness of different exposure subareas is consistent, and obtaining a brightness adjustment image. The invention can automatically complete the image brightness adjustment task without manual intervention, is suitable for gray level images and color images, and is suitable for adjusting the image brightness 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 sensors, 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 and shooting application occasions, the brightness of the traffic signal lamp after being started is equal to the surrounding environment, and the brightness is brighter. When the image sensor is used for video monitoring shooting of a scene containing traffic lights, the problem that the traffic lights are overexposed when shooting is late because the traffic lights are slightly red when the traffic lights are in cloudy weather and the color of the traffic lights is off (other color channels except red are overexposed) is easy to occur. The reason for this problem is mainly that the current image sensor design is generally linear, the illumination range detected by the linear image sensor is small, and all signals from the low-illumination environment to the high-light environment cannot be collected, so that the output dynamic range cannot meet the brightness range of the traffic light and the surrounding environment at the same time. To solve the above-mentioned problems, it is necessary to increase the dynamic range of the output image of the image sensor to meet the application requirements of different scenes.
The mode of improving the dynamic range of the output of the image sensor generally adopts a mode of outputting two frames of images for synthesis to improve the dynamic range. In a specific design, two frames of images have different exposure times, one frame of images has long exposure time, and the other frame of images has short exposure time. One frame of image with long exposure time can clearly obtain image details in a low-illumination scene, and the other frame of image with short exposure time can obtain image details in a high-illumination scene. And combining the two frames of images to obtain a clear image with one frame containing details of both the low-illumination scene and the high-illumination scene. However, in the implementation manner of two-frame synthesis, the first frame image needs to be read and stored, and the second frame image needs to be read and then combined. Thus, in a specific application, the problem of motion blur occurs in the two-frame image synthesis.
Another solution of an image sensor for this scene is to use different exposure times for different areas in a frame exposure process, that is, by controlling the exposure time, the output frame image contains different exposures, so as to solve the overexposure problem in the image. However, the existing image fusion method is to fuse the complete scene images with different exposures, namely fusion of multiple frames of exposure images, and under the condition of partition exposure, the different exposure images used for fusion only contain a part of the scene, so that the existing image fusion method cannot meet the requirement of partition exposure image fusion.
Therefore, in image processing such as the above-described image fusion processing, it is often necessary to perform brightness adjustment on an original image before subsequent processing and application can be performed.
Disclosure of Invention
The present invention is directed to an image brightness adjustment method, an imaging apparatus, and a computer storage medium, which are required to realize various image processing applications.
An image brightness adjustment method, comprising the steps of:
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 as to enable the brightness of different exposure subareas to be consistent and obtain a brightness adjustment image.
The invention also provides an imaging device comprising a processor and a memory, wherein the memory stores 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 stored therein at least one instruction that is loaded and executed by a processor to implement the above-described method.
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 subareas so that the brightness of different exposure subareas is consistent, and obtaining a brightness adjustment image. . The invention can automatically complete the image brightness adjustment task without manual intervention, is suitable for gray level images and color images, and is suitable for adjusting the image brightness of continuous video images.
The foregoing and other objects, features and advantages of the invention will be apparent from the following more particular description of preferred embodiments, as illustrated in the accompanying drawings.
Drawings
FIG. 1 is a flowchart showing steps of an image brightness adjustment method applied to an intra-chip exposure image fusion method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an image brightness adjustment method applied to an image corresponding to each step of an intra-chip exposure image fusion method according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating steps of a brightness adjustment method according to an embodiment of the invention;
FIG. 4 is a flowchart illustrating a pixel value mapping method according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating steps of a color saturation maintaining method according to an embodiment of the present invention;
FIG. 6 is a flowchart illustrating a method for transition processing of a join region according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of boundary pixels in a transition processing method of a junction region according to an embodiment of the invention.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the described embodiments are merely some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
As shown in fig. 1 and 2, the intra-chip area exposure image fusion method of the present invention includes the following steps.
Step S100: and carrying out brightness adjustment on the original image Src to be adjusted, dividing the original image Src to be adjusted into a plurality of exposure subareas, designating an exposure subarea as a reference subarea for first adjustment, and adjusting the brightness of adjacent exposure subareas according to the reference subarea so as to enable the brightness of different exposure subareas to be consistent and obtain a brightness adjustment image src_adj.
Step S200: and mapping pixel values of all the partitions of the brightness adjustment image src_adj into a range of [0, 2-n-1 ] according to pixel values of the pixel points to be mapped and pixel values of other pixel points in a set neighborhood of the pixel points to be mapped, and obtaining a pixel value mapping image src_mapping of all the partitions. Where 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 in other embodiments n may take other bit widths of 9, 10, 12, etc.
Step S300: and (3) maintaining the color saturation of the original image Src to be adjusted, endowing the pixel value with a value of a high-brightness pixel point larger than a set brightness threshold value to a corresponding pixel point in the image src_mapping, weighting the edge pixel point of the high-brightness pixel point assigned in the src_mapping image and the value of the pixel point in a set neighborhood, and completing transition processing to obtain a color saturation maintaining image src_ret.
Step S400: and carrying out joint area transition treatment on the adjacent exposure subareas, setting joint transition areas taking joint boundaries as centers in the two adjacent exposure subareas, and adjusting the pixel values of the pixel points positioned on one side of the joint boundaries into the weighted sum of the original pixel values and the pixel values of the boundary pixel points adjacent to the joint boundaries on the other side of the joint boundaries in the joint transition areas to finish fusion of the subarea exposure images.
In one embodiment, the color saturation maintenance in step S300 is not necessary, and the transition processing of the junction region in step S400 may be directly performed without performing the color saturation maintenance processing on the original image Src to be adjusted.
As shown in fig. 3, in one embodiment, in the brightness adjustment of step S100, the middle partition of the original image Src to be adjusted is taken as the reference partition of the first brightness adjustment, which specifically includes the following steps.
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: if Src is the gray level image, assigning the Src image to the original gray level image src_gray to be adjusted, and proceeding to step S105, otherwise proceeding to step S104.
Step S104: converting the Src image into a gray original image src_gray to be adjusted by using the following formula (1):
Gray=R*0.299+G*0.587+B*0.114 (1)
wherein R, G, B are pixel values of R channel, G channel, B channel of Src image respectively.
Step S105: the average luminance value ave_ref of the src_gray image reference partition (in this embodiment, overexposed pixels with pixel values greater than 200 are not considered) and the average luminance value ave_adj of the adjacent partition to be adjusted (in this embodiment, overexposed pixels with pixel values greater than 200 are not considered) are counted.
In the embodiment of the present invention, the average brightness value ave_ref of the row near the linking boundary N on one side of the reference partition of the original image src_gray to be adjusted and the average brightness value ave_adj of the row near the linking boundary N on one side of the adjacent partition to be adjusted are counted.
When the average brightness value ave_adj of adjacent partitions to be adjusted is counted, firstly, calculating the average ave_adj_all of all pixel points in N rows, then considering the pixel points with the pixel values smaller than min { (2N-1) A1 and ave_adj_all ×A2} in the N rows, wherein N is the bit width of the current processed image, and finally calculating the average value of the points to obtain ave_adj. Wherein min { (2 ζ -1) ×a1, ave_adj_all×a2} represents the smaller of the two values. In one embodiment, the setting parameter A1 is taken to be 0.9 and the setting parameter A2 is taken to be 1.5.
When the average brightness value ave_ref of the reference partition is counted, firstly, the average ave_ref_all of all pixel points in N rows are calculated, then, the pixel points with the pixel values smaller than min { (2N-1) ×b1ave_ref_all ×b2} in the N rows are considered, N is the bit width of the current processed image, and finally, the average value of the points is calculated to obtain ave_ref. Wherein min { (2 ζ -1) B1, ave_ref_all×b2} represents the smaller of the two values. In one embodiment, setting parameter B1 is 0.9 and 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 the adjacent partition to be adjusted, and height_region_ref represents the Height of the reference partition. If the position of the partition to be regulated close to the joint boundary has a highlight point, N takes a larger value, such as 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 may take a smaller value within the value range [1, min { height_region_adj, height_region_ref } ], for example, within 10 rows, so as to reduce the operation amount.
Step S106: it is determined whether the difference between ave_adj and ave_ref is smaller than the set first threshold, and in one embodiment, the first threshold is set to 0.5, if |ave_adj-ave_ref| <0.5, the brightness adjustment of the partition to be adjusted is completed, and step S108 is entered, otherwise, step S107 is entered.
Step S107: otherwise, calculating a ratio rate of the average brightness value of the reference partition and the partition to be adjusted, that is, rate=ave_ref/ave_adj, in one embodiment, defining that the ratio of the exposure gains of each partition is not more than 16, that is, the ratio rate is less than or equal to 16, so if the bit width of the reference partition is 8, expanding the bit width of the pixel value of the partition to be adjusted by 4 bits, that is, the bit width of the pixel value of the partition to be adjusted is 12, and multiplying the pixel value of the partition to be adjusted by the ratio, and then, entering step S102.
Step S108: and (5) finishing brightness adjustment of the adjacent subareas of the Src image reference subareas, and judging whether other unadjusted subareas exist.
Step S109: if the brightness adjustment of the adjacent partition of the Src image reference partition is completed and other non-adjusted partitions exist, the adjusted partition of the Src image with the adjacent non-adjusted partition is used as the reference partition, and the adjacent non-adjusted partition is used as the partition to be adjusted, and the step S102 is performed.
And if the brightness adjustment of all the subareas is completed, finishing the brightness adjustment to obtain brightness adjustment images src_adj with consistent brightness of all the subareas.
As shown in fig. 4, in one embodiment, in the pixel value mapping of step S200, a brightness threshold is calculated to divide the 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 the pixel points to be mapped in each partition of the image src_adj and the pixel values in the set neighborhood (such as 9*9), adopting a logarithmic equation to realize compression of a high dynamic range, and mapping the pixel values to the [0, 2-n-1 ] range, wherein the method comprises the following steps.
Step S201: using formula (1), gray scale conversion is performed on each partition of the brightness adjustment image src_adj to obtain gray scale brightness adjustment images src_adj_gray of each partition of the image src_adj, which are used for representing brightness of the image src_adj, and using the following formula (2), a logarithmic average value lg_ave of pixel values of the image src_adj_gray is calculated, namely:
where Num is the total number of pixels of the image src_adj_gray, 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 α takes 0.0001.
Step S202: calculating a brightness threshold Key, namely:
where grayMax and grayMin represent the maximum pixel value and the minimum pixel value of the image src_adj_gray, respectively.
Step S203: dividing normalized src_adj_gray image pixel points into low-brightness points, medium-brightness points and high-brightness points according to a 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 of the normalized image src_adj_gray, wherein the pixel value in the normalized image is smaller than L t The pixel point of (2) is a low brightness point, which is larger than L h The pixel points of (2) are high brightness points, and the middle brightness point is arranged in the middle. Wherein, the value range of C1 is set to be between 0.5 and 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: it is determined whether the image src_adj is a grayscale image.
Step S205: if the image src_adj is a gray scale 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 to obtain a normalized brightness adjustment image src_adj_norm.
Step S207: for each pixel point of the normalized image src_adj_norm, calculating the ratio rate of low, medium and high brightness points in the window by considering the pixel point in a set neighborhood (such as a window with m) taking the pixel point as the center l ,rate m ,rate h
Step S208: mapping the pixel values of the low, medium and high brightness points by using the following formula (6); namely:
wherein parameter s i ,q i ,k i Is a positive value greater than 1, i is E [ l, m, h]Parameters s corresponding to low luminance point, medium luminance point and high luminance point respectively i The value increases from low luminance point to high luminance point, parameter q i 、k i The value is decreased from low brightness point to high brightness point, L n For the pixel value, L, of the image src_adj_norm nmax Is the maximum pixel value of the image src_adj_norm, L i Is the value after mapping. In one embodiment, s i The value range of (2) is 2-15, q i The value of (2) is 20-500, k i The range of the value of (2) is 20-500. In one embodiment, s is a low luminance point, a medium luminance point and a high luminance point i ,q i ,k i Is shown in the value table 1 of the (c).
Low and low s l =2 q l =50 k l =50
In (a) s m =5 q m =45 k m =45
High height s h =5 q h =30 k h =30
Table 1
Step S209: normalized image src_adj_norm, according to three different sets of s i ,q i ,k i Calculating the value of the mapping value L of the low brightness point, the middle brightness point and the high brightness point l ,L m ,L h The mapping value of the image src_adj pixel point is obtained as follows:
L=(L l *rate l +L m *rate m +L h *rate h )*(2^n-1) (7)
in one embodiment, the mapped image of pixel values is denoted 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, a value of a high-brightness pixel point greater than a set brightness threshold is assigned to a corresponding pixel point in the pixel value mapping image src_mapping, and the edge pixel point of the assigned high-brightness pixel point in the src_mapping image and the value of a pixel point in a set neighborhood are weighted 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=8 and the setting parameter D1 is 0.8, if the pixel value is greater than 200, setting a pixel value of a position corresponding to the pixel value in the Mask image to be 255, and setting a pixel value of a position corresponding to the src_mapping image to be a value of a pixel point of the same position of the Src image. In this embodiment, the bit width of the template image Mask is 8 or more.
Step S302: morphological dilation processing is performed on the Mask image, and mean filtering of a set neighborhood (such as 11×11) is performed on the Mask image.
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), namely:
where (x, y) represents a pixel position where the median value of the Mask image is not 0 and is not 255.
In one embodiment, the image after the color saturation preservation process is denoted src_ret.
As shown in fig. 6 and 7, in one embodiment, the following steps are specifically included in the joint region transition process of step S400.
Step S401: the first boundary pixel point (x 1, y 1) and the second boundary pixel point (x 2, y 2) are respectively arranged as boundary pixel points at two sides of the joint boundary position of the adjacent first exposure partition and second exposure partition.
Step S402: on the (x 1, y 1) side, in the set joint transition region, M radial joint edges, such as 20 pixel point sets { (x_t1) i ,y_t1 i ) I=1, 2, …,20}, and processing the pixel point at the corresponding position in the src_ret image by the following formula (9):
wherein Dis1 represents the pixel distance of the currently processed pixel point distance (x 2, y 2); src_ret (x 2, y 2) is the pixel of the second boundary pixel point (x 2, y 2) that holds the image at color saturation.
Step S403: on the (x 2, y 2) side, in the set joint transition region, M radial joint edges, such as 20 pixel point sets { (x_t2) i ,y_t2 i ) I=1, 2, …,20}, and processing the pixel point at the corresponding position in the src_ret image by the following formula (10):
wherein Dis2 represents the pixel distance of the currently processed pixel point distance (x 1, y 1); src_ret (x 1, y 1) is the pixel value of the first boundary pixel point (x 1, y 1) that holds the image at color saturation.
Step S404: the junction transition region is gaussian filtered.
The intra-chip subarea exposure image fusion method of the invention carries out brightness adjustment on an original image to be adjusted; performing pixel value mapping on the brightness adjustment image; maintaining color saturation of an original image to be adjusted; and carrying out joint region transition treatment on adjacent exposure subareas, so that fusion of subarea exposure images can be realized. The invention can automatically complete the fusion task of the subarea exposure images without manual intervention, is suitable for gray level images and color images, and is suitable for subarea exposure fusion of continuous video images.
In some embodiments, there is also provided an imaging apparatus including a processor and a memory, the memory storing a plurality of instructions, the processor being configured to read the plurality of instructions and perform the above-described image brightness adjustment 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 subareas so that the brightness of different exposure subareas is 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 performing the intra-chip area exposure image fusion method described above, for example, comprising: 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 subareas so that the brightness of different exposure subareas is consistent, and obtaining a brightness adjustment image. .
The technical features of the above-described embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above-described embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
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 element defined by the phrase "comprising one … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element, and furthermore, elements having the same name in different embodiments of the invention may have the same meaning or may have different meanings, the particular meaning of which is to be determined by its interpretation in this particular embodiment or by further combining the context of this particular embodiment.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, these information should not be limited by 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 "at … …" or "responsive to a determination", depending on the context. Furthermore, 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" specify the presence of stated features, steps, operations, elements, components, items, categories, and/or groups, but do not preclude the presence, presence or addition of one or more other features, steps, operations, elements, components, items, categories, and/or groups. 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, A is as follows; b, a step of preparing a composite material; c, performing operation; 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 in some way inherently mutually exclusive.
The foregoing description of the preferred embodiments of the invention is not intended to be limiting, but rather is intended to cover all modifications, equivalents, or alternatives falling within the spirit and principles of the invention.

Claims (9)

1. An image brightness adjustment method, characterized by comprising the steps of:
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 subareas so that the brightness of different exposure subareas is consistent to obtain a brightness adjustment image;
wherein the brightness adjustment further comprises:
counting the average brightness value of the subarea to be regulated and the average brightness value of the reference subarea;
wherein, the statistics of the average brightness value of the to-be-adjusted partition refers to statistics of the average brightness value (ave_adj) of N rows of adjacent to-be-adjusted partition sides of the original to-be-adjusted image close to the joint boundary;
wherein, the statistics of average brightness values (ave_adj) of the adjacent to-be-adjusted partitions of the original to-be-adjusted image, which are close to the N rows of the linking boundary, includes: 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 with the pixel values smaller than min { (2N-1) A1 and ave_adj_all ×A2} in the N rows, 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 ζ -1) ×a1, ave_adj_all×a2} represents taking the smaller of the two values, A1 and A2 being the set parameters;
the value range of N is [1, min { height_region_adj, height_region_ref } ], wherein the height_region_adj represents the Height of the adjacent partition to be adjusted, and the height_region_ref represents the Height of the reference partition;
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
if the absolute value of the difference value between the average brightness value of the partition to be regulated and the average brightness value of the reference partition is smaller than a set first threshold value, the brightness regulation of the partition to be regulated is completed, and if the difference value between the average brightness value of the partition to be regulated and the average brightness value of the reference partition is larger than the first threshold value, the ratio of the average brightness values of the reference partition and the partition to be regulated is calculated; and
the pixel value of the partition to be adjusted is multiplied by the ratio.
2. The image brightness adjustment method according to claim 1, wherein the brightness adjustment comprises the steps of:
the middle partition of the original image to be adjusted is taken as a reference partition for brightness adjustment.
3. The image brightness adjustment method according to claim 1, wherein the brightness adjustment comprises the steps of:
and if the original image to be regulated is a color image, converting the color image into a gray original image to be regulated.
4. A method of image brightness adjustment according to claim 3, characterized in that it is converted into a grey-scale raw image to be adjusted according to the following formula:
Gray=R*0.299+G*0.587+B*0.114
wherein R, G, B are the pixel values of red pixel, green pixel and blue pixel in the original image to be adjusted respectively.
5. The image brightness adjustment method according to claim 4, wherein the "average brightness value of the statistical reference partition" means:
the average brightness value (ave_ref) of the reference partition side of the original image to be adjusted, which is close to the joint boundary N lines, is counted.
6. The image brightness adjustment method according to claim 5, wherein counting an average brightness value (ave_ref) of N lines on a side of a reference partition of the original image to be adjusted near the joining boundary comprises:
when the average brightness value (ave_ref) of the reference partition is counted, firstly calculating the average value (ave_ref_al) of all pixel points in N rows, then considering the pixel points with the pixel values smaller than min { (2N-1) B1 and ave_ref_all ×B2} in N rows, 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_ref) of the reference partition;
wherein, min { (2 ζ -1) ×b1, ave_ref_al_lb2 } represents taking the smaller one of the two values, B1 and B2 being the set parameters;
the value range of N is [1, min { height_region_adj, height_region_ref } ], wherein height_region_adj represents the Height of the adjacent partition to be adjusted, and height_region_ref represents the Height of the reference partition.
7. The image brightness adjustment method according to claim 1, wherein the brightness adjustment comprises the steps of:
and if the brightness adjustment of the adjacent partitions of the reference partition is finished and other non-adjusted partitions exist, taking the adjusted partition with the adjacent non-adjusted partition in the original image to be adjusted as the reference partition, and taking the adjacent non-adjusted partition as the partition to be adjusted to perform the brightness adjustment.
8. An imaging device 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 7.
9. A computer storage medium having stored therein at least one instruction that is loaded and executed by a processor to implement the method of any of claims 1-7.
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 CN115037882A (en) 2022-09-09
CN115037882B true 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 (6)

* 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
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 restoration system for generating image compensation signal
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6598430B2 (en) * 2013-10-31 2019-10-30 キヤノン株式会社 Display device, display device control method, and program

Patent Citations (6)

* 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
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 restoration system for generating image compensation signal
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
基于图像分割和局部亮度调整的微光图像颜色传递算法;辛浪;刘钧;袁渊;;应用光学(02);全文 *

Also Published As

Publication number Publication date
CN115037882A (en) 2022-09-09

Similar Documents

Publication Publication Date Title
CN102473295B (en) Based on the tone mapping in district
JP5677113B2 (en) Image processing device
CN112565636B (en) Image processing method, device, equipment and storage medium
US8284271B2 (en) Chroma noise reduction for cameras
RU2496250C1 (en) Image processing apparatus and method
JP2003230160A (en) Color picture saturation adjustment apparatus and method therefor
CN113888437A (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
CN111209775B (en) Signal lamp image processing method, device, equipment and storage medium
JP2012054827A (en) Image processor, image processing method and program
WO2021143300A1 (en) Image processing method and apparatus, electronic device and storage medium
WO2017099150A1 (en) Image processing apparatus and method, program, and recording medium
JP6083974B2 (en) Image processing apparatus, image processing method, and program
JP7152065B2 (en) Image processing device
JP2005354691A (en) Apparatus and method for adjusting chroma of color video
CN112288661B (en) Image color correction method
JP6600216B2 (en) Image processing apparatus, image processing method, program, and storage medium
CN114866754A (en) Automatic white balance method and device, computer readable storage medium and electronic equipment
CN111724447B (en) Image processing method, system, electronic equipment and storage medium
CN115037882B (en) Image brightness adjusting method, imaging device and computer storage medium
CN115018714B (en) Image pixel value mapping method, imaging device and computer storage medium
CN115018743B (en) Intra-chip partition exposure image fusion method, imaging device and computer storage medium
JP2009004966A (en) Imaging apparatus
CN113222869B (en) Image processing method
CN115018714A (en) Image pixel value mapping method, imaging device and computer storage medium
WO2022032666A1 (en) Image processing method and related apparatus

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