Low-illumination image enhancement method based on multi-threshold image segmentation and tone mapping

By using multi-threshold image segmentation and tone mapping technology to enhance brightness and details in images acquired in low-light environments, the problems of low-light images being low-bright and unclear details are solved, and the image brightness and contrast and the retention of detailed information are achieved.

CN119963464APending Publication Date: 2025-05-09GUILIN UNIV OF ELECTRONIC TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510046333.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-13
Publication Date
2025-05-09

AI Technical Summary

Technical Problem

Images collected in low-light environments usually have low brightness, insufficient color saturation and unclear details, resulting in limited image information, reduced contrast, and high noise, making it difficult to obtain high-quality image data.

Method used

The low-illumination image enhancement method based on multi-threshold image segmentation and tone mapping is adopted. By converting RGB images to HSV space, brightness, chromaticity and saturation information is extracted, brightness segmentation and enhancement is used using improved ephemeral algorithm and tone mapping method, and detailed texture is enhanced through parameter physicochemical desharpening mask algorithm, and finally multi-scale weighted fusion is performed through Gaussian and Laplace pyramid methods.

Benefits of technology

Effectively improve image brightness and increase image contrast, while retaining detailed information, significantly improving visual effects, avoiding the impact of brightness enhancement on color information, and preventing image color distortion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119963464A_ABST
    Figure CN119963464A_ABST
Patent Text Reader

Abstract

The problems of insufficient brightness, unclear details and the like in a low-illumination image are solved. The invention discloses a low-illumination image enhancement method based on multi-threshold image segmentation and tone mapping. The method comprises the following steps: firstly, converting an RGB picture into an HSV space, and reducing relevance among three kinds of information including brightness, chromaticity and saturation; and then the brightness information is segmented by using an improved mayfly naiad algorithm to obtain sub-images of different regions, and the brightness information is enhanced by using an improved tone mapping method. In order to restore color permeability, a white balance correction method is adopted to optimize color temperature deviation. Meanwhile, detail information is highlighted through a parameter physicochemical anti-sharpening mask algorithm; and finally, performing weighted fusion on the enhanced brightness information and the detail information by using a multi-scale fusion algorithm, and converting back to an RGB space to obtain an RGB image with proper brightness and rich details. Experiments prove that the method effectively enhances the brightness and contrast of the image, and significantly improves the visual effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of image enhancement, and in particular relates to a low-illumination image enhancement method based on multi-threshold image segmentation and tone mapping. Background Art

[0002] Images are an important medium for transmitting information in human society and play a key role in daily life. However, images collected in low-light environments such as at night, in tunnels or in bad weather usually show problems such as low overall brightness, insufficient color saturation, and unclear details. This situation results in limited image information, reduced contrast, more noise, reduced pixel differentiation, and difficulty in obtaining high-quality image data. To meet this challenge, low-light image enhancement technology aims to comprehensively improve image quality through a series of targeted processing methods such as brightness adjustment, color optimization, and detail enhancement. The advancement of this technology not only improves the visual performance of images, but also significantly improves the operation of computer vision systems under complex lighting conditions. Therefore, the research and application of low-light image enhancement technology is of great significance in meeting the needs of computer vision systems for high-quality images. Summary of the invention

[0003] The purpose of the present invention is to enhance low-illuminance images, requiring the enhanced images to have appropriate brightness, rich details and high contrast.

[0004] In order to achieve the above object, the present invention adopts the following technical solution: a low-light image enhancement method based on multi-threshold image segmentation and tone mapping, comprising the following steps:

[0005] Step 1: Convert the RGB image to HSV space and extract the brightness information ImageV, chroma information ImageH and saturation information ImageS respectively.

[0006] Step 2: Use the improved ephemera algorithm to perform multi-threshold image segmentation on the extracted image brightness information ImageV to obtain multiple sub-images with different brightness in different regions.

[0007] Step 3: Use the improved tone mapping method to enhance the brightness information of the separated image according to the average brightness of each sub-image obtained by solving the problem, and then obtain ImageV i .

[0008] Step 4: Use a parametric rationalized unsharp masking algorithm to process the extracted image brightness information ImageV, enhance the image detail texture information, and obtain ImagePRUM.

[0009] Step 5: Take the multiple enhanced sub-images ImageV obtained in step 3 i, Gaussian and Laplace pyramid methods are used for multi-scale weighted fusion to obtain ImageV c .

[0010] Step 6: ImageV c ImagePRUM is combined with the Gaussian and Laplace pyramid methods to obtain ImageV e Finally, the image ImageV e The chromaticity information ImageH and saturation information ImageS of the original image are converted to RGB space to obtain an image with appropriate brightness and rich details.

[0011] The effect brought by the present invention is that the proposed low-light image enhancement method can effectively improve image brightness, increase image contrast, and effectively restore image detail information. By converting the RGB image into the HSV space, the correlation between the three types of information, namely brightness, chroma and saturation, is reduced, thereby avoiding the influence of changing the brightness information on the color information, and effectively preventing the occurrence of image color distortion. The separated brightness information is processed so that the low-light image can retain detail information while the overall brightness is enhanced, which significantly improves the visual effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 It is the algorithm principle diagram in the embodiment of the present invention

[0013] Figure 2 The multi-threshold image segmentation and tone mapping principle diagram in the embodiment of the present invention is

[0014] Figure 3 : is a block diagram of a parameter rationalized unsharp masking algorithm in an embodiment of the present invention

[0015] Figure 4 is a block diagram of a multi-scale weighted fusion algorithm in an embodiment of the present invention

[0016] Figure 5 This is a block diagram of the algorithm principle in the embodiment of the present invention.

[0017] Figure 6 This is a low-light image enhancement effect diagram in an embodiment of the present invention.

[0018] like Figure 1 As shown, the present invention provides a low-illumination image enhancement method, which mainly divides the brightness information into sub-images of different regions through an improved ephemera algorithm, and adopts a tone mapping method to enhance the brightness information. At the same time, a parameter rationalized unsharp masking algorithm is used to enhance the detail texture. Then, a multi-scale weighted fusion method is used to weightedly fuse the enhanced brightness information with the detail information, and the result is converted back to the RGB space to finally obtain a brightness-enhanced image. DETAILED DESCRIPTION

[0019] Specifically, in step one:

[0020] Since the scene brightness information in the RGB color space is highly correlated with the color saturation, the color information will be affected when the brightness information is enhanced. However, the correlation between the color information and the brightness information in the HSV color space is very small, which avoids the color distortion problem caused by the enhancement of the brightness information. Therefore, the image is converted to the HSV space to prepare for the subsequent enhancement processing. The specific formulas for converting the RGB space to the HSV space are shown in (1), (2), and (3).

[0021] V=max(R,G,B) (1)

[0022]

[0023] Specifically, in step 2:

[0024] In order to obtain sub-images with different brightness, the brightness values ​​of the image ImageV are first classified in the image region block, and each gray level is [0,1,2,...,L-1], and L=256 in an 8-bit image. If the total number of pixels is MN, and the number of pixels with gray level i is n, then the probability of gray level i appearing in the image is approximately p i =n / MN, and then traverse all gray levels i in the image in turn to obtain the probability of each gray level appearing, and the corresponding probability is [p0,p1,p2,...,p L-1 Then, the improved ephemera algorithm is used to search for the optimal separation threshold corresponding to the probability. In the search process, a fitness function is designed based on the OTSU algorithm, and the maximum inter-class variance in the OTSU algorithm is used as the fitness function to search for the optimal separation threshold T0, T1, T2, ..., T in the brightness information of imageV. L-1 , the image can be divided into L categories at most, and each category R of the image can be specifically i It is expressed as the following formula, R0={0,1,2,...,T0},...,R k ={T k +1,...,T k+1},...,R L-1 ={T L-1 +1,...,L-1}, where the fitness function expression is given by formula (4).

[0025]

[0026] in, corresponds to the separation threshold T i The variance of is given by equations (5) and (6).

[0027] T i =(μ i-1 +μ i ) / 2 (5)

[0028]

[0029] Among them, the mean μ of each category i Denoted as μ0,μ1,μ2,...,μ L-1 , the probability of each type appearing is recorded as [P0,P1,P2,...,P L-1 ], the specific formula is expressed as

[0030]

[0031] Where i = 0, 1, 2, ..., L-1, and the average grayscale value of the image is expressed as

[0032]

[0033] Specifically, in step three:

[0034] Firstly, the low-light image is threshold segmented according to the improved ephemera algorithm to obtain sub-images of different brightness areas, and then the brightness mean of the sub-images is calculated according to formula (11).

[0035]

[0036] Where M i is the number of pixels of a specific sub-image. According to this formula, the average brightness of different divided areas can be calculated.

[0037] Then, the image is adaptively stretched in brightness according to the following mapping method, which is the improved tone mapping method mentioned in the present invention. The following formula is designed

[0038]

[0039] In formula (12), is the output of global tone mapping, L dmax is the brightness level of the displayed medium, and L is selected in this paper. dmax =256, L w (x, y) is the brightness information of the image V channel, L wmax and L wmin are the maximum and minimum brightness values ​​in the image, respectively. and The brightness mean, maximum brightness and minimum brightness of each sub-image after the original image is segmented are obtained. i .

[0040] Finally, in order to remove the color temperature deviation, maintain the scene color, and ensure that the white in the image appears pure white after the brightness is stretched, the white balance method is used to correct and optimize the color temperature deviation and improve the color expression of the image. The white balance expression is

[0041]

[0042] In formula (14), f(x) is the white balance correction output, x is the specific image pixel value that needs to be corrected, V max With V min are the maximum and minimum pixel values ​​of the image to be corrected, respectively. max and min are the specified pure white and pure black pixel values, respectively. Here max = 255, min = 0.

[0043] Specifically, in step 4:

[0044] The process of the parameterized rationalized unsharp masking algorithm is to transform the original image L w After (x, y) is converted to the frequency domain, nonlinear filtering is performed to extract the high-frequency component Z(x, y) in the original image. The definition of the nonlinear filter is shown in formula (15).

[0045] Z(x,y)=μ x F x (x,y)C x (x,y)+μ y F y (x,y)C y (x,y) (13)

[0046] In formula (15), μ x and μ y are the gradient adjustment factors in the horizontal and vertical directions respectively, and the other calculation items are given by formula (16).

[0047]

[0048] In formula (16), L w (x, y) is the pixel value at the (x, y) position in the original image, and δ is a very small parameter to prevent singularity in the gradient operator in the horizontal and vertical directions.

[0049] Then the high-frequency component Z(x,y) is subjected to a specific mapping process to obtain Z c (x,y). Then the processed high-frequency component Z c (x,y) and the original image L w (x, y) are fused, and finally a brightness image ImagePRUM that highlights texture details is obtained. The fusion process is shown in formula (17).

[0050]

[0051] In formula (17), L e (x, y) is the output image after filtering by the parameterized rationalized unsharp masking algorithm, Z c (x, y) is the output result after algorithm mapping, L wmax is the maximum value of pixels in the original image Lw(x,y).

[0052] Specifically, in step five:

[0053] The multiple enhanced sub-images ImageV obtained in step 3 i , Gaussian and Laplace pyramid methods are used for multi-scale weighted fusion to obtain ImageV c The multi-scale fusion process is shown in equations (18), (19), and (20).

[0054]

[0055]

[0056] In formula (18), l represents the number of pyramid layers, I l (x, y) is the output result of the Gaussian and Laplacian pyramids that fuse the information of each sub-image, that is, the multi-scale fusion result, D k (x,y) represents the kth subgraph, Represents the normalized weight map of the Gaussian pyramid. The standard deviation σ in the Gaussian filter in the algorithm is 0.33.

[0057] Specifically, in step six:

[0058] ImageV c ImagePRUM is combined with the Gaussian and Laplace pyramid methods to obtain ImageV e Finally, the image ImageV e The chromaticity information ImageH and saturation information ImageS of the original image are converted to RGB space to obtain an image with appropriate brightness and rich details. The HSV to RGB space method is shown in equations (21) and (22):

[0059]

[0060] (R, G, B) = ((R'+m) × 255, (G'+m) × 255, (B'+m) × 255) (20) where P = V × S, m=VC.

[0061] Finally, it should be noted that the above contents are only preferred embodiments of the present invention and are not intended to limit the scope of the present invention. The above embodiments have been described in detail for the present invention, but for technicians working in related fields, it is still possible to make appropriate adjustments to the technical solutions therein, or even to perform equivalent substitutions on certain technical features. As long as these adjustments, equivalent substitutions or further improvements still comply with the basic spirit and principles of the present invention, they should be included in the protection scope of the present invention.

Claims

1. A low-light image enhancement method based on multi-threshold image segmentation and tone mapping, characterized in that: include: Step 1: Convert the RGB image to HSV space and extract the brightness information ImageV, chroma information ImageH and saturation information ImageS respectively. Step 2: Use the improved ephemera algorithm to perform multi-threshold image segmentation on the extracted image brightness information ImageV to obtain multiple sub-images with different brightness in different regions. Step 3: Use the improved tone mapping method to enhance the brightness information of the separated image according to the average brightness of each sub-image obtained by solving the problem, and then obtain ImageV i . Step 4: Use a parametric rationalized unsharp masking algorithm to process the extracted image brightness information ImageV, enhance the image detail texture information, and obtain ImagePRUM. Step 5: Take the multiple enhanced sub-images ImageV obtained in step 3 i , Gaussian and Laplace pyramid methods are used for multi-scale weighted fusion to obtain ImageV c . Step 6: ImageV c ImagePRUM is combined with the Gaussian and Laplace pyramid methods to obtain ImageV e Finally, the image ImageV e The chromaticity information ImageH and saturation information ImageS of the original image are converted to RGB space to obtain an image with appropriate brightness and rich details.

2. According to the low-illumination image enhancement method based on multi-threshold image segmentation and tone mapping described in claim 1, its main feature is: in step 1, the RGB image is converted to the HSV space, and the brightness information ImageV, the chromaticity information ImageH and the saturation information ImageS are extracted respectively, so that the correlation between the three is reduced.

3. According to the method of claim 1, the method for low-light image enhancement based on multi-threshold image segmentation and tone mapping is mainly characterized in that: in step 2, the improved ephemera algorithm is used to search for the optimal segmentation threshold, and the maximum inter-class variance in the OTSU algorithm is used as the fitness function during the search. The extracted image brightness information ImageV is subjected to multi-threshold image segmentation according to the optimal segmentation threshold to obtain multiple sub-images with different brightness in different regions.

4. According to the method for low-light image enhancement based on multi-threshold image segmentation and tone mapping of claim 1, the main feature is that: in step 3, an improved tone mapping method is used to obtain the average brightness of each sub-image, and the brightness information of the separated image is enhanced to obtain ImageV i .

5. According to the low-illumination image enhancement method based on multi-threshold image segmentation and tone mapping described in claim 1, its main feature is: in step 4, a parameter rationalized unsharp masking algorithm is used to process the extracted image brightness information ImageV to enhance the detail texture information of the image and obtain ImagePRUM.

6. The low-light image enhancement method based on multi-threshold image segmentation and tone mapping according to claim 1, wherein: in step 5, the plurality of enhanced sub-images ImageV obtained in step 3 are i , Gaussian and Laplace pyramid methods are used for multi-scale weighted fusion to obtain ImageV c .

7. The low-light image enhancement method based on multi-threshold image segmentation and tone mapping according to claim 1, wherein: in step 6, the image ImageV obtained in step 5 is c The image ImagePRUM obtained in step 4 is fused with multi-scale weighted fusion using Gaussian and Laplace pyramid methods to obtain ImageV e Finally, the image ImageV e The chromaticity information ImageH and saturation information ImageS of the original image are converted to RGB space to obtain an image with appropriate brightness and rich details.