Adaptive enhancement method for heterogeneous night vision halo images
Through the adaptive enhancement algorithm, the halo critical gray value and the adaptive transmittance function are used to solve the problem of poor night vision halo image enhancement in the existing technology, and improve the image clarity and contrast during night driving. Improved anti-halation fusion image quality.
Patent Information
- Application Number
- CN202111054226.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-09
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-09-09
AI Technical Summary
Existing image enhancement algorithms are not suitable for enhancing night vision halo images, resulting in poor image clarity and contrast improvement in halo scenes while driving at night, affecting the imaging quality of anti-halation fusion images.
An adaptive enhancement method for heterogeneous night vision halo images is adopted. By determining the halo critical gray value of the night vision visible light image and constructing an adaptive transmittance function, the transmittance is automatically adjusted according to the halo degree of the image to avoid image Excessive enhancement of the halo area improves the detail information in dark areas of the image and the clarity of infrared images.
It effectively improves the dark detail information of visible light images and the clarity of infrared images in halo scenes, improves the imaging quality of anti-halation fusion images, is suitable for image enhancement with different halo levels, and avoids excessive halo areas in the image. Enhance.
Smart Images

Figure CN113947536B_ABST
Abstract
Description
Technical field:
[0001] The invention belongs to the technical field of automobile night vision anti-halation, and relates to an adaptive enhancement method for heterogeneous night vision halo images, which is used to improve the clarity and contrast of visible light images and infrared images in halo scenes, and improve the imaging quality of anti-halation fused images. Background technology:
[0002] When driving at night, drivers will be exposed to strong light sources from oncoming vehicles, which will cause severe haloing, making it difficult to see the road ahead for a short period of time, which can easily cause traffic accidents. The heterogeneous night vision image fusion anti-halation technology uses the advantages of infrared images without halo and visible light images with rich color detail information to fuse infrared and visible light images to combat haloing. The resulting fused image has more thorough halo elimination and better image visual effects, which can effectively improve the safety of night driving. However, due to the special night vision halo scene, in the preprocessing stage of image fusion, the existing image enhancement algorithm, when processing night vision halo images, enhances the detail information in the dark areas of the image while amplifying the noise and halo area in the image, resulting in an insignificant improvement in effective information, affecting the imaging quality of the fused image, and is not suitable for enhancing night vision halo images.
[0003] The existing enhancement algorithm based on Retinex theory can effectively improve the clarity of the image, but it is easy to produce distortion when enhancing low-light images with insufficient light. The noise in the image is amplified during the enhancement process, and the contour and color detail enhancement effect of the anti-halation image is not obvious; the local histogram equalization (HE) enhancement algorithm has a good effect on the enhancement of images with too bright or too dark foreground and background, but it is easy to amplify the halo area in the image when used to enhance low-light images with halo; the homomorphic filtering enhancement algorithm is suitable for enhancing images with uniform ambient lighting, but it is not good for enhancing night images, and is even less suitable for enhancing low-light images with halo; the dark primary color prior enhancement algorithm (DCP) can enhance the dark information in the image, and the enhancement effect is obvious. It is suitable for enhancing low-light images, but it will amplify the halo area in the image when used to enhance low-light images with halo. In summary, the existing image enhancement algorithms are not suitable for enhancing night vision halo images. Summary of the invention:
[0004] The purpose of the present invention is to provide an adaptive enhancement method for heterogeneous night vision halo images, which overcomes the problem in the prior art that the existing image enhancement algorithms are not suitable for enhancing night vision halo images, can effectively improve the dark detail information of visible light images and the clarity of infrared images in halo scenes, and improve the imaging quality of anti-halation fusion images; while achieving the enhancement of dark detail information of images, it avoids excessive enhancement of the halo area of the image, and can achieve adaptive enhancement of images with different halo degrees, and is used for image enhancement in night vision halo scenes.
[0005] To achieve the above object, the technical solution adopted by the present invention is:
[0006] A method for adaptively enhancing a heterogeneous night vision halo image, characterized in that it comprises the following steps:
[0007] Step 1: Determine the critical grayscale value G of the halo of the night vision visible light image c ;
[0008] Step 2, invert the night vision halo image and estimate the initial transmittance t of the inverted image;
[0009] Step 3: According to the initial transmittance t of the image and the critical gray value G of the halo c Construct an adaptive transmittance function T;
[0010] When the halo degree of the night vision halo image is large, the image transmittance is appropriately reduced; according to the functional relationship between a large number of night vision halo images with halo degrees from small to large and their corresponding optimal image transmittance, the adaptive transmittance function T is constructed by the least squares nonlinear fitting as follows:
[0011]
[0012] Where x is the pixel gray value of the night vision halo image;
[0013] In the process of enhancing night vision halo images, the corresponding transmittance is used to adaptively enhance the night vision halo images for images with different halo degrees; when the grayscale value of the halo image pixel is less than the halo critical grayscale value G c When the pixel gray value x of the halo image is greater than or equal to the halo critical gray value G c When , the transmittance is adjusted using the constructed adaptive transmittance function.
[0014] Step 4: Adaptively enhance images with different halation levels according to the adaptive transmittance function T.
[0015] In step 1, determine the critical grayscale value G of the halo of the night vision visible light image c , including the following steps:
[0016] Step 1.1, calculate the inter-class square difference θ according to the following formula, and obtain the initial critical gray value k when θ is the maximum value:
[0017]
[0018] In the formula, m G is the average gray value of the entire image, and the expression is P1(k) is the probability of the required gray level in the image, expressed as is the average gray value of pixels with gray levels from 0 to k, and the expression is
[0019] Step 1.2: Calculate the critical grayscale value G of the halo according to the following formula: c :
[0020] G c =k+s (2)
[0021] Where s is the superposition coefficient.
[0022] The steps to implement the functional expression of the superposition coefficient s in formula (2) are as follows:
[0023] (1) Point collection: Taking halo images with different halo degrees as the research object, the initial critical grayscale value k is determined according to the maximum inter-class variance method, and the initial critical grayscale value is superimposed to obtain the superposition coefficient s so that the night vision halo image can achieve the optimal threshold segmentation; a large number of corresponding point sets (k) of halo images of different types of road vehicles from far to near, with halo from small to large and then to small, are collected. i ,s i );
[0024] (2) Linear fitting: According to the point set (k i ,s i ), the superposition coefficient s is negatively correlated with the initial critical gray value k, and the least squares linear fitting is performed using the following formula:
[0025] s=a*k+b (3)
[0026] (3) Determine the coefficient value: When the evaluation function L(a, b) reaches the minimum value, the values of a and b in the formula s are a=-1.11 and b=181.14.
[0027]
[0028] In step 2, the initial transmittance t of the inverted image is estimated according to the following formula:
[0029]
[0030] Where ω is the dehazing coefficient; I(x) is the halo inversion image; A is the atmospheric intensity at infinity; avref represents mean filtering.
[0031] In step 4, the transmittance of the halo image is determined according to the adaptive transmittance function T, and the enhanced low-light image J(x) is obtained by combining the following formula:
[0032]
[0033] The low illumination image J(x) is then inverted to obtain an enhanced halo image.
[0034] Compared with the prior art, the present invention has the following advantages and effects:
[0035] 1. The adaptive enhancement algorithm of heterogeneous night vision halo images designed by the present invention improves the detail information of dark areas of visible light images and the clarity of infrared images in halo scenes, while avoiding excessive enhancement of halo areas of visible light images and improving the imaging quality of anti-halo fusion images.
[0036] 2. The image halo critical grayscale value designed by the present invention adopts an improved maximum inter-class variance method, which can determine the halo critical grayscale value according to the halo degree of the halo image and divide the image into halo area and non-halo area.
[0037] 3. The image adaptive enhancement algorithm designed by the present invention can adopt different transmittances according to the different halo degrees of night vision halo images, construct an adaptive transmittance function according to the functional relationship between the initial transmittance and the critical grayscale value of halo, and automatically adjust with the image halo degree to achieve adaptive enhancement of images with different halo degrees. Description of the drawings:
[0038] Figure 1(a) is the original visible light image of a small area halo scene on a main road in the city;
[0039] Figure 1(b) is the original infrared image of a small area halo scene on a main road in the city;
[0040] Figure 2(a) is the original visible light image of a small area halo scene on a suburban road;
[0041] Figure 2(b) is the original infrared image of a small area halo scene on a suburban road;
[0042] Figure 3(a) is the original visible light image of a large area halo scene on a suburban trunk road;
[0043] Figure 3(b) is the original infrared image of a large area halo scene on a suburban trunk road;
[0044] Figure 4(a) is a visible light original image of a large area halo scene on a suburban road;
[0045] Figure 4(b) is the original infrared image of a large area halo scene on a suburban road;
[0046] Figure 5(a) is a visible light image of a small area halo scene on a main road in the city enhanced by the adaptive enhancement algorithm;
[0047] Figure 5(b) is an infrared image of a small area halo scene on a main road in the city enhanced by the adaptive enhancement algorithm;
[0048] FIG6(a) is a visible light image of a small area halo scene on a suburban road enhanced by an adaptive enhancement algorithm;
[0049] Figure 6(b) is an infrared image of a small area halo scene on a suburban road enhanced by the adaptive enhancement algorithm;
[0050] Figure 7(a) is a visible light image of a large area halo scene of a suburban trunk road enhanced by an adaptive enhancement algorithm;
[0051] Figure 7(b) is an infrared image of a large area halo scene of a suburban trunk road enhanced by the adaptive enhancement algorithm;
[0052] FIG8( a ) is a visible light image of a large area halo scene of a suburban road enhanced by an adaptive enhancement algorithm;
[0053] Figure 8(b) is an infrared image of a large area halo scene on a suburban road enhanced by the adaptive enhancement algorithm;
[0054] Fig. 9 It is an anti-halation image fused after being enhanced by the adaptive enhancement algorithm of the halo image of a small area on the main road in the city;
[0055] Fig.10 It is an anti-halation image fused after being enhanced by the adaptive enhancement algorithm of the halo image of a small area on a suburban road;
[0056] Fig.11 It is an anti-halation image fused after being enhanced by the adaptive enhancement algorithm of the halo image of a large area of a suburban main road;
[0057] Fig.12 It is an anti-halation image fused after being enhanced by the adaptive enhancement algorithm of the halo image of a large area of suburban roads; Specific implementation method:
[0058] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0059] Aiming at the problem that existing image enhancement algorithms are not suitable for enhancing night vision halo images, the present invention proposes an adaptive enhancement algorithm for heterogeneous night vision halo images to improve the imaging quality of anti-halation fusion images.
[0060] The present invention is described in detail below in conjunction with the accompanying drawings and a complete processing process.
[0061] In view of the fact that the existing image enhancement algorithms are not suitable for enhancing night vision halo images, the present invention designs an adaptive enhancement algorithm for heterogeneous night vision halo images. Since the transmittance of the halo image determines the halo degree of the halo image, the halo degree of the night vision halo image can be reflected by the transmittance of the image. In order to more effectively enhance the night vision halo image, the method constructs an adaptive transmittance function by studying the functional relationship between the halo degree of the night vision halo image and the transmittance of the enhancement algorithm, and automatically adjusts the size of the image transmittance according to the halo degree of the night vision halo image, so as to achieve adaptive enhancement of images with different halo degrees. The method improves the dark detail information of the visible light image and the clarity of the infrared image in the halo scene, and improves the imaging quality of the anti-halo fusion image. It can better enhance the night vision halo image, achieve the enhancement of the dark part of the image while avoiding the transition enhancement of the image halo area, and adaptive enhancement of images with different halo degrees. The present invention is applicable to the field of automotive night vision anti-halo technology.
[0062] The present invention provides an adaptive enhancement method for heterogeneous night vision halo images, the method comprising the following steps:
[0063] Step 1: Determine the critical grayscale value G of the halo of the night vision visible light image c , including the following processing steps:
[0064] Step 1.1, calculate the inter-class square difference θ according to the following formula, and obtain the initial critical gray value k when θ is the maximum value:
[0065]
[0066] In the formula, m G is the average gray value of the entire image, and the expression is P1(k) is the probability of the required gray level in the image, expressed as is the average gray value of pixels with gray levels from 0 to k, and the expression is
[0067] Step 1.2: Calculate the critical grayscale value G of the halo according to the following formula: c :
[0068] G c =k+s (2)
[0069] Where: s is the superposition coefficient.
[0070] The functional expression of the superposition coefficient s in formula (2) is specifically implemented as follows:
[0071] 1. Point collection: Taking halo images with different halo degrees as the research object, the initial critical grayscale value k is determined according to the maximum inter-class variance method, and the initial critical grayscale value is superimposed to obtain the superposition coefficient s so that the night vision halo image can achieve the optimal threshold segmentation. A large number of corresponding point sets (k) of halo images of different types of road vehicles from far to near, with halo from small to large and then small are collected. i ,s i );
[0072] 2. Linear fitting: According to the point set (k i ,s i ), the superposition coefficient s is negatively correlated with the initial critical gray value k, and the least squares linear fitting is performed using the following formula:
[0073] s=a*k+b (3)
[0074] 3. Determine the coefficient value: When the evaluation function L(a, b) reaches the minimum value, the values of a and b in the formula s are a=-1.11 and b=181.14.
[0075]
[0076] Step 2: invert the night vision halo image and estimate the initial transmittance y of the inverted image, including the following processing steps:
[0077] Step 2.1: Invert the night vision halo image:
[0078] J(x)=255-I(x) (5)
[0079] Step 2.2: Estimate the initial transmittance t of the inverted image according to the following formula:
[0080]
[0081] Where: ω is the defogging coefficient; I(x) is the halo inversion image; A is the atmospheric intensity at infinity; avref represents mean filtering;
[0082] Step 3: According to the initial transmittance t of the image and the critical gray value G of the halo c Construct an adaptive transmittance function T.
[0083] The transmittance of the halo image determines the halo degree of the halo image. In order to obtain a halo image with better enhancement effect, the image transmittance is appropriately reduced when the halo degree of the night vision halo image is large. According to the relationship between a large number of night vision halo images with halo degrees from small to large and their corresponding optimal image transmittance, the adaptive transmittance function T is constructed by the least squares nonlinear fitting method as follows:
[0084]
[0085] Where x is the pixel grayscale value of the night vision halo image.
[0086] In the process of enhancing night vision halo images, the night vision halo images are adaptively enhanced by using the corresponding transmittance for images with different halo degrees. c When the pixel gray value x of the halo image is greater than or equal to the halo critical gray value G c When , the transmittance is adjusted using the constructed adaptive transmittance function.
[0087] Step 4: Adaptively enhance images with different halation levels according to the adaptive transmittance function T.
[0088] The transmittance of the halo image is determined according to the adaptive transmittance function T, and the enhanced low-light image J(x) is obtained by combining the following formula:
[0089]
[0090] The low illumination image J(x) is then inverted to obtain an enhanced halo image.
[0091] Example:
[0092] A specific simulation example is given below.
[0093] The simulation conditions of this embodiment are: Windows 10 operating system, MATLAB software.
[0094] Main content: Use the improved maximum inter-class variance method to determine the critical grayscale value of the halo image, invert the night vision halo image, estimate the initial transmittance of the inverted image, and construct an adaptive transmittance function by combining the critical grayscale value of the halo image, the inverted image and the initial transmittance. Automatically adjust the image transmittance according to the degree of halo, and achieve adaptive enhancement of images with different halo degrees. Specific steps:
[0095] 1. Calculate the critical gray value of halo:
[0096] 1. Use the imread function to read the visible light and infrared raw images in the halo scene;
[0097] 2. Use the rgb2gray function to convert the visible light color image into a grayscale image;
[0098] 3. Calculate the critical grayscale value G of the halo image according to formulas (1) and (2): c ;
[0099] 2. Adaptive enhancement of visible light and infrared images in night vision halo scenes:
[0100] 1. Invert the halo image according to formula (5) and calculate its initial transmittance t according to formula (6);
[0101] 2. Adaptively enhance the visible light and infrared negated images of the four groups of halo scene images using the transmittance function T constructed according to formula (7);
[0102] 3. Combine formula (8) and then invert it to obtain four sets of enhanced halo scene images.
[0103] 3. Enhancement results and analysis of night vision halo scene images:
[0104] In order to verify the effectiveness of the adaptive enhancement algorithm for heterogeneous night vision halo images proposed in the present invention in fusion anti-halo and its universality in different halo scenes, image enhancement experiments were carried out on four groups of visible light and infrared images under different night vision halo scenes, including the visible light and infrared original images of the halo scene in a small area of the main road in the city (see Figure 1 (a), Figure 1 (b)), the visible light and infrared original images of the halo scene in a small area of the suburban road (see Figure 2 (a), Figure 2 (b)), the visible light and infrared original images of the halo scene in a large area of the main road in the suburbs (see Figure 3 (a), Figure 3 (b)), and the visible light and infrared original images of the halo scene in a large area of the suburban road (see Figure 4 (a), Figure 4 (b)). The four groups of visible light and infrared images under different halo scenes were compared using histogram equalization (HE), multi-scale retina (MSR), dark primary color prior enhancement algorithm (DCP) and the adaptive enhancement algorithm (AEA) of the present invention. The enhanced visible light and infrared images are objectively analyzed using indicators such as mean absolute error (MAE), average gradient (AG), information entropy (IE), peak signal-to-noise ratio (PSNR) and structural similarity (SSIM).
[0105] The visible light image and infrared image of the halo scene in a small area of a main road in the city enhanced by the adaptive enhancement algorithm (AEA) of the present invention are shown in Figures 5(a) and 5(b).
[0106] Table 1 shows the comparison of the night vision image enhancement experimental results for small-area halo on the main roads in the city.
[0107] Table 1 Objective index data of enhanced images of small area halo scenes on main roads in the city
[0108]
[0109] From the objective index data of enhanced images in the halo scene of urban main roads in Table 1, it can be seen that the MAE index of the visible light image enhanced by the algorithm of the present invention is reduced by 86.32% and 50.04% compared with HE and MSR, and increased by 11.64% compared with the DCP enhanced image, indicating that the brightness of the image enhanced by the HE and MSR algorithms is too high, the brightness of the image enhanced by the DCP algorithm is slightly improved, and the brightness of the image enhanced by the algorithm of the present invention is moderately improved; from the peak signal-to-noise ratio and structural similarity index data, it can be seen that the PSNR and SSIM indicators of the enhanced image processed by the algorithm of the present invention are significantly improved, and the enhanced infrared image is improved by 51.37% and 34.98% compared with the HE and MSR enhanced images, indicating that the image quality enhanced by the algorithm of the present invention is better than the original image.
[0110] The visible light image and infrared image of the small area halo scene of the suburban road in the city enhanced by the adaptive enhancement algorithm (AEA) of the present invention are shown in Figure 6(a) and Figure 6(b).
[0111] Table 2 shows the comparison of the experimental results of night vision image enhancement in small areas of haloing on urban and suburban roads.
[0112] Table 2 Objective index data of enhanced images of small area halo scenes on suburban roads
[0113]
[0114] From the objective index data of enhanced images of small-area halo scenes on suburban roads in Table 2, it can be seen that the IE index of the visible light image enhanced by the algorithm of the present invention is improved by 26.87% and 44.97% compared with the HE and MSR enhanced images, indicating that the image enhanced by the algorithm of the present invention contains richer information; the PSNR index of the infrared image enhanced by the algorithm of the present invention is improved by 39.12% and 23.57% compared with the MSR and DCP enhanced images, and the peak signal-to-noise ratio is significantly improved, indicating that the enhanced image has less noise than the original image, thereby improving the image quality.
[0115] The visible light image and infrared image of the halo scene of a large area of a suburban main road enhanced by the adaptive enhancement algorithm (AEA) of the present invention are shown in Figures 7(a) and 7(b).
[0116] The comparison of night vision infrared and visible light image enhancement results of large-area halo on suburban main roads is shown in Table 3.
[0117] Table 3 Objective index data of enhanced images of large-area halo scenes on suburban trunk roads
[0118]
[0119] From the enhanced image index data of large-area halo scenes in Table 3, it can be seen that the MAE index values of the enhanced visible light and infrared images are higher than those of the enhanced images with small-area halo, which shows that the brightness of the enhanced image is affected by the halo area of the image. Too high or too low image brightness will reduce the image quality. The MAE index of the image enhanced by the algorithm of the present invention is significantly lower than that of HE and MSR, and is improved compared with DCP. The moderate improvement of image brightness is helpful to improve the visibility of information in the dark area of the image. The AG, IE, PSNR and SSIM of the image enhanced by the algorithm of the present invention are higher than those of the HE, MSR and DCP enhancement algorithms, indicating that the image enhanced by the algorithm of the present invention is clearer, contains more information, and has better quality after enhancement.
[0120] The visible light image and infrared image of the halo scene of a large area of a suburban road enhanced by the adaptive enhancement algorithm (AEA) of the present invention are shown in FIG8(a) and FIG8(b).
[0121] The comparison of night vision infrared and visible light image enhancement results for large-area haloing on suburban roads is shown in Table 4.
[0122] Table 4 Objective index data of enhanced image of large area halo scene on suburban roads
[0123]
[0124] From the large-area halo scene enhanced image index data in Table 4, it can be seen that the MAE index values of the enhanced visible light and infrared images are higher than those of the small-area halo enhanced image, indicating that the brightness of the enhanced image is affected by the image halo area. Too high or too low image brightness will reduce the image quality. The MAE index of the image enhanced by the algorithm of the present invention is significantly lower than that of HE and MSR, and is improved compared with DCP. The moderate improvement of image brightness is helpful to improve the visibility of information in the dark area of the image; the AG, IE, PSNR and SSIM of the image enhanced by the algorithm of the present invention are higher than those of the HE, MSR and DCP enhancement algorithms, indicating that the image enhanced by the algorithm of the present invention is clearer, contains more information, and the enhanced image quality is better.
[0125] The experimental results and analysis of visible light and infrared image enhancement in different halo scenes show that the adaptive enhancement algorithm of the present invention can enhance the brightness of visible light and infrared images moderately, and can enhance the brightness of dark areas of visible light images without enlarging the halo area. The definition of enhanced infrared images is significantly improved, and no noise appears. The buildings and roadside trees in the image are clearly visible. The objective index data of the enhanced image show that the enhancement algorithm of the present invention can enhance the brightness of the image moderately, which not only avoids over-enhancement of the halo area, but also improves the overall clarity and visibility of the image.
[0126] 4. Night Vision Image Fusion Anti-Bloom Results and Analysis
[0127] In order to fully illustrate the improvement effect of the adaptive enhancement algorithm for heterogeneous night vision halo images proposed in the present invention in anti-halation image fusion, anti-halation fusion experiments were carried out on the visible light and infrared images processed by the enhancement algorithm under four halo scenes. The same improved IHS-Curvelet fusion algorithm was used in the image fusion process, and only the enhancement algorithm was different.
[0128] The visible light image and infrared image of the halo scene in a small area of the main road in the city enhanced by the adaptive enhancement algorithm (AEA) of the present invention, and the anti-halation image fused by the improved IHS-Curvelet fusion algorithm are shown in FIG. Fig. 9 shown.
[0129] The comparison of evaluation index data of halo fusion images of small areas on urban main roads is shown in Table 5.
[0130] Table 5 Evaluation indexes of halo fusion images in small areas of urban trunk roads
[0131]
[0132] From the index data in Table 5, it can be seen that the halo elimination index D of the fused image enhanced by the HE algorithm and the DCP algorithm is small, indicating that the halo elimination effect of the fused image enhanced by the HE algorithm and the DCP algorithm is poor, while the halo elimination index of the MSR enhanced and the adaptive enhanced fused image of the present invention is relatively high, among which the halo elimination value of the enhanced fused image of the present invention is the largest, indicating that the halo elimination of the fused image is more thorough. Compared with HE fusion, MSR fusion and DCP fusion, the various indicators of the fused image obtained by the enhanced algorithm of the present invention are improved, among which μ, AG and SF are significantly improved, which are increased by 52.86%, 42.38%, 44.32%, 46.57%, 39.64%, 45.68%, 9.24%, 21.72%, and 5.98% respectively. The significant improvement of indicators such as mean, average gradient and spatial frequency shows that the brightness, clarity and texture characteristics of the image are improved better.
[0133] The visible light image and infrared image of the halo scene in a small area of a suburban road enhanced by the adaptive enhancement algorithm (AEA) of the present invention, and the anti-halo image fused by the improved IHS-Curvelet fusion algorithm are shown in FIG. Fig.10 shown.
[0134] The comparison of evaluation indicators of halo fusion images in small areas of suburban roads is shown in Table 6.
[0135] Table 6 Evaluation indexes of halo fusion images in small areas of suburban roads
[0136]
[0137] It can be seen from the index data in Table 6 that the fusion image μ, AG and SF obtained by the adaptive enhancement algorithm of the present invention are improved by 44.05%, 30.12% and 37.58% compared with HE fusion, 54.75%, 42.13% and 34.68% compared with MSR fusion, and 59.63%, 23.36% and 29.75% compared with DCP fusion. The improvement of the mean, average gradient and spatial frequency indicators shows that the clarity and contrast of the fused image are better improved.
[0138] The visible light image and infrared image of the halo scene of a small area on a suburban trunk road enhanced by the adaptive enhancement algorithm (AEA) of the present invention, and the anti-halation image fused by the improved IHS-Curvelet fusion algorithm are shown in FIG. Fig.11 shown.
[0139] Table 7 shows a comparison of evaluation indicators of halo fusion images in small areas of suburban trunk roads.
[0140] Table 7 Evaluation indexes of halo fusion images in small areas of suburban trunk roads
[0141]
[0142] From the index data in Table 7, it can be seen that the AG index of the fused image enhanced by the adaptive algorithm of the present invention is 75.08% higher than that of HE fusion, 28.55% higher than that of MSR fusion, and 11.19% higher than that of DCP fusion. The significant improvement of the average gradient index shows that the clarity of the fused image after adaptive enhancement is better. The SF and QAB / F indexes of the fused image after ADCP enhancement are 44.32% and 26.46% higher than that of HE fusion, 31.35% and 18.53% higher than that of MSR fusion, and 5.63% and 11.15% higher than that of DCP fusion. The significant improvement of the spatial frequency and edge retention indexes shows that the visual features, color texture and other detail information of the anti-halation fused image obtained by the enhancement algorithm of the present invention are richer.
[0143] The visible light image and infrared image of the halo scene of a large area of a suburban road enhanced by the adaptive enhancement algorithm (AEA) of the present invention, and the anti-halo image fused by the improved IHS-Curvelet fusion algorithm are shown in FIG. Fig.12 shown.
[0144] The comparison of evaluation indicators of halo fusion images of large areas of suburban roads is shown in Table 8.
[0145] Table 8 Evaluation indexes of halo fusion images of large areas of suburban roads
[0146]
[0147] It can be seen from the index data in Table 8 that the D, CEFU-IR and MIFU-VI of the fused image enhanced by the adaptive algorithm of the present invention are respectively improved by 18.81%, 37.89%, 16.78%, 63.21%, 58.24%, 43.23%, 60.53%, 45.57% and 25.33% compared with the HE fusion, MSR fusion and DCP fusion images. The significant improvement of the halo elimination degree, cross entropy, mutual information and other indicators shows that the edge, contour, color and other details of the fused image obtained by the enhancement algorithm of the present invention are richer. The results of the objective evaluation indicators in the table are consistent with the subjective visual results of the anti-halo image fusion, which fully shows that the adaptive enhancement algorithm of the present invention has the best improvement effect on the anti-halo fusion image.
[0148] The fusion and anti-halation experiments on the above-mentioned images of different night vision halo scenes and the analysis of the results show that the halo of the fused image obtained by using the adaptive enhancement algorithm of the present invention is completely eliminated, and the brightness and clarity of the image are significantly improved. The objective indicator data show that the indicator data of the anti-halation fused image obtained by using the adaptive enhancement algorithm in different halo scenes is relatively good, which fully verifies the universality of the adaptive enhancement algorithm for heterogeneous night vision halo images proposed in the present invention in processing images of different halo scenes. It also verifies the effectiveness of the adaptive enhancement algorithm for heterogeneous night vision halo images in anti-halation fused images and its universality in different halo scenes.
[0149] The above embodiments are only illustrative of the principles and effects of the present invention. A person skilled in the art may make several modifications and improvements without departing from the inventive concept of the present invention, and all of these belong to the protection scope of the present invention.
Claims
1. An adaptive enhancement method for heterogeneous night vision halo images, characterized by: The following steps are involved: Step 1: Determine the critical grayscale value G of the halo of the night vision visible light image c ; Step 2, invert the night vision halo image and estimate the initial transmittance t of the inverted image; Step 3: According to the initial transmittance t of the image and the critical gray value G of the halo c Construct an adaptive transmittance function T; When the halo degree of the night vision halo image is large, the image transmittance is appropriately reduced; according to the functional relationship between a large number of night vision halo images with halo degrees from small to large and their corresponding optimal image transmittance, the adaptive transmittance function T is constructed by the least squares nonlinear fitting as follows: Where x is the pixel gray value of the night vision halo image; In the process of enhancing night vision halo images, the night vision halo images are adaptively enhanced by using corresponding transmittances for images with different halo degrees. When the gray value x of the halo image pixel is less than the critical gray value G c When the pixel gray value x of the halo image is greater than or equal to the halo critical gray value G c When , the transmittance is adjusted using the constructed adaptive transmittance function; Step 4: Adaptively enhance images with different halation levels according to the adaptive transmittance function T.
2. The adaptive enhancement method for heterogeneous night vision halo images according to claim 1, characterized in that: In step 1, determine the critical grayscale value G of the halo of the night vision visible light image c , including the following steps: Step 1.1, calculate the inter-class square difference θ according to the following formula, and obtain the initial critical gray value k when θ is the maximum value: In the formula, m G is the average gray value of the entire image, and the expression is P1(k) is the probability of the required gray level in the image, expressed as is the average gray value of pixels with gray levels from 0 to k, and the expression is Step 1.2: Calculate the critical grayscale value G of the halo according to the following formula: c : G c =k+s (2) Where s is the superposition coefficient.
3. The adaptive enhancement method for heterogeneous night vision halo images according to claim 2, characterized in that: The steps to implement the functional expression of the superposition coefficient s in formula (2) are as follows: (1) Point collection: Taking halo images with different halo degrees as the research object, the initial critical grayscale value k is determined according to the maximum inter-class variance method, and the initial critical grayscale value is superimposed to obtain the superposition coefficient s so that the night vision halo image can achieve the optimal threshold segmentation; a large number of corresponding point sets (k) of halo images of different types of road vehicles from far to near, with halo from small to large and then to small, are collected. i ,s i ); (2) Linear fitting: According to the point set (k i ,s i ), the superposition coefficient s is negatively correlated with the initial critical gray value k, and the least squares linear fitting is performed using the following formula: s=a*k+b (3) (3) Determine the coefficient value: When the evaluation function L(a, b) reaches the minimum value, the values of a and b in the formula s are a = -1.11 and b = 181.14; 4. The adaptive enhancement method for heterogeneous night vision halo images according to claim 1, characterized in that: In step 2, the initial transmittance t of the inverted image is estimated according to the following formula: Where ω is the dehazing coefficient; I(x) is the halo inversion image; A is the atmospheric intensity at infinity; avref represents mean filtering.
5. The adaptive enhancement method for heterogeneous night vision halo images according to claim 1, characterized in that: In step 4, the transmittance of the halo image is determined according to the adaptive transmittance function T, and the enhanced low-light image J(x) is obtained by combining the following formula: The low illumination image J(x) is then inverted to obtain an enhanced halo image.
Citation Information
Patent Citations
Automobile night vision anti-halo image segmentation and evaluation method based on infrared and visible light fusion
CN109166131A
Illumination Processing Method and Apparatus
US20190082090A1
