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 expressiveness of infrared images and system performance are improved.
Patent Information
- Application Number
- CN202411110737.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-14
- Publication Date
- 2024-09-10
- 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, and cannot properly represent the grayscale layering and object contours of the original infrared target image, causing 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 CN118628405A
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 an important product in the development of infrared technology. It can effectively shorten the development cycle of infrared detectors. It is an economical, efficient and reliable calibration device, which is of great significance to the development of infrared detection systems. The resistor array has the advantages of wide radiation temperature range, high image frame rate and spectral bandwidth. It is the most suitable projection device for infrared simulation in China, and it is also the fastest growing and most promising projection device.
[0003] At present, due to the limitations of technology and cost factors, when the resistor array used for infrared imaging simulates the original infrared target image, there is heat source interference between adjacent resistors, which causes the radiation brightness image actually generated by the resistor array to have blurred boundaries, grayscale distortion and other problems, making the surroundings of the darker parts of the image brighter than the original image. Resistors in different positions show different radiation brightness characteristics under the same voltage drive, and cannot normally show the grayscale hierarchy of the original infrared target image and the correct contours of the objects 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: 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: 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; 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; 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; and the second image is enhanced and optimized by combining the unsharp mask method.
[0005] In one embodiment, the process of acquiring the transmission coefficient of each second image sub-block is: 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.
[0006] In one embodiment, 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 grayscale of the first image.
[0007] In one embodiment, 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.
[0008] In one embodiment, the process of acquiring the stable resistance radiometry of each pixel point 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 said any boundary pixel point, and record it as a first difference; record the fused value of all first differences in the neighborhood of the said any boundary pixel point as a 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; The heat conduction equation is established with the initial resistance radiometry of each pixel in the first image as the initial condition; the heat conduction equation is solved with the boundary resistance radiometry of the boundary pixel of the finite volume unit of each pixel as the boundary condition of the heat conduction equation, and the solution is used as the stable resistance radiometry of each pixel in the first image.
[0009] In one embodiment, the process of obtaining the pixel compensation coefficient of the pixel point in each second image sub-block is: 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 square 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.
[0010] In one embodiment, the process of obtaining the first adjustment factor and the second adjustment factor is: In the interference window of each pixel point, the difference of 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; 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.
[0011] In one embodiment, the process of obtaining the adaptive width and sharpening gain coefficient of the sharpening mask window of each pixel point 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.
[0012] In one embodiment, the process of enhancing and optimizing the second image is: 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.
[0013] In a 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-mentioned methods when executing the computer program.
[0014] The embodiments of the present application have at least the following beneficial effects: The present application records the original infrared target image as the first image, and records 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 radiance and the boundary resistor radiance according to 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 pixels of the second image with the heat source; calculates the stable resistor radiance by analyzing the deviation of the first image caused by the interference of the resistor heat source with the resistor array thermal imaging under the ideal state; calculates the pixel compensation coefficient according to the distribution of the stable resistor radiance of the pixel points at different positions, and the degree of influence of the heat source interference on the different positions of the second image; further calculates the sharpening mask window width and sharpening gain coefficient of each pixel point in view of 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
[0015] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present application or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. 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 creative work.
[0016] 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; Figure 2 Schematic diagram of the specific steps of the infrared image optimization method based on resistor array infrared imaging. DETAILED DESCRIPTION
[0017] In order to further explain the technical means and effects adopted by the present application to achieve the predetermined invention purpose, the infrared image optimization method and system based on resistor array infrared imaging proposed in the present application, its specific implementation, 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.
[0018] 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.
[0019] The specific scheme of the infrared image optimization method and system based on resistor array infrared imaging provided by the present application is described in detail below with reference to the accompanying drawings.
[0020] 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: Step S1, recording an original infrared target image as a first image, and recording an image obtained by simulating a scene in the original infrared target image by driving a resistor array as a second image.
[0021] The original infrared target image is read from the memory and recorded as the first image; the scene in the first image is simulated by driving the resistor array in the infrared scene simulation system to obtain a grayscale infrared image generated by the resistor array and recorded as the second image. The infrared scene simulation system is a well-known technology and the specific process is not repeated here.
[0022] Step S2, obtaining the gradient image of the second image, dividing 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; obtaining the conduction coefficient of each second image sub-block according to the disorder of the grayscale value of the pixel point in the second image sub-block and the gradient difference between adjacent pixels in the gradient image sub-block.
[0023] (1) Obtain a 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 second image sub-blocks and gradient image sub-blocks respectively: Performing gradient detection on the second image by using a Sobel algorithm to obtain a gradient image of the second image; In the present application, both the first image and the second image are square. Since each pixel in the first image corresponds to each resistor in the resistor array one by one, the number of pixels in the first image is obtained, which is recorded as the first number; the second image is divided into a first number of square image blocks of the same size and shape, which are 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 matrix, both of which are 128; the width of the second image is set to 512; the grayscale of the first image and the second image is set to 256. It should be noted that the implementer can set the width of the first image and the resistor array, the width of the second image, and the grayscale value according to actual conditions, and this embodiment does not make specific restrictions. Since the pixels in the first image correspond to the resistors in the resistor array one by one, in an ideal state 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.
[0024] It should be noted that the positive correlation described in this application means 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.
[0025] 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 then each pixel point in the first image also corresponds to each gradient image sub-block one by one.
[0026] (2) The conduction coefficient of each second image sub-block is obtained according to the disorder of the grayscale value of the pixel points in the second image sub-block and the grayscale value difference between adjacent pixels in the gradient image sub-block: (2.1) In each gradient image sub-block, the vector composed of the values of the pixel points in each row from left to right is denoted as a row vector, and the vector composed of the values of the pixel points in each column from top to bottom is denoted as a column vector.
[0027] (2.2) In each gradient image sub-block, the L2 norm of the difference between column vectors of any two adjacent columns is calculated, which is recorded as the first norm; the L2 norm of the difference between row vectors of any two adjacent rows is calculated, which is recorded as the second norm; the fused value of the first norm between all column vectors and the second norm between all row vectors is recorded 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; 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 first fusion value of the corresponding gradient image sub-block, and is positively correlated with the first confusion degree.
[0028] It should be understood that the degree of chaos described in this application is the degree of chaos of 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 relationship 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 relationship can be determined according to actual conditions during the application process, and this application does not impose any special restrictions.
[0029] 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 chaos degree may be the information entropy of the grayscale values of all pixels in each second image sub-block; the calculation result of an exponential function with a natural constant as the base and a negative number 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 calculation result of the exponential function of the corresponding gradient image sub-block and the first chaos degree; 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.
[0030] The grayscale values in the second image sub-block are consistent in an ideal state where there is no heat conduction. However, due to the interference of heat sources between resistors of different temperatures, the temperature at the edge of the resistor will change, which in turn causes the grayscale value of the sub-block in the second image captured by the infrared thermal imager to change. The more chaotic the distribution of the grayscale values of the pixels in the second image sub-block, the greater the chaos of the sub-block grayscale value, indicating that the degree of heat conduction between the corresponding resistor and the surrounding resistors is more intense. On the other hand, when the image is more disturbed, the grayscale values in the sub-block become closer and closer, the grayscale value changes in the corresponding gradient image sub-block are more gradual, and the calculated conduction coefficient of the second image sub-block is greater.
[0031] Step S3, obtaining the initial resistance radiometry of each pixel in the first image based on the grayscale value of each pixel in the first image; obtaining the boundary resistance radiometry of the boundary pixel of each finite volume unit in the first image based on the difference between the initial resistance radiometry in the neighborhood of each pixel in the first image and the conduction coefficient of each second image sub-block.
[0032] (1) In order to analyze the heat source interference between resistors, the initial resistor radiometry of each pixel is calculated according to 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.
[0033] The grayscale value of the image acquired by the infrared thermal imager is proportional to the radiance of the object, while the temperature of the resistor array is used to calculate the heat conduction between the resistor arrays. According to the Stefan-Boltzmann law, there is no linear relationship between the temperature and radiance of the surface of an object. In order to achieve the accuracy of the calculation, the initial radiance of the infrared pixel of the resistor array is obtained by optimizing the grayscale value of the pixel of the sub-block image, reflecting the initial temperature value of the resistor array. The initial resistor radiance of each pixel is calculated by normalizing the grayscale of the image, which improves the accuracy of the subsequent analysis of the degree of interference of different pixels of the second image by the heat source.
[0034] (2) With each pixel in the first image as the center, a neighborhood window of a preset first size of 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.
[0035] (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 second image sub-block, 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: In order to correct the grayscale distortions 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.
[0036] 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; 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 neighborhood of the boundary pixel point can be set by the implementer. In this embodiment, the size of the neighborhood of the boundary pixel point is set to 3 3; Since each pixel point of the first image corresponds to each sub-block in the second image one-to-one, each finite volume unit of the first image corresponds to each sub-block in the second image one-to-one. The fusion result of the second fusion value of each boundary pixel point of each finite volume unit, the initial resistance radiometric value and the conductivity coefficient of the corresponding second image sub-block is used as the boundary resistance radiometric value of each boundary pixel point of each finite volume unit, wherein the boundary resistance radiometric value of each boundary pixel point of each finite volume unit is positively correlated with the second fusion value of each boundary pixel point of each finite volume unit, the initial resistance radiometric value and the conductivity coefficient of the corresponding second image sub-block.
[0037] 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 unit and the conduction coefficient of the corresponding sub-block in the second image is calculated, recorded as the first product, and the fusion result may be the sum of the initial resistance radiosity of each boundary pixel point of each finite volume unit of the first image and the first product; In other embodiments of the present application, the second fusion value may be a normalized value of the sum of all first difference values in the neighborhood of any boundary pixel point; the fusion result may 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.
[0038] The conduction coefficient of the second image sub-block is used as a weight to adjust the boundary resistance radiance; when the initial resistance radiance of the pixels around each pixel in the first image is high, as the heat conduction between the resistors proceeds, the initial resistance radiance of the central pixel will gradually increase, and the boundary resistance radiance will be larger; on the contrary, when the initial resistance radiance of the surrounding pixels is low, the initial resistance radiance of the central pixel will gradually decrease, and the boundary resistance radiance will be smaller.
[0039] 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.
[0040] (1) The heat conduction equation is established with the initial resistance radiance of each pixel in the first image as the initial condition; the boundary resistance radiance 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 by the finite volume method, and the solution is used as the stable resistance radiance of each pixel point in the first image, reflecting the thermal imaging distribution of the resistance array simulated by the first image under ideal conditions.
[0041] (2) The expression of the radiance gain of each pixel in the first image is: , 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.
[0042] 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.
[0043] (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.
[0044] (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: In the interference window of each pixel point, the difference between the initial resistance radiometric value of 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 in the interference window is positively correlated with the first radiometric difference, and negatively correlated with the distance weight.
[0045] 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; 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.
[0046] The greater the difference in initial resistance radiation between each pixel and the central pixel in the interference window, the more drastic 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.
[0047] (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: 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; The second adjustment factor of each pixel in the interference window is negatively correlated with the third fusion value.
[0048] 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; In other embodiments of the present application, the third fusion value may be the sum of normalized values of the radiance gain of each pixel point and each pixel point in its interference window.
[0049] When the value of the radiance gain of each pixel point and the central pixel point in the interference window is greater than zero and the other is less than zero, the heat source interference between the two is stronger, and the corresponding pixel compensation factor should be larger; when the radiance 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.
[0050] (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.
[0051] 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.
[0052] (5) The expression of the pixel compensation factor of each pixel in the interference window of each pixel is: , where is the pixel compensation factor of the jth 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.
[0053] (6) The average value of the normalized values of the pixel compensation factors of all the pixels in the interference window of any pixel point is taken as the pixel compensation coefficient of the any pixel point.
[0054] Due to the heat source 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 error caused by the heat source interference to the second image is analyzed by the difference between the initial resistance radiometry and the stable resistance radiometry of each pixel. The larger the square of the mean value of the radiometry gain in the interference window, the more severe the degree of heat source interference between pixels in the window, and the larger the corresponding pixel compensation coefficient. When the unsharp mask method is used to enhance it later, a larger sharp mask window width and sharp gain coefficient should be selected.
[0055] Step S6, obtaining the pixel compensation coefficient of each pixel in each second image sub-block based on the pixel compensation coefficient of each pixel in the first image; calculating the adaptive width and sharpening gain coefficient of the sharpening mask window of each pixel in the second image based on the pixel compensation coefficient of each pixel in the second image sub-block.
[0056] (1) The pixel compensation coefficient of each pixel point in the first image is used as the pixel compensation coefficient of the pixel point in the corresponding second image sub-block.
[0057] (2) The traditional unsharp masking method uses the same unsharp masking window and sharpening gain coefficient for the image, which cannot be adjusted according to the different degrees of heat source interference of pixels at different positions in the second image, affecting the enhancement effect of the second image. Therefore, it is necessary to calculate the unsharp masking window and sharpening gain coefficient of each pixel in the second image according to the obtained pixel compensation coefficient, and then perform adaptive image sharpening on the second image.
[0058] (2.1) Setting the initial size of the sharpening mask window. It should be noted that the initial size of the sharpening mask window can be set by the implementer. In this embodiment, the initial size of the sharpening mask window is set to 5*5, and the initial width of the sharpening mask window is 5. The calculation expression of the adaptive width of the sharpening mask window of the pixel points in each second image sub-block is: , 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 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, The rounding function.
[0059] (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: , 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 point in the a-th second image sub-block.
[0060] 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.
[0061] When the pixel compensation coefficient is larger, the corresponding pixel point is more affected by the heat source interference, the calculated sharpening gain coefficient and the sharpening mask window width are larger, and the image edge detail enhancement effect can be improved when the unsharp mask method is used for image sharpening.
[0062] Step S7, according to the unsharp mask window width and the sharpening gain coefficient of each pixel point, the second image is enhanced and optimized by using the unsharp mask method.
[0063] The second image is used as the input of the unsharp masking method, and the unsharp masking window width and the sharpening gain coefficient of each pixel point of the second image are combined to eliminate the heat source interference in the second image, and the sharpened and enhanced image is output to complete the optimization of the resistor array infrared imaging image. Among them, the unsharp masking method is a well-known technology, and the specific process is not repeated here.
[0064] The specific steps of the above method are shown in the schematic diagram Figure 2 shown.
[0065] Based on the same inventive concept as the above method, an embodiment of the present application also provides an infrared image optimization system based on resistor array infrared imaging, including 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.
[0066] 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 records 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 association 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 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 with the resistor heat source under the ideal state and the interference 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 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.
[0067] It should be noted that the above-mentioned sequence of the embodiments of the present application is only for description and does not represent the advantages and disadvantages of the embodiments. The above-mentioned specific embodiments of the present application are described. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0068] The various embodiments in the present application are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.
[0069] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present application should be included in the protection scope 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 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; 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; 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; and the second image is enhanced and optimized by combining the unsharp mask method.
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 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 grayscale of 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 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.
5. The infrared image optimization method based on resistor array infrared imaging according to claim 4, 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.
6. 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 square 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.
7. The infrared image optimization method based on resistor array infrared imaging according to claim 6, 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.
8. The infrared image optimization method based on resistor array infrared imaging according to claim 1, characterized in that: 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.
9. 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.
10. 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 9 are implemented.
Citation Information
Patent Citations
Infrared image dynamic detail enhancement method
CN101980282A
Coating wave band emissivity external field measurement method based on thermal infrared imager
CN113884464A
Image enhancement method for resistor array infrared imaging
CN118396893A
Integrated laser / infrared forward-monitoring optical device
JP2008224685A
Cited By
Running state monitoring method of resistor array infrared scene generating device
CN118884098A
Intelligent production process of silicon carbide ceramic-based composite material
CN118955145A
An intelligent production process for silicon carbide ceramic-based composite materials
CN118955145B
Resistor array infrared imaging control method and system based on transfer learning
CN119245838A
