Virtual Image Enhancement System of Infrared Simulator Based on Image Processing
By dividing the infrared image into local blocks and merging blocks in the same area according to their characteristics, and updating the pixel gray value, the problem of poor infrared image enhancement in the existing technology is solved, and a more efficient infrared image contrast improvement is achieved.
Patent Information
- Application Number
- CN202410515633.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-26
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-04-26
AI Technical Summary
In the existing technology, the histogram equalization of infrared images is global and cannot be dynamically adjusted, resulting in the inability to perform targeted enhancement for different areas and reducing the enhancement effect of infrared images.
By dividing the denoised infrared image into local blocks, calculating the local difference and grayscale change rate based on the gray value and gradient amplitude of each local block, merging local blocks belonging to the same area, and using the K-means clustering algorithm The final local block is formed, and the gray value of the pixel is updated according to the characteristics of the local block to generate an infrared enhanced image.
It achieves targeted enhancement of infrared images, improves contrast, avoids the shortcomings of single feature analysis, and obtains image enhancement effects that are more reasonable and consistent with actual content.
Smart Images

Figure CN118297837B
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of image processing, and in particular to an infrared simulator virtual image enhancement system based on image processing. Background Art
[0002] Infrared imaging technology is widely used in weapon guidance, industrial inspection, and assisted driving. Infrared simulators can simulate the heat distribution of objects under different infrared wavelengths to generate corresponding infrared images. Using infrared simulator virtual images, people can simulate infrared images under different conditions through computer software to better understand and analyze the performance of these images in practical applications. However, due to the limitations of the imaging mechanism and manufacturing process of the detector, compared with visible light images, infrared images usually have the characteristics of low contrast, large noise, and narrow grayscale range. In order to improve the imaging quality of infrared images, computer vision algorithms are usually used to enhance infrared images. In the prior art, considering the low contrast characteristics of infrared images, histogram equalization is used to enhance the contrast of infrared images. However, traditional histogram equalization is global and cannot dynamically adjust the histogram equalization parameters. It cannot achieve targeted enhancement of different areas in the infrared image, thereby reducing the effect of infrared image enhancement. Summary of the invention
[0003] The invention provides an infrared simulator virtual image enhancement system based on image processing to solve the existing problems.
[0004] The infrared simulator virtual image enhancement system based on image processing of the present invention adopts the following technical solutions:
[0005] An embodiment of the present invention provides an infrared simulator virtual image enhancement system based on image processing, the system comprising the following modules:
[0006] Image acquisition module: used to obtain denoised infrared images;
[0007] Grayscale change rate acquisition module: used to divide the denoised infrared image into several local blocks; obtain the local difference of each local block according to the grayscale value and gradient amplitude of all pixels in each local block; obtain the grayscale change rate of each local block according to the size of the local difference of each local block;
[0008] Final local block acquisition module: used to obtain the possibility that any two local blocks belong to the same area according to the local difference of each local block, the area of each local block and the connection line of the pixels on the boundary of any two local blocks; according to the possibility that any two local blocks belong to the same area, obtain several final local blocks composed of all local blocks;
[0009] Infrared enhanced image acquisition module: used to obtain the grayscale change rate of each final local block according to the grayscale change rate of each local block; obtain the updated grayscale value of each pixel in each final local block according to the grayscale change rate of each final local block and the grayscale value of the pixel in the final local block; obtain the infrared enhanced image according to the updated grayscale values of all pixels in each final local block.
[0010] Furthermore, the specific calculation formula corresponding to the local difference of each local block is obtained according to the grayscale value and gradient amplitude of all pixels in each local block:
[0011]
[0012] Among them, D i represents the local difference of the i-th local block, k i represents the grayscale mean of all pixels in the i-th local block; v i represents the mean value of the gradient amplitude of all pixels in the ith local block; k0 represents the grayscale mean of all pixels in all local blocks adjacent to the ith local block; v0 represents the mean value of the gradient amplitude of all pixels in all local blocks adjacent to the ith local block, and Sigmoid() represents the normalization function.
[0013] Furthermore, the specific calculation formula corresponding to obtaining the grayscale change rate of each local block according to the size of the local difference of each local block is:
[0014]
[0015] Among them, R i represents the grayscale change rate of the i-th local block; D i represents the local difference of the ith local block, c is the preset judgment threshold, and d is the preset constant.
[0016] Furthermore, the possibility that any two local blocks belong to the same area is obtained based on the local difference of each local block, the area of each local block, and the line connecting the pixels on the boundaries of any two local blocks, including:
[0017] Obtaining a target connection line between any two local blocks according to the length of a connection line between pixel points on the boundaries of any two local blocks;
[0018] According to the local difference and area of each local block, the number of pixels on the target line between any two local blocks and the gradient amplitude of each pixel on the target line, the possibility that any two local blocks belong to the same area is obtained.
[0019] Furthermore, obtaining the target connection line between any two local blocks according to the length of the connection line between the pixel points on the boundary of any two local blocks comprises:
[0020] Calculate the length of the line connecting any pixel point on the boundary of the a-th local block and any pixel point on the boundary of the b-th local block, and record the line with the longest length connecting two pixel points on the boundary of the a-th local block and the boundary of the b-th local block as the target line between the a-th local block and the b-th local block.
[0021] Furthermore, according to the local difference and area of each local block, the number of pixels on the target line connecting any two local blocks, and the gradient amplitude of each pixel on the target line, the specific calculation formula corresponding to the possibility that any two local blocks belong to the same area is obtained as follows:
[0022]
[0023] Among them, G ab represents the possibility that the a-th local block and the b-th local block belong to the same region, M a represents the area of the ath local block, M b represents the area of the bth local block; min(M a ,M b ) indicates M a and M b The minimum value in the a ,M b ) indicates M a and M b The maximum value in D a represents the local difference of the ath local block, D b represents the local difference of the bth local block; || is the absolute value function, n ab is the number of pixels on the target line between the ath local block and the bth local block, t ab,j represents the gradient amplitude of the jth pixel on the target line between the ath local block and the bth local block, Represents the mean gradient amplitude of all pixels on the target line between the a-th local block and the b-th local block.
[0024] Furthermore, the method of obtaining several final local blocks composed of all local blocks according to the possibility that any two local blocks belong to the same area includes:
[0025] The possibility that any two local blocks belong to the same area is taken as the clustering distance between any two local blocks. The K-means clustering algorithm is used to perform clustering operations on all local blocks to obtain several clusters.
[0026] All local blocks in each cluster are combined into a final local block to obtain several final local blocks.
[0027] Further, obtaining the grayscale change rate of each final local block according to the grayscale change rate of each local block includes:
[0028] The average of the grayscale change rates of all local blocks in each final local block is recorded as the grayscale change rate of each final local block.
[0029] Furthermore, the specific calculation formula corresponding to the updated grayscale value of each pixel in each final local block is obtained according to the grayscale change rate of each final local block and the grayscale value of the pixel in the final local block:
[0030]
[0031] Among them, s e,r is the updated gray value of the rth pixel in the eth final local block, h e,r Represents the gray value of the rth pixel in the eth final local block, R e is the grayscale change rate of the e-th final local block, is the floor function.
[0032] Furthermore, obtaining the infrared enhanced image according to the updated grayscale values of all pixels in each final local block includes:
[0033] Replacing the grayscale value of each pixel in each final local block with the updated grayscale value to obtain an updated final local block of each final local block;
[0034] Based on all updated final local blocks, an infrared enhanced image is constructed.
[0035] The beneficial effects of the technical solution of the present invention are:
[0036] The denoised infrared image is obtained and divided into several local blocks; the local difference of each local block is obtained according to the gray value and gradient amplitude of all pixels in each local block; the gray change rate of each local block is obtained according to the size of the local difference of each local block, and the local difference of each local block is determined according to the analysis of the gray value and gradient amplitude of the pixel point, which is used to calculate the gray change rate and determine the enhancement degree of each local block. According to the local difference of each local block, the area of each local block and the connection line of the pixels on the boundary of any two local blocks, the possibility that any two local blocks belong to the same area is obtained; according to the possibility that any two local blocks belong to the same area, several final local blocks composed of all local blocks are obtained, which can be analyzed according to multiple features of the local blocks to more accurately determine which local blocks belong to the same area, avoid the shortcomings of using a single feature analysis, and obtain a more reasonable final local block that is more in line with the actual content of the image by merging the local blocks. According to the grayscale change rate of each local block, the grayscale change rate of each final local block is obtained; according to the grayscale change rate of each final local block and the grayscale value of the pixel in the final local block, the updated grayscale value of each pixel in each final local block is obtained; according to the updated grayscale values of all pixels in each final local block, an infrared enhanced image is obtained, which improves the contrast of the infrared image in a targeted manner based on the analysis of the grayscale change rate of the final local block and the grayscale value of the internal pixel, thereby improving the effect of infrared image enhancement. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0038] Figure 1 It is a module flow chart of the virtual image enhancement system of the infrared simulator based on image processing of the present invention;
[0039] Figure 2 is the collected infrared image;
[0040] Figure 3 is the denoised infrared image;
[0041] Figure 4 is the infrared segmentation image;
[0042] Figure 5 Infrared images in which two local blocks belonging to the same area are enhanced respectively;
[0043] Figure 6For infrared enhanced images. DETAILED DESCRIPTION
[0044] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the module flow chart of the infrared simulator virtual image enhancement system based on image processing proposed by the present invention, its specific implementation method, structure, features and effects are described in detail as follows in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0045] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
[0046] The specific scheme of the infrared simulator virtual image enhancement system based on image processing provided by the present invention is described in detail below with reference to the accompanying drawings.
[0047] See also Figure 1 , which shows a module flow chart of an infrared simulator virtual image enhancement system based on image processing provided by an embodiment of the present invention, the system includes the following modules:
[0048] Module 101: Image acquisition module.
[0049] This module is used to obtain denoised infrared images.
[0050] Due to factors such as the accuracy of the infrared simulator, the performance of the infrared sensor, and environmental conditions, the virtual infrared image generated by the infrared simulator may have a certain degree of noise. In order to effectively reduce noise while retaining the details of the infrared image and improve the quality and visualization of the infrared image, this embodiment uses a non-local mean denoising method to process the infrared image.
[0051] An infrared simulator is used to generate an infrared image, and non-local mean denoising is performed on the infrared image to obtain a denoised infrared image.
[0052] What needs to be explained is: Figure 2 is the infrared image collected in this embodiment, Figure 3 is the infrared image after denoising in this embodiment. When there is noise in the infrared image, the use of histogram equalization to enhance the infrared image will cause the noise in the infrared image to be amplified, thereby affecting the quality and details of the infrared image. Therefore, when using histogram equalization to enhance the infrared image, it is necessary to perform noise reduction processing on the infrared image to reduce the impact of noise on the clarity and quality of the infrared image. Among them, the non-local mean algorithm and the histogram equalization algorithm are both well-known technologies, and the specific methods are not introduced here.
[0053] Module 102: Grayscale change rate acquisition module.
[0054] This module is used to divide the denoised infrared image into several local blocks; obtain the local difference of each local block according to the grayscale value and gradient amplitude of all pixels in each local block; and obtain the grayscale change rate of each local block according to the size of the local difference of each local block.
[0055] Since infrared images reflect the difference in thermal radiation between the target and the background, have no color information, and have characteristics such as low contrast, blurred edges, and difficulty in expressing texture information, it is difficult to achieve a comprehensive analysis of infrared images using traditional computer vision algorithms.
[0056] The denoised infrared image is segmented using the superpixel segmentation method to obtain several local blocks.
[0057] It should be noted that superpixel segmentation uses the similarity of features between pixels in the denoised infrared image to group pixels, and uses a small number of superpixels instead of a large number of pixels to express the features of the infrared image, which greatly reduces the complexity of infrared image post-processing. Figure 4 It is the infrared segmentation image in this embodiment. Among them, super pixel segmentation is a well-known technology, and the specific method is not introduced here.
[0058] Perform canny edge detection on all local blocks to obtain the gradient amplitude of all pixels in each local block;
[0059] It should be noted that in infrared images, areas with darker brightness and relatively flat textures usually represent the background, while the main area shows higher brightness and rich texture details. When evaluating the brightness of each local block, it can be represented by the grayscale mean of the pixels in the local block; in digital images, texture features can be characterized by calculating the mean gradient amplitude of the pixels in the local block. The larger the mean gradient amplitude, the greater the difference in grayscale value between the pixels in the local block and the surrounding pixels, that is, the more obvious the texture. Among them, canny edge detection is a well-known technology, and the specific method is not introduced here.
[0060] Taking the ith local block as an example, the calculation formula for the local difference of the ith local block is:
[0061]
[0062] Among them, D i represents the local difference of the i-th local block, k i represents the grayscale mean of all pixels in the i-th local block; v irepresents the mean value of the gradient amplitude of all pixels in the ith local block; k0 represents the grayscale mean of all pixels in all local blocks adjacent to the ith local block; v0 represents the mean value of the gradient amplitude of all pixels in all local blocks adjacent to the ith local block, and Sigmoid() represents the normalization function.
[0063] What needs to be explained is: Indicates the comparison of the grayscale mean of the ith local block and all its adjacent local blocks. The larger the ratio, the higher the local difference of the ith local block. Represents the comparison between the mean gradient amplitude of the ith local block and all its adjacent local blocks. The larger the ratio, the richer the texture of the ith local block and the higher the local difference. The Sigmoid() function maps the variable to [0,1].
[0064] According to the above method, this embodiment can obtain the local difference of each local block.
[0065] When the local difference of a local block is greater, it means that the details of the local block are richer, that is, the grayscale variation range of the pixels in the local block will also be wider, and a greater degree of enhancement processing is required to highlight the details in the local block.
[0066] Taking the ith local block as an example, the grayscale change rate calculation formula of the ith local block is:
[0067]
[0068] Among them, R i represents the grayscale change rate of the i-th local block; D i represents the local difference of the ith local block, c is the preset judgment threshold, and d is the preset constant.
[0069] It should be noted that: when the local difference of the ith local block is less than or equal to c, the grayscale change rate of the ith local block is set to d, that is, the ith local block does not need to be enhanced; when the local difference of the ith local block is greater than c, the grayscale change rate of the ith local block is set to the local difference of the ith local block, that is, the ith local block needs to be enhanced. Generally speaking, the local difference of the background area is less than 0.2. Therefore, this embodiment presets the judgment threshold c to 0.2 and the preset constant d to 0, and describes this as an example.
[0070] According to the above method, this embodiment can obtain the grayscale change rate of each local block.
[0071] Module 103: Final local block acquisition module.
[0072] This module is used to obtain the possibility that any two local blocks belong to the same area based on the local differences of each local block, the area of each local block and the connection line of the pixels on the boundary of any two local blocks; based on the possibility that any two local blocks belong to the same area, obtain several final local blocks composed of all local blocks.
[0073] Under superpixel segmentation, a complete area may be divided into two local blocks due to its own characteristics, or a small area may be omitted. In this case, if two local blocks of the same area are enhanced separately, unnatural effects of infrared image enhancement may occur, such as Figure 5 shown. Figure 5 In this embodiment, two local blocks belonging to the same area are enhanced respectively for the infrared image. Therefore, it is necessary to enhance the two local blocks belonging to the same area synchronously.
[0074] The length of the line connecting any pixel point on the boundary of the a-th local block and any pixel point on the boundary of the b-th local block is calculated, and the line with the largest length connecting two pixel points on the boundary of the a-th local block and the boundary of the b-th local block is recorded as the target line between the a-th local block and the b-th local block, where a and b are not equal.
[0075] Taking the a-th local block and the b-th local block as an example, the calculation formula for the possibility that the a-th local block and the b-th local block belong to the same area is:
[0076]
[0077] Among them, G ab represents the possibility that the a-th local block and the b-th local block belong to the same region, M a represents the area of the ath local block, M b represents the area of the bth local block; min(M a ,M b ) indicates M a and M b The minimum value in the a ,M b ) indicates M a and M b The maximum value in D a represents the local difference of the ath local block, D b represents the local difference of the bth local block; || is the absolute value function, n ab is the number of pixels on the target line between the ath local block and the bth local block, t ab,j represents the gradient amplitude of the jth pixel on the target line between the ath local block and the bth local block, Represents the mean gradient amplitude of all pixels on the target line between the a-th local block and the b-th local block.
[0078] What needs to be explained is: It represents the ratio of the minimum value to the maximum value of the area of the a-th local block and the area of the b-th local block. The larger the ratio is, the more likely it is that the a-th local block and the b-th local block belong to the same area. is the gradient amplitude variance of all pixels on the target line between the a-th local block and the b-th local block. The smaller the variance is, the greater the possibility that the a-th local block and the b-th local block belong to the same area.
[0079] According to the above method, this embodiment can obtain the possibility that any two local blocks belong to the same area.
[0080] The possibility that any two local blocks belong to the same area is taken as the clustering distance between any two local blocks. The K-means clustering algorithm is used to perform clustering operations on all local blocks to obtain several clusters.
[0081] All local blocks in each cluster are combined into a final local block to obtain several final local blocks;
[0082] It should be noted that the K-means clustering algorithm is a well-known technology and the specific method will not be introduced here.
[0083] Module 104: Infrared enhanced image acquisition module.
[0084] This module is used to obtain the grayscale change rate of each final local block according to the grayscale change rate of each local block; obtain the updated grayscale value of each pixel in each final local block according to the grayscale change rate of each final local block and the grayscale value of the pixel in the final local block; and obtain the infrared enhanced image according to the updated grayscale values of all pixels in each final local block.
[0085] The average of the grayscale change rates of all the local blocks constituting each final local block is taken as the grayscale change rate of the final local block;
[0086] According to the above method, this embodiment can obtain the grayscale change rate of each final local block.
[0087] For different final local blocks, different grayscale change rates are used to adapt to the changes of local features in the infrared image;
[0088] Taking the e-th final local block as an example, the formula for calculating the updated grayscale value of the r-th pixel in the e-th final local block is:
[0089]
[0090] Among them, s e,r is the updated gray value of the rth pixel in the eth final local block, h e,r Represents the gray value of the rth pixel in the eth final local block, R e is the grayscale change rate of the e-th final local block, is the floor function.
[0091] What needs to be explained is: e,r Always less than 255. If it is greater than 255, s e,r Assign a value of 255.
[0092] According to the above method, this embodiment can obtain the updated grayscale values of all pixels in each final local block.
[0093] Replacing the grayscale value of each pixel in each final local block with the updated grayscale value to obtain an updated final local block of each final local block;
[0094] Based on all updated final local blocks, an infrared enhanced image is constructed.
[0095] like Figure 6 As shown, Figure 6 It is the infrared enhanced image in this embodiment.
[0096] So far, the present invention is completed.
[0097] In summary, in the embodiment of the present invention, a denoised infrared image is obtained to obtain several local blocks, and the local difference of each local block is obtained according to the grayscale values and gradient amplitudes of all pixels in each local block, and the grayscale change rate of each local block is obtained. Thus, the possibility that any two local blocks belong to the same area is obtained, and according to the possibility that any two local blocks belong to the same area, several final local blocks are obtained, and the grayscale change rate of each final local block is obtained, and the updated grayscale values of all pixels in each final local block are obtained. According to the updated grayscale values of all pixels in each final local block, an infrared enhanced image is obtained.
[0098] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present invention should be included in the protection scope of the present invention.
Claims
1. The infrared simulator virtual image enhancement system based on image processing is characterized by: The system includes the following modules: Image acquisition module: used to obtain denoised infrared images; Grayscale change rate acquisition module: used to divide the denoised infrared image into several local blocks; obtain the local difference of each local block according to the grayscale value and gradient amplitude of all pixels in each local block; obtain the grayscale change rate of each local block according to the size of the local difference of each local block; Final local block acquisition module: used to obtain the possibility that any two local blocks belong to the same area according to the local difference of each local block, the area of each local block and the connection line of the pixels on the boundary of any two local blocks; according to the possibility that any two local blocks belong to the same area, obtain several final local blocks composed of all local blocks; Infrared enhanced image acquisition module: used to obtain the grayscale change rate of each final local block according to the grayscale change rate of each local block; According to the grayscale change rate of each final local block and the grayscale value of the pixel in the final local block, an updated grayscale value of each pixel in each final local block is obtained; according to the updated grayscale values of all the pixels in each final local block, an infrared enhanced image is obtained; The specific calculation formula corresponding to the local difference of each local block is obtained according to the grayscale value and gradient amplitude of all pixels in each local block: Among them, D i represents the local difference of the i-th local block, k i represents the grayscale mean of all pixels in the i-th local block; v i represents the mean value of the gradient amplitude of all pixels in the ith local block; k0 represents the grayscale mean value of all pixels in all local blocks adjacent to the ith local block; v0 represents the mean value of the gradient amplitude of all pixels in all local blocks adjacent to the ith local block, and Sigmoid() represents the normalization function; The possibility that any two local blocks belong to the same area is obtained based on the local difference of each local block, the area of each local block, and the line connecting the pixels on the boundaries of any two local blocks, including: Obtaining a target connection line between any two local blocks according to the length of a connection line between pixel points on the boundaries of any two local blocks; According to the local difference and area of each local block, the number of pixels on the target line connecting any two local blocks, and the gradient amplitude of each pixel on the target line, the possibility of any two local blocks belonging to the same area is obtained; The specific calculation formula corresponding to the possibility that any two local blocks belong to the same area is obtained based on the local difference and area of each local block, the number of pixels on the target line connecting any two local blocks, and the gradient amplitude of each pixel on the target line: Among them, G ab represents the possibility that the a-th local block and the b-th local block belong to the same region, M a represents the area of the ath local block, M b represents the area of the bth local block; min(M a ,M b ) indicates M a and the minimum value in M, max(M a ,M b ) indicates M a and M b The maximum value in D a represents the local difference of the ath local block, D b represents the local difference of the bth local block; || is the absolute value function, n ab is the number of pixels on the target line between the ath local block and the bth local block, t ab,j represents the gradient amplitude of the jth pixel on the target line between the ath local block and the bth local block, Represents the mean gradient amplitude of all pixels on the target line between the a-th local block and the b-th local block.
2. The infrared simulator virtual image enhancement system based on image processing according to claim 1 is characterized in that: The specific calculation formula for obtaining the grayscale change rate of each local block according to the size of the local difference of each local block is: Among them, R i represents the grayscale change rate of the i-th local block; D i represents the local difference of the ith local block, c is the preset judgment threshold, and d is the preset constant.
3. The infrared simulator virtual image enhancement system based on image processing according to claim 1 is characterized in that: The obtaining of the target connection line between any two local blocks according to the length of the connection line between the pixel points on the boundary of any two local blocks comprises: Calculate the length of the line connecting any pixel point on the boundary of the a-th local block and any pixel point on the boundary of the b-th local block, and record the line with the longest length connecting two pixel points on the boundary of the a-th local block and the boundary of the b-th local block as the target line between the a-th local block and the b-th local block.
4. The infrared simulator virtual image enhancement system based on image processing according to claim 1 is characterized in that: The final local blocks composed of all the local blocks are obtained according to the possibility that any two local blocks belong to the same area, including: The possibility that any two local blocks belong to the same area is taken as the clustering distance between any two local blocks. The K-means clustering algorithm is used to perform clustering operations on all local blocks to obtain several clusters. All local blocks in each cluster are combined into a final local block to obtain several final local blocks.
5. The infrared simulator virtual image enhancement system based on image processing according to claim 1 is characterized in that: The step of obtaining the grayscale change rate of each final local block according to the grayscale change rate of each local block comprises: The average of the grayscale change rates of all local blocks in each final local block is recorded as the grayscale change rate of each final local block.
6. The infrared simulator virtual image enhancement system based on image processing according to claim 1 is characterized in that: The specific calculation formula corresponding to the updated grayscale value of each pixel in each final local block is obtained according to the grayscale change rate of each final local block and the grayscale value of the pixel in the final local block: Among them, s e,r is the updated grayscale value of the rth pixel in the eth final local block, h e,r Represents the gray value of the rth pixel in the eth final local block, R e is the grayscale change rate of the e-th final local block, is the floor function.
7. The infrared simulator virtual image enhancement system based on image processing according to claim 1 is characterized in that: The step of obtaining the infrared enhanced image according to the updated grayscale values of all pixels in each final local block comprises: Replacing the grayscale value of each pixel in each final local block with the updated grayscale value to obtain an updated final local block of each final local block; Based on all updated final local blocks, an infrared enhanced image is constructed.
