Infrared image optimization method and system based on resistor array infrared imaging
Through block calculation and heat conduction analysis, combined with the anti-sharpening mask method, the image blur and distortion problems caused by heat source interference in resistive array infrared imaging are solved, and the performance and simulation confidence of the infrared target scene simulation system are improved.
Patent Information
- Application Number
- CN202411110737.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-14
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-08-14
AI Technical Summary
During the infrared imaging process, the resistor array causes blurred radiance image boundaries and grayscale distortion due to heat source interference. It cannot properly represent the grayscale layering and object contours of the original infrared target image, resulting in information loss and affecting the performance of the infrared target scene simulation system. and simulation confidence.
By dividing the original infrared target image into blocks, the initial resistance radiance and conduction coefficient of each pixel point are calculated, the stable resistance radiance is calculated based on the heat conduction equation, the pixel compensation coefficient is obtained, and the unsharp mask method is used for adaptive enhancement. Optimize images.
It improves the utilization, accuracy and enhancement effect of image data, reduces the impact of heat source interference on the infrared target scene simulation system, and improves work performance and simulation confidence.
Smart Images

Figure CN118628405B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of image processing technology, and in particular to an infrared image optimization method and system based on resistor array infrared imaging. Background Art
[0002] Infrared target scene simulation is a key development in infrared technology. It effectively shortens the development cycle of infrared detectors and serves as an economical, efficient, and highly reliable calibration device, making it crucial for the development of infrared detection systems. Resistor arrays offer advantages such as a wide radiation temperature range, high image frame rate, and spectral bandwidth. They are currently the most suitable projection device for infrared simulation in China, boasting the fastest growth and greatest potential.
[0003] Currently, due to limitations of technology and cost, when the resistor array used for infrared imaging simulates the original infrared target image, there is heat source interference between adjacent resistors, resulting in problems such as blurred boundaries and grayscale distortion in the radiation brightness image actually generated by the resistor array. This makes the surrounding areas of the darker parts of the image brighter compared to the original image. Resistors in different positions exhibit different radiation brightness characteristics under the same voltage drive, and cannot normally show the grayscale layering of the original infrared target image and the correct outline of the object in the image, resulting in the loss of information in the complex infrared target image, thereby affecting the working performance and simulation confidence of the infrared target scene simulation system. Summary of the Invention
[0004] In order to solve the above technical problems, the purpose of this application is to provide an infrared image optimization method and system based on resistor array infrared imaging. The technical solutions adopted are as follows:
[0005] In a first aspect, an embodiment of the present application provides an infrared image optimization method based on resistor array infrared imaging, the method comprising the following steps:
[0006] The original infrared target image is recorded as a first image, and the image obtained by simulating the scene in the first image by driving the resistor array is recorded as a second image;
[0007] The second image is divided into blocks to obtain second image sub-blocks corresponding to each pixel point in the first image; a conduction coefficient of each second image sub-block is obtained based on the disorder of the grayscale values of the pixels in each second image sub-block and the difference in gradient values between adjacent pixels;
[0008] Obtaining the initial resistance radiometry of each pixel in the first image based on the grayscale value of each pixel in the first image; calculating the radiometry gain of each pixel in the first image in combination with the conductivity coefficient of each second image sub-block;
[0009] The pixel compensation coefficient of each pixel point in the second image sub-block is obtained according to the radiometric gain and the initial resistance radiation. The adaptive width and sharpening gain coefficient of the unsharp mask window of each pixel point in the second image are calculated based on the pixel compensation coefficient. The second image is enhanced and optimized by combining the unsharp mask method.
[0010] In one embodiment, the process of obtaining the transmission coefficient of each second image sub-block is:
[0011] In each second image sub-block, a vector composed of the gradients of pixel points in each row is recorded as a row vector, and a vector composed of the gradients of pixel points in each column is recorded as a column vector; the norm of the difference between any two adjacent column vectors is recorded as a first norm; the norm of the difference between any two adjacent row vectors is recorded as a second norm; and a fusion value of the first norm between all column vectors and the second norm between all row vectors is recorded as a first fusion value;
[0012] Calculate the chaos degree of the grayscale values of all pixels in each second image sub-block, and record it as the first chaos degree;
[0013] The transmission coefficient of each second image sub-block is negatively correlated with the corresponding first fusion value and positively correlated with the first chaos degree.
[0014] In one embodiment, the expression of the initial resistance radiometric value of each pixel in the first image is:
[0015] , where is the initial resistance radiosity of the i-th pixel in the first image, is the gray value of the i-th pixel in the first image, is the grayscale of the first image.
[0016] In one embodiment, the process of obtaining the radiometric gain of each pixel in the first image is as follows:
[0017] Using a neighborhood window of a preset first size of each pixel point in the first image as a finite volume unit of each pixel point;
[0018] Calculating the boundary resistance radiometry of each boundary pixel of each finite volume element in the first image based on the initial resistance radiometry in the neighborhood of each pixel in the first image and the conductivity coefficient of each second image sub-block; calculating the stable resistance radiometry of each pixel in the first image based on the initial resistance radiometry, the boundary resistance radiometry and the heat conduction equation;
[0019] The radiance gain of the i-th pixel in the first image The expression is: , where is the stable resistance radiance of the i-th pixel in the first image, is the initial resistance radiosity of the i-th pixel in the first image.
[0020] In one embodiment, the process of obtaining the stable resistance radiometry of each pixel in the first image is as follows:
[0021] The outermost pixel points of each finite volume unit are taken as boundary pixel points;
[0022] Calculate the difference in initial resistance radiometric values between each pixel point in the neighborhood of any boundary pixel point and the boundary pixel point, and record it as a first difference; record the fusion value of all first differences in the neighborhood of any boundary pixel point as a second fusion value;
[0023] The fusion result of the second fusion value of each boundary pixel point of each finite volume unit, the initial resistance radiometry and the conductivity coefficient of the corresponding second image sub-block is used as the boundary resistance radiometry of each boundary pixel point of each finite volume unit;
[0024] A heat conduction equation is established with the initial resistance radiosity of each pixel in the first image as the initial condition. The boundary resistance radiosity of the boundary pixels of the finite volume unit of each pixel is used as the boundary condition of the heat conduction equation, and the heat conduction equation is solved. The solution is used as the stable resistance radiosity of each pixel in the first image.
[0025] In one embodiment, the process of obtaining the pixel compensation coefficient of each pixel point in each second image sub-block is as follows:
[0026] In the first image, an interference window of a preset size is constructed with each pixel as the center; a first adjustment factor and a second adjustment factor of each pixel in the interference window are constructed based on the initial resistance radiometry and radiometry gain of the pixel in the interference window;
[0027] The fusion value of the square of the radiometric gain of all pixels in the interference window of each pixel is recorded as the first fusion result;
[0028] The expression of the pixel compensation factor of the j-th pixel in the i-th pixel interference window is: , where 、 are the first adjustment factor and the second adjustment factor of the j-th pixel in the i-th pixel interference window, respectively. is the first fusion result of the i-th pixel interference window;
[0029] The average value of the normalized pixel compensation factors of all pixels in any pixel interference window is used as the pixel compensation coefficient of the any pixel; the pixel compensation coefficient of each pixel in the first image is used as the pixel compensation coefficient of the corresponding pixel in the second image sub-block.
[0030] In one embodiment, the process of obtaining the first adjustment factor and the second adjustment factor is:
[0031] In the interference window of each pixel point, the difference in the initial resistance radiometric value between each pixel point and the central pixel point is recorded as the first radiometric value difference; the Manhattan distance between each pixel point and the central pixel point is used as the distance weight; the first adjustment factor of each pixel point is positively correlated with the first radiometric value difference and negatively correlated with the distance weight;
[0032] The fusion value of the radiometric gain of each pixel point and each pixel point in the corresponding interference window is recorded as the third fusion value; the second adjustment factor of each pixel point in the interference window is negatively correlated with the third fusion value.
[0033] In one embodiment, the process of obtaining the adaptive width of the unsharp mask window and the sharpening gain coefficient of each pixel in the second image is as follows:
[0034] The adaptive width of the unsharp mask window for the pixel in the a-th second image sub-block The calculation expression is: , where is the initial size of the unsharp mask window, is a logarithmic function with a natural constant as base, is the pixel compensation coefficient of the pixel point in the a-th second image sub-block, is the rounding function;
[0035] The sharpening gain coefficient of the pixel in the a-th second image sub-block The expression is: , where is the compensation intrinsic factor of the second image.
[0036] In one embodiment, the process of enhancing and optimizing the second image is:
[0037] The second image, the unsharp mask window width of each pixel point of the second image and the sharpening gain coefficient are used as inputs of the unsharp masking method, and the output is a sharpened and enhanced image.
[0038] In the second aspect, an embodiment of the present application also provides an infrared image optimization system based on resistive array infrared imaging, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor implements the steps of any one of the above methods when executing the computer program.
[0039] The embodiments of the present application have at least the following beneficial effects:
[0040] The present application records the original infrared target image as the first image and the grayscale infrared image simulated by the resistor array as the second image; divides the second image into blocks to facilitate the use of the correlation information between the first image and the second image, thereby improving the utilization rate of the image data; calculates the initial resistor radiometry and the boundary resistor radiometry based on the grayscale value of the pixel points of the first image, thereby improving the accuracy of the subsequent analysis of the degree of interference of different pixels of the second image with the heat source; calculates the stable resistor radiometry by analyzing the deviation of the first image caused by the interference of the resistor heat source and the thermal imaging of the resistor array under ideal conditions; calculates the pixel compensation coefficient based on the distribution of the stable resistor radiometry of the pixel points at different positions and the degree of influence of the heat source interference on different positions of the second image; further calculates the unsharp mask window width and sharpening gain coefficient of each pixel point based on the characteristics that the pixel points at different positions of the second image are interfered with by the heat source to different degrees, and adopts the unsharp mask method to perform adaptive sharpening enhancement on the second image, thereby improving the enhancement effect of the second image, reducing the influence of the heat source interference between the resistors with different temperatures in the resistor array on the second image, and improving the working performance and simulation confidence of the infrared target scene simulation system. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solutions and advantages of the embodiments of the present application or the prior art, the following is a brief introduction to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0042] Figure 1 A flowchart of the steps of an infrared image optimization method based on resistor array infrared imaging provided in one embodiment of the present application;
[0043] Figure 2 Schematic diagram of the specific steps of the infrared image optimization method based on resistor array infrared imaging. DETAILED DESCRIPTION
[0044] To further illustrate the technical means and effectiveness of this application to achieve its intended purpose, the following, in conjunction with the accompanying drawings and preferred embodiments, details the specific implementation, structure, features, and effectiveness of the infrared image optimization method and system based on resistor array infrared imaging proposed in this application. In the following description, references to different "one embodiment" or "another embodiment" do not necessarily refer to the same embodiment. Furthermore, specific features, structures, or characteristics of one or more embodiments may be combined in any suitable manner.
[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 application belongs.
[0046] The specific solutions of the infrared image optimization method and system based on resistor array infrared imaging provided by the present application are described in detail below with reference to the accompanying drawings.
[0047] See also Figure 1 , which shows a flowchart of the steps of an infrared image optimization method based on resistor array infrared imaging provided by an embodiment of the present application, the method comprising the following steps:
[0048] In step S1 , an original infrared target image is recorded as a first image, and an image obtained by simulating a scene in the original infrared target image by driving a resistor array is recorded as a second image.
[0049] An original infrared target image is read from memory, referred to as the first image. The scene in the first image is simulated by driving a resistor array in an infrared scene simulation system, resulting in a grayscale infrared image generated by the resistor array, referred to as the second image. The infrared scene simulation system is well known, and the detailed process is omitted here.
[0050] Step S2: Obtain a gradient image of the second image, divide the second image and its gradient image into blocks according to the number of pixels in the first image to obtain second image sub-blocks and gradient image sub-blocks respectively; obtain a conduction coefficient of each second image sub-block according to the disorder of the grayscale values of the pixels in the second image sub-block and the gradient difference between adjacent pixels in the gradient image sub-block.
[0051] (1) Obtain the gradient image of the second image, and divide the second image and its gradient image into blocks according to the number of pixels in the first image to obtain each second image sub-block and each gradient image sub-block:
[0052] Performing gradient detection on the second image using a Sobel algorithm to obtain a gradient image of the second image;
[0053] In this application, both the first image and the second image are square. Since each pixel in the first image corresponds one-to-one to each resistor in the resistor array, the number of pixels in the first image is obtained and recorded as the first number; the second image is divided into a first number of square image blocks of the same size and shape, recorded as second image sub-blocks, and each sub-block corresponds to a pixel in the first image; wherein the width of the first image is the same as the width of the resistor array, both are 128; the width of the second image is set to 512; and the grayscale of the first image and the second image is set to 256. It should be noted that the width of the first image and the resistor array, the width of the second image, and the grayscale value can be set by the implementer according to actual conditions and are not specifically limited in this embodiment. Since the pixels in the first image correspond one-to-one to the resistors in the resistor array, under ideal conditions without heat source interference between resistors, the infrared radiation intensity of the resistor should be positively correlated with the grayscale value of the pixel in the first image.
[0054] It should be noted that the positive correlation described in this application is that the independent variable increases as the dependent variable increases, and the independent variable decreases as the dependent variable decreases. The specific positive correlation can be determined according to actual conditions during application, and this application does not impose any special restrictions.
[0055] The gradient image of the second image is divided into blocks in the same manner as the second image to obtain gradient image sub-blocks, and each pixel in the first image also corresponds one-to-one to each gradient image sub-block.
[0056] (2) The conduction coefficient of each second image sub-block is obtained based on the disorder of the grayscale values of the pixels in the second image sub-block and the grayscale value difference between adjacent pixels in the gradient image sub-block:
[0057] (2.1) In each gradient image sub-block, the vector consisting of the values of the pixels in each row in order from left to right is denoted as a row vector, and the vector consisting of the values of the pixels in each column in order from top to bottom is denoted as a column vector.
[0058] (2.2) In each gradient image sub-block, the L² norm of the difference between any two adjacent column vectors is calculated, denoted as the first norm; the L² norm of the difference between any two adjacent row vectors is calculated, denoted as the second norm; the fused value of the first norm between all column vectors and the second norm between all row vectors is denoted as the first fused value; wherein, calculating the difference between two vectors is a well-known technique, and the specific process is not repeated here.
[0059] Calculate the chaos degree of the grayscale values of all pixels in each second image sub-block, and record it as the first chaos degree;
[0060] The conduction coefficient of each second image sub-block is negatively correlated with the first fusion value of the corresponding gradient image sub-block, and is positively correlated with the first chaos degree.
[0061] It should be understood that the degree of chaos described in this application is the degree of chaos of the data distribution, which can be the information entropy, variance and standard deviation of the data, etc.; the fusion is to combine multiple variables, which can be specifically addition, multiplication, etc.; the negative correlation is that the independent variable decreases as the dependent variable increases, and the independent variable increases as the dependent variable decreases. The specific negative correlation can be determined according to actual conditions during the application process, and this application does not impose any special restrictions.
[0062] Preferably, as an embodiment of the present application, the first fusion value may be the cumulative sum of all the first norms and all the second norms in each gradient image sub-block; the first disorder degree may be the information entropy of the grayscale values of all pixels in each second image sub-block; the result of calculating an exponential function with a natural constant as the base and the negative of the first fusion value as the exponent is calculated; the conduction coefficient of each second image sub-block may be the product of the result of calculating the exponential function of the corresponding gradient image sub-block and the first disorder degree;
[0063] In other embodiments of the present application, the first fusion value may be the sum of the average values of all the first norms and the average values of all the second norms in each gradient image sub-block; the first chaos degree may be the entropy of the gray level co-occurrence matrix of the gray values of all pixels in each second image sub-block, wherein the gray level co-occurrence matrix is a well-known technology and the specific process will not be repeated; the conduction coefficient of each second image sub-block may be the ratio of the first chaos degree to the first fusion value of the corresponding gradient image sub-block.
[0064] In an ideal state without heat conduction, the grayscale values within the second image sub-block are consistent. However, due to heat interference between resistors of different temperatures, the temperature at the edges of the resistors varies, causing the grayscale values of the sub-block in the second image captured by the infrared thermal imager to change. The more chaotic the distribution of pixel grayscale values within the second image sub-block, and the greater the degree of chaos in the sub-block's grayscale values, the more intense the heat conduction between the corresponding resistor and its surrounding resistors. On the other hand, as the image becomes more disturbed, the grayscale values within the sub-block become closer, the grayscale values within the corresponding gradient image sub-block change more gradually, and the calculated conductivity coefficient of the second image sub-block increases.
[0065] Step S3, obtaining the initial resistance radiometry of each pixel point in the first image based on the grayscale value of each pixel point in the first image; obtaining the boundary resistance radiometry of the boundary pixel points of each finite volume unit in the first image based on the difference between the initial resistance radiometry in the neighborhood of each pixel point in the first image and the conduction coefficient of each second image sub-block.
[0066] (1) In order to analyze the heat source interference between resistors, the initial resistor radiometry of each pixel is calculated based on the grayscale value of each pixel in the first image. The expression is: , where is the initial resistance radiosity of the i-th pixel in the first image, is the gray value of the i-th pixel in the first image, is the grayscale of the first image.
[0067] The grayscale value of an infrared thermal image captured by a thermal imager is proportional to the object's radiance, while the temperature of the resistor array is used to calculate heat conduction across the resistor array. According to the Stefan-Boltzmann law, the relationship between surface temperature and radiance is not linear. To ensure accuracy, the initial radiance of the resistor array's infrared pixels is obtained by optimizing the grayscale values of the pixels in the sub-image blocks, reflecting the initial temperature of the resistor array. By normalizing the image's grayscale, the initial radiance of each pixel is calculated, improving the accuracy of subsequent analysis of the degree of interference from heat sources at different pixels in the second image.
[0068] (2) With each pixel in the first image as the center, a neighborhood window of a preset first size for each pixel is set as a finite volume unit of each pixel. It should be noted that the value of the first size can be set by the implementer. In this embodiment, the first size is set to 3.
[0069] (3) Based on the difference between the initial resistance radiometric values in the neighborhood of each pixel point in the first image and the conductivity coefficient of each sub-block of the second image, the boundary resistance radiometric value of the boundary pixel point of the finite volume unit of each pixel point in the first image is obtained:
[0070] In order to correct the grayscale distortion of different degrees produced by each pixel of the second image, it is necessary to obtain the heat source interference caused by the temperature difference between the resistors in the resistor array, and use it to calculate the subsequent compensation for each pixel of the second image.
[0071] In the first image, the outermost pixel points of each finite volume element are used as the boundary pixel points of the finite volume element;
[0072] In each finite volume unit, the difference between the initial resistance radiometric values of each pixel point in the neighborhood of any boundary pixel point and the said boundary pixel point is calculated and recorded as the first difference; the fusion value of all the first differences in the neighborhood of any boundary pixel point is recorded as the second fusion value; it should be noted that the size of the boundary pixel point neighborhood can be set by the implementer. In this embodiment, the size of the boundary pixel point neighborhood is set to 3 3;
[0073] Since each pixel of the first image corresponds one-to-one to each sub-block in the second image, each finite volume element of the first image corresponds one-to-one to each sub-block in the second image. The fusion result of the second fused value, initial resistance radiometric value, and conductivity coefficient of each boundary pixel of each finite volume element is used as the boundary resistance radiometric value of each boundary pixel of each finite volume element. The boundary resistance radiometric value of each boundary pixel of each finite volume element is positively correlated with the second fused value, initial resistance radiometric value, and conductivity coefficient of each boundary pixel of each finite volume element.
[0074] Preferably, as an embodiment of the present application, the second fused value may be an average value of all first difference values in the neighborhood of any boundary pixel point; the product of the second fused value of each boundary pixel point of each finite volume element and the conductivity coefficient of the corresponding sub-block in the second image is calculated, and recorded as the first product; the fused result may be the sum of the initial resistance radiosity of each boundary pixel point of each finite volume element in the first image and the first product;
[0075] In other embodiments of the present application, the second fusion value can be the normalized value of the sum of all first difference values in the neighborhood of any boundary pixel point; the fusion result can be the product of the second fusion value of each boundary pixel point of each finite volume unit, the initial resistance radiosity and the conduction coefficient of the corresponding second image sub-block.
[0076] The conductivity coefficient of the second image sub-block is used as a weight to adjust the boundary resistance radiosity. When the initial resistance radiosity of the pixels surrounding each pixel in the first image is high, the initial resistance radiosity of the central pixel will gradually increase as heat conduction between the resistors proceeds, and the boundary resistance radiosity will be larger. On the contrary, when the initial resistance radiosity of the surrounding pixels is low, the initial resistance radiosity of the central pixel will gradually decrease, and the boundary resistance radiosity will be smaller.
[0077] Step S4, based on the initial resistance radiometry and the boundary resistance radiometry, combined with the heat conduction equation, calculate the stable resistance radiometry of each pixel in the first image; based on the initial resistance radiometry and the stable resistance radiometry, calculate the radiometry gain of each pixel in the first image.
[0078] (1) The heat conduction equation is established with the initial resistance radiometry of each pixel in the first image as the initial condition; the boundary resistance radiometry of the boundary pixel points of the finite volume unit of each pixel point is used as the boundary condition of the heat conduction equation, and the heat conduction equation is solved using the finite volume method. The solution is used as the stable resistance radiometry of each pixel point in the first image, reflecting the thermal imaging distribution of the resistor array simulated by the first image under ideal conditions.
[0079] (2) The expression of the radiance gain of each pixel in the first image is:
[0080] , where is the radiance gain of the i-th pixel in the first image, is the stable resistance radiance of the i-th pixel in the first image, is the initial resistance radiosity of the i-th pixel in the first image.
[0081] Step S5: constructing an interference window for each pixel in the first image, and calculating a pixel compensation coefficient for each pixel in the first image according to the radiometric gain and the initial resistance radiation.
[0082] (1) In the first image, a neighborhood window constructed with each pixel as the center and a Manhattan distance of a preset first length as the radius is recorded as the interference window of each pixel. It should be noted that the first length can be set by the implementer. In this embodiment, the first length is set to 3.
[0083] (2) Construct the first adjustment factor for each pixel in the interference window based on the initial resistance radiometric difference of the pixel in the interference window:
[0084] In the interference window of each pixel point, the difference in the initial resistance radiometry between each pixel point and the central pixel point is recorded as the first radiometry difference; the Manhattan distance between each pixel point and the central pixel point is used as the distance weight;
[0085] The first adjustment factor of each pixel in the interference window is positively correlated with the first radiometric difference and negatively correlated with the distance weight.
[0086] Preferably, as an embodiment of the present application, the first adjustment factor of each pixel in the interference window may be a ratio of the first radiometric difference to the distance weight;
[0087] In other embodiments of the present application, the first adjustment factor of each pixel in the interference window may be a ratio of the first radiometric difference to the square of the distance weight.
[0088] The greater the difference in initial resistance radiometry between each pixel in the interference window and the central pixel, the more dramatic the change in grayscale value around the central pixel, and the greater the influence of the central pixel on the surrounding pixels. At the same time, the closer the pixel is to the central pixel, the stronger the mutual influence between the two, the larger the first adjustment factor, and the larger the corresponding pixel compensation coefficient should be.
[0089] (3) Calculate the second adjustment factor of each pixel in the interference window based on the radiance gain of the pixel in the interference window:
[0090] The fusion value of the radiometric gain of each pixel point and each pixel point in its interference window is recorded as the third fusion value;
[0091] The second adjustment factor of each pixel in the interference window is negatively correlated with the third fusion value.
[0092] Preferably, as an embodiment of the present application, the third fusion value may be a normalized value of the product of each pixel and the radiometric gain of each pixel in its interference window; the second adjustment factor of each pixel in the interference window may be a calculation result of an exponential function with a natural constant as the base and a negative number of the third fusion value as the exponent;
[0093] In other embodiments of the present application, the third fusion value may be the sum of the normalized values of the radiance gain of each pixel point and each pixel point in its interference window.
[0094] When the value of the radiometric gain of each pixel point and the central pixel point in the interference window is greater than zero and less than zero, the heat source interference between the two is stronger, and the corresponding pixel compensation factor should be larger; when the radiometric gain of each pixel point and the central pixel point in the interference window is greater than zero or less than zero, there is still interference between the two, but the impact on each other is not significant, so the corresponding pixel compensation factor should be smaller.
[0095] (4) The fusion value of the square of the radiance gain of all pixels in the interference window of each pixel is recorded as the first fusion result.
[0096] Preferably, as an embodiment of the present application, the first fusion result may be the square of an average value of the radiance gain of all pixel points in the interference window of each pixel point.
[0097] (5) The expression of the pixel compensation factor of each pixel in the interference window of each pixel is:
[0098] , where is the pixel compensation factor of the j-th pixel in the i-th pixel interference window, 、 are the first adjustment factor and the second adjustment factor of the j-th pixel in the i-th pixel interference window, respectively. is the first fusion result of the i-th pixel interference window.
[0099] (6) The average value of the normalized pixel compensation factors of all pixels in the interference window of any pixel point is used as the pixel compensation coefficient of the any pixel point.
[0100] Due to thermal interference between resistors, there is a deviation between the infrared radiation intensity simulated by the resistor array and the grayscale value of the first image. Therefore, the difference between the initial and stable resistor radiometric values at each pixel is used to analyze the error caused by thermal interference in the second image. A larger square of the mean radiometric gain in the interference window indicates a more severe thermal interference between pixels within the window, and a larger corresponding pixel compensation coefficient. When subsequently enhancing the image using the unsharp masking method, a larger unsharp mask window width and sharpening gain coefficient should be selected.
[0101] Step S6, obtaining the pixel compensation coefficient of each pixel in the second image sub-block based on the pixel compensation coefficient of each pixel in the first image; and calculating the adaptive width and sharpening gain coefficient of the unsharp mask window of each pixel in the second image based on the pixel compensation coefficient of each pixel in the second image sub-block.
[0102] (1) The pixel compensation coefficient of each pixel point in the first image is used as the pixel compensation coefficient of the corresponding pixel point in the second image sub-block.
[0103] (2) The traditional unsharp masking method uses the same unsharp mask window and sharpening gain coefficient for the image. It cannot adjust to the different degrees of heat source interference of pixels at different positions in the second image, which affects the enhancement effect of the second image. Therefore, it is necessary to calculate the unsharp mask window and sharpening gain coefficient for each pixel in the second image based on the obtained pixel compensation coefficient, and then perform adaptive image sharpening on the second image.
[0104] (2.1) Setting the initial size of the unsharp mask window. It should be noted that the initial size of the unsharp mask window can be set by the implementer. In this embodiment, the initial size of the unsharp mask window is set to 5*5, and the initial width of the unsharp mask window is 5. The calculation expression of the adaptive width of the unsharp mask window for each pixel in the second image sub-block is:
[0105] , where is the adaptive width of the unsharp mask window for the pixel in the a-th second image sub-block, is the initial size of the unsharp mask window, is a logarithmic function with a natural constant as base, is the pixel compensation coefficient of the pixel point in the a-th second image sub-block, The rounding function.
[0106] (2.2) The compensation intrinsic factor of the second image is set. It should be noted that the compensation intrinsic factor of the second image can be set by the implementer. In this embodiment, the compensation intrinsic factor of the second image is set to 1. The sharpening gain coefficient of the pixel points in each second image sub-block is positively correlated with the pixel compensation coefficient of the pixel points in the second image sub-block. The expression of the sharpening gain coefficient of the pixel points in each second image sub-block can be:
[0107] , where is the sharpening gain coefficient of the pixel in the a-th second image sub-block, is the compensation intrinsic factor of the second image, is the pixel compensation coefficient of the pixel in the a-th second image sub-block.
[0108] In other embodiments of the present application, the sharpening gain coefficient of the pixel points in each second image sub-block may be the sum of the compensation intrinsic factor of the second image and the pixel compensation coefficient of the pixel points in each second image sub-block.
[0109] When the pixel compensation coefficient is larger, the corresponding pixel point is more affected by the interference of the heat source, the calculated sharpening gain coefficient and the unsharp mask window width are larger, and the image edge details can be enhanced when the unsharp mask method is used for image sharpening.
[0110] Step S7: According to the unsharp mask window width and sharpening gain coefficient of each pixel point, the second image is enhanced and optimized by using the unsharp mask method.
[0111] The second image is used as input for the unsharp masking method. The unsharp masking window width and sharpening gain coefficient for each pixel in the second image are combined to eliminate heat source interference in the second image. A sharpened and enhanced image is then output, completing the optimization of the resistor array infrared imaging image. The unsharp masking method is well known, and the specific process will not be detailed here.
[0112] The specific steps of the above method are shown in the schematic diagram Figure 2 shown.
[0113] Based on the same inventive concept as the above-mentioned method, an embodiment of the present application also provides an infrared image optimization system based on resistor array infrared imaging, comprising a memory, a processor, and a computer program stored in the memory and running on the processor. When the processor executes the computer program, the steps of any one of the above-mentioned infrared image optimization methods based on resistor array infrared imaging are implemented.
[0114] In summary, the embodiment of the present application provides an infrared image optimization method based on resistor array infrared imaging. The present application records the original infrared target image as the first image and the grayscale infrared image simulated by the resistor array as the second image; the second image is divided into blocks to facilitate the use of the correlation information between the first image and the second image, thereby improving the utilization rate of the image data; the initial resistor radiometry and the boundary resistor radiometry are calculated based on the grayscale value of the pixel point of the first image, thereby improving the accuracy of the subsequent analysis of the degree of interference of different pixel points of the second image by the heat source; by analyzing the interference of the first image by the resistor heat source under the ideal state with the resistor array thermal imaging The deviation is calculated to obtain the stable resistor radiometry; the pixel compensation coefficient is calculated according to the distribution of the stable resistor radiometry of pixels at different positions and the degree of influence of heat source interference on different positions of the second image; according to the characteristics that pixels at different positions of the second image are interfered with by heat sources to different degrees, the unsharp mask window width and sharpening gain coefficient of each pixel are further calculated, and the unsharp mask method is used to perform adaptive sharpening enhancement on the second image, which improves the enhancement effect of the second image, reduces the influence of heat source interference between resistors with different temperatures in the resistor array on the second image, and improves the working performance and simulation confidence of the infrared target scene simulation system.
[0115] It should be noted that the order in which the embodiments of the present application are presented is for illustrative purposes only and does not necessarily represent the superiority or inferiority of the embodiments. Furthermore, the above descriptions are of specific embodiments of the present application. Furthermore, the processes depicted in the accompanying drawings do not necessarily require the specific order or sequential sequence shown to achieve the desired results. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0116] The various embodiments in this application are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other. Each embodiment focuses on the differences from other embodiments.
[0117] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the principles of the present application shall be included in the scope of protection of the present application.
Claims
1. An infrared image optimization method based on resistor array infrared imaging, characterized in that: The method comprises the following steps: The original infrared target image is recorded as the first image, and the scene in the first image is simulated by driving the resistor array, and the obtained image is recorded as the second image; The second image is divided into blocks to obtain second image sub-blocks corresponding to each pixel point in the first image; the conduction coefficient of each second image sub-block is obtained according to the disorder degree of the gray value of the pixel point in each second image sub-block and the difference in the gradient value between adjacent pixels; Obtaining the initial resistance radiometry of each pixel in the first image based on the grayscale value of each pixel in the first image; calculating the radiometry gain of each pixel in the first image in combination with the conductivity coefficient of each second image sub-block; Obtaining pixel compensation coefficients of pixels in each second image sub-block according to the radiometric gain and the initial resistance radiometric value; calculating the adaptive width and sharp gain coefficient of the sharpening mask window of each pixel in the second image based on the pixel compensation coefficient; and enhancing and optimizing the second image by combining the unsharp mask method; The expression of the initial resistance radiometric value of each pixel in the first image is: , where is the initial resistance radiosity of the i-th pixel in the first image, is the gray value of the i-th pixel in the first image, is the gray level of the first image; The process of obtaining the radiometric gain of each pixel in the first image is as follows: Using a neighborhood window of a preset first size of each pixel point in the first image as a finite volume unit of each pixel point; Calculate the boundary resistance radiometry of the boundary pixel points of each finite volume unit in the first image based on the initial resistance radiometry in the neighborhood of each pixel point in the first image and the conduction coefficient of each second image sub-block; calculate the stable resistance radiometry of each pixel point in the first image based on the initial resistance radiometry, the boundary resistance radiometry and the heat conduction equation; The radiance gain of the i-th pixel in the first image The expression is: , where is the stable resistance radiance of the i-th pixel in the first image, is the initial resistance radiosity of the i-th pixel in the first image; The process of obtaining the adaptive width of the unsharp mask window and the sharpening gain coefficient of each pixel in the second image is as follows: Adaptive width of the unsharp mask window for pixels in the a-th second image sub-block The calculation expression is: , where is the initial size of the sharpening mask window, is a logarithmic function with a natural constant as base, is the pixel compensation coefficient of the pixel in the a-th second image sub-block, is the rounding function; The sharpening gain coefficient of the pixel in the a-th second image sub-block The expression is: , where is the compensation intrinsic factor of the second image.
2. The infrared image optimization method based on resistor array infrared imaging according to claim 1, characterized in that: The process of obtaining the transmission coefficient of each second image sub-block is as follows: In each second image sub-block, a vector composed of the gradients of each row of pixels is recorded as a row vector, and a vector composed of the gradients of each column of pixels is recorded as a column vector; a norm of the difference between any two adjacent column vectors is recorded as a first norm; a norm of the difference between any two adjacent row vectors is recorded as a second norm; a fusion value of the first norm between all column vectors and the second norm between all row vectors is recorded as a first fusion value; Calculate the disorder degree of the grayscale values of all pixels in each second image sub-block, and record it as the first disorder degree; The conduction coefficient of each second image sub-block is negatively correlated with the corresponding first fusion value, and positively correlated with the first confusion degree.
3. The infrared image optimization method based on resistor array infrared imaging according to claim 1, characterized in that: The process of obtaining the stable resistance radiometry of each pixel in the first image is as follows: The outermost pixel points of each finite volume unit are taken as boundary pixel points; Calculate the difference in initial resistance radiometric values between each pixel point in the neighborhood of any boundary pixel point and the any boundary pixel point, and record it as a first difference; Recording the fused value of all first difference values in the neighborhood of any boundary pixel point as the second fused value; The fusion result of the second fusion value of each boundary pixel point of each finite volume unit, the initial resistance radiometry and the conductivity coefficient of the corresponding second image sub-block is used as the boundary resistance radiometry of each boundary pixel point of each finite volume unit; Taking the initial resistance radiosity of each pixel in the first image as the initial condition, a heat conduction equation is established; The boundary resistance radiometry of the boundary pixel points of the finite volume unit of each pixel point is used as the boundary condition of the heat conduction equation, the heat conduction equation is solved, and the solution result is used as the stable resistance radiometry of each pixel point in the first image.
4. The infrared image optimization method based on resistor array infrared imaging according to claim 1, characterized in that: The process of obtaining the pixel compensation coefficients of the pixels in each second image sub-block is as follows: In the first image, an interference window of a preset scale is constructed with each pixel as the center; a first adjustment factor and a second adjustment factor of each pixel in the interference window are constructed based on the initial resistance radiometry and radiometry gain of the pixel in the interference window; The fusion value of the radiometric gain of all the pixels in the interference window of each pixel is recorded as the first fusion result; The expression of the pixel compensation factor of the jth pixel in the i-th pixel interference window is: , where , are the first adjustment factor and the second adjustment factor of the j-th pixel in the i-th pixel interference window, respectively. is the first fusion result of the i-th pixel interference window; The average value of the normalized pixel compensation factors of all pixels in any pixel interference window is used as the pixel compensation coefficient of any pixel; the pixel compensation coefficient of each pixel in the first image is used as the pixel compensation coefficient of the corresponding pixel in the second image sub-block.
5. The infrared image optimization method based on resistor array infrared imaging according to claim 4, characterized in that: The process of obtaining the first adjustment factor and the second adjustment factor is as follows: In the interference window of each pixel point, the difference of the initial resistance radiometric between each pixel point and the central pixel point is recorded as the first radiometric difference; the Manhattan distance between each pixel point and the central pixel point is used as the distance weight; The first adjustment factor of each pixel point is positively correlated with the first radiometric difference and negatively correlated with the distance weight; The fusion value of the radiance gain of each pixel point and each pixel point in the corresponding interference window is recorded as the third fusion value; the second adjustment factor of each pixel point in the interference window is negatively correlated with the third fusion value.
6. The infrared image optimization method based on resistor array infrared imaging according to claim 1, characterized in that: The process of enhancing and optimizing the second image is as follows: The second image, the unsharp mask window width of each pixel point of the second image and the sharpening gain coefficient are used as inputs of the unsharp masking method, and the output is a sharpened and enhanced image.
7. An infrared image optimization system based on resistor array infrared imaging, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
