Infrared image noise reduction method and device
By introducing the weighted guided filtering method and edge perception parameters in the process of infrared image denoising, the problem of blurred image contours caused by noise removal in the existing technology is solved, and the smoothing and boundary preservation of infrared images are achieved.
Patent Information
- Application Number
- CN202410949204.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-10-11
AI Technical Summary
Existing infrared image noise reduction technology will cause the image outline to be blurred during the noise removal process, and cannot effectively retain the edge information of the object.
The weighted guided filtering method is used to obtain edge sensing parameters by performing border expansion filling processing and edge detection on infrared images. These parameters are used to determine linear coefficients during the filtering process, control filtering or non-filtering of neighborhood pixels, and ensure the preservation of image boundaries. .
While reducing noise, it effectively preserves image boundaries and obtains smooth and clear image outlines.
Smart Images

Figure CN118761928A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to an infrared image noise reduction method and device, and belongs to the field of image noise reduction. Background Art
[0002] With the continuous development and innovation of infrared imaging technology, the size of the detector array has grown from 384×288, 640×512 to 1280×1024, and the infrared imaging algorithm has been constantly updated. Nowadays, infrared imaging technology has played an important role in the fields of medicine, detection and automobile. The imaging principle of infrared cameras is to receive infrared radiation from the target and background through the detector to perform imaging. However, due to factors such as the manufacturing materials and processes of the detector and the use environment of the camera, the original image output by the detector contains a large amount of random noise and fixed noise, which ultimately leads to poor image contrast and unclear target edge information produced by the camera. Based on the importance of infrared noise to camera quality, studying noise reduction technology is the only way to improve the imaging quality of infrared cameras. At present, common noise reduction technologies include Gaussian filtering, median filtering and mean filtering. These technologies can filter out random noise in the image, but they will also smooth out the edge information of objects in the image, making the outline of objects in the image blurred. Summary of the invention
[0003] The present invention provides an infrared image noise reduction method and device, which solve the problems disclosed in the background technology.
[0004] According to one aspect of the present disclosure, there is provided an infrared image noise reduction method, comprising: Performing border expansion and filling processing on the infrared image, and obtaining neighboring pixels of each pixel of the original border from the infrared image after the border expansion and filling processing; Perform edge detection on the infrared image to obtain edge perception parameters of the infrared image; According to the infrared image, edge perception parameters and neighborhood pixels, a weighted guided filtering method is used to obtain a denoised infrared image; wherein, in the weighted guided filtering method, the guide image uses the infrared image itself, and the edge perception parameters are used to determine the linear coefficients of the neighborhood pixels, and the linear coefficients are used to control whether the neighborhood pixels are filtered or not.
[0005] In some embodiments of the present disclosure, border expansion and filling processing is performed on the infrared image, including: extending a new border outside the original border of the infrared image, and filling the new border with pixels of the original border.
[0006] In some embodiments of the present disclosure, edge detection is performed on an infrared image to obtain edge perception parameters of the infrared image, including: calculating the variance of each pixel of the infrared image; obtaining a distribution coefficient of the variance of each pixel in the infrared image based on the variance of each pixel in the infrared image; and performing mean filtering on the distribution coefficient to obtain edge perception parameters of the infrared image.
[0007] In some embodiments of the present disclosure, in the weighted guided filtering method, the guided filtering formula is: q i =a k I i +b k ; In the formula, q i is the pixel output after filtering, I i is the pixel before filtering, a k and b k is the linear coefficient; if the edge perception parameter is used to determine the neighboring pixels as border pixels, a k ≈1, b k ≈0.
[0008] In some embodiments of the present disclosure, the infrared image adopts the format of AXI4 protocol data; the denoised infrared image includes a denoised frame signal, a data signal and a signal indicating whether the data signal is valid; Before border extension and filling processing, edge detection, and weighted guided filtering, the AXI4 protocol data is converted into a frame signal, a data signal, and a signal indicating whether the data signal is valid; After noise reduction, the noise-reduced frame signal, the data signal, and the signal indicating whether the data signal is valid are converted into AXI4 protocol data.
[0009] According to another aspect of the present disclosure, there is provided an infrared image noise reduction device, comprising: The image windowing module performs border expansion and filling processing on the infrared image, and obtains the neighboring pixels of each pixel of the original border from the infrared image after the border expansion and filling processing; An image edge detection module performs edge detection on infrared images and obtains edge perception parameters of infrared images; The weighted guided filtering module adopts the weighted guided filtering method according to the infrared image, edge perception parameters and neighborhood pixels to obtain the denoised infrared image; wherein, in the weighted guided filtering method, the guide image adopts the infrared image itself, and the edge perception parameters are used to determine the linear coefficients of the neighborhood pixels, and the linear coefficients are used to control whether the neighborhood pixels are filtered or not.
[0010] In some embodiments of the present disclosure, the infrared image adopts the format of AXI4 protocol data, and the denoised infrared image includes a denoised frame signal, a data signal, and a signal indicating whether the data signal is valid; It also includes an AXI4 protocol input conversion module and an AXI4 protocol output conversion module; An AXI4 protocol input conversion module converts the received infrared image in the AXI4 protocol data format into a frame signal, a data signal, and a signal indicating whether the data signal is valid, and transmits the converted signal to an image windowing module, an image edge detection module, and a weighted guided filtering module; The AXI4 protocol output conversion module converts the noise-reduced frame signal, the data signal, and the signal indicating whether the data signal is valid into AXI4 protocol data.
[0011] In some embodiments of the present disclosure, the AXI4 protocol input conversion module includes a handshake cache control logic module, a first cache module, and an image row-field conversion logic module; The handshake cache control logic module shakes hands with the external protocol, and when the handshake succeeds, writes the received AXI4 protocol data into the first cache module; when an overflow flag enable signal is received, stops receiving the AXI4 protocol data; The image row and field conversion logic module reads the AXI4 protocol data in the first cache module according to the AXI4 protocol timing diagram to obtain the converted signal; when the first cache module overflows, it sends an overflow flag enable signal to the handshake cache control logic module.
[0012] In some embodiments of the present disclosure, the AXI4 protocol output conversion module includes an image write cache control logic module, a second cache module, and a burst write transfer logic module; An image write cache control logic module writes the noise-reduced signal into the second cache module; The burst write transfer logic module takes out the signal from the second cache module and outputs it according to the AXI4 protocol; The image write cache control logic module exchanges transmission status with the burst write transmission logic module to control the orderly writing and output of the second cache module.
[0013] In some embodiments of the present disclosure, a buffer module is further included to delay the converted signal input to the weighted guided filtering module.
[0014] The beneficial effects achieved by the present invention are as follows: based on the traditional infrared image spatial domain denoising, the present invention performs edge detection on the infrared image according to the characteristic that the spatial variation of the grayscale value at the edge and contour of the infrared target is usually between one and two pixels, obtains the edge perception parameters of the infrared image, and introduces the edge perception parameters into the weighted guided filtering method, which can not only obtain a smooth image after denoising, but also well preserve the image boundary. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 A flowchart of the infrared image noise reduction method; Figure 2 A schematic diagram of border extension padding; Figure 3 This is the principle block diagram of the infrared image noise reduction device; Figure 4 The functional block diagram of the AXI4 protocol input conversion module; Figure 5 Schematic diagram of the AXI4 protocol output conversion module Figure 6 This is the AXI4 protocol timing diagram. DETAILED DESCRIPTION
[0016] The following will be combined with the drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure. It is obvious that the described embodiments are only part of the embodiments of the present disclosure, rather than all the embodiments. The following description of at least one exemplary embodiment is actually only illustrative and is by no means intended to limit the present disclosure and its application or use. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present disclosure.
[0017] Unless otherwise specified, the relative arrangement of components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present disclosure.
[0018] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.
[0019] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered part of the specification.
[0020] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not as limiting. Therefore, other examples of the exemplary embodiments may have different values.
[0021] It should be noted that similar symbols and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it does not require further discussion in subsequent figures.
[0022] In order to solve the problem that existing noise reduction technologies may blur the contours of objects in the image while filtering out random noise in the image, the present invention proposes an infrared image noise reduction method and device, specifically, an edge perception parameter is introduced into a weighted guided filtering method, which can selectively remove noise in the infrared image.
[0023] Figure 1 This is a schematic diagram of an embodiment of the infrared image denoising method disclosed in the present invention. In step 1 of the embodiment, the infrared image is subjected to border expansion and filling processing, and the neighboring pixels of each pixel of the original border are obtained from the infrared image after the border expansion and filling processing.
[0024] It should be noted that AXI (Advanced eXtensible Interface) is a bus protocol with the characteristics of high bandwidth, low latency and high-frequency transmission. It is very suitable for data transmission fields with large amounts of data such as image transmission. Therefore, the infrared image to be denoised here adopts the AXI4 protocol data format.
[0025] As a universal protocol, the AXI4 protocol can be used to integrate IP modules with different functions into a system. It is mainly used in transmission scenarios. The disadvantage is that the protocol is relatively complex and is not suitable for scenarios with complex calculations. Therefore, in some embodiments, the AXI4 protocol data is converted before use. Specifically, the AXI4 protocol data is converted into a frame signal osync, a data signal odata[13:0], and a signal ovalid indicating whether the data signal is valid; wherein the ovalid bit width is 1 bit, and the odata[13:0] bit width is 14 bits. When ovalid=1, it indicates that the data signal at the current moment is the actual image data. When ovalid is not 1, it indicates that the data signal at the current moment is an invalid value. For details, refer to Figure 6 .
[0026] It should be noted that the border expansion and filling processing of the infrared image can be specifically performed by expanding a new border outside the original border of the infrared image, and filling the new border with the original border pixels; for example: the input resolution of the infrared image is 640×512, and the output image resolution becomes 646×518 after border expansion, wherein the 4th to 643rd columns and 4th to 515th rows of data are the original input 640 columns and 512 rows of data, and the extra 1~3 columns, 643~646 columns, 1~3 rows and 515~518 rows are copied and filled with the input 1st column, 640th column, 1st row and 512th row data respectively.
[0027] See Figure 2 The actual infrared image area is the area filled with diagonal lines and grid lines, where the diagonal line filling area is the original border of the infrared image with a width of one pixel, the gray filling area is the extended new border, and the black filling area is the center pixel of the 7x7 window, which is the pixel in the original border.
[0028] Assuming that the original infrared image is N rows and M columns of data, it is first expanded to N+3 rows and M+3 columns, and then the expanded part is filled. Currently, there are three schemes for filling data in the gray area, namely zero filling, mirror filling and copy filling. The copy filling scheme is used here, that is, the pixels in the diagonal filling area are copied in the direction of the white arrow to fill the gray area, so as to ensure that the sliding window value in the image border area is less different from the sliding window value inside the image.
[0029] return Figure 1 , step 2 of the embodiment, performs edge detection on the infrared image to obtain edge perception parameters of the infrared image.
[0030] It should be noted that the spatial variation of the grayscale value at the edge, contour and fine structure of the infrared target is usually between one and two pixels. Therefore, the edge, contour and detail information of the target have very obvious high-frequency performance. Therefore, in some embodiments, the variance of each pixel of the infrared image can be calculated, and the distribution coefficient of the variance of each pixel in the infrared image can be obtained according to the variance of each pixel of the infrared image. The distribution coefficient is mean filtered to obtain the edge perception parameter of the infrared image. The edge perception parameter can be used for edge judgment in the weighted guided filtering method.
[0031] return Figure 1 In step 3 of the embodiment, a weighted guided filtering method is used according to the infrared image, edge perception parameters and neighborhood pixels to obtain a denoised infrared image; wherein, in the weighted guided filtering method, the guide image uses the infrared image itself, and the edge perception parameters are used to determine the linear coefficients of the neighborhood pixels, and the linear coefficients are used to control whether the neighborhood pixels are filtered or not.
[0032] It should be noted that the weighted guided filtering method here is an improvement on the existing method. Here, the infrared image itself is used as the guided image in the method, and the edge perception parameters are introduced into the method; The guided filtering formula can be expressed as: q i =a k I i +b k , ; In the formula, q i is the pixel output after filtering, I i is the pixel before filtering, ak and b k is the linear coefficient, ω k is the sliding window for guided filtering.
[0033] When the edge perception parameters determine that the neighborhood pixel is a border pixel, a k ≈1, b k ≈0, that is, the linear coefficient a k The value of will approach 1, b k The value of will approach 0, and the value of the output pixel is close to the input pixel value. At this time, the weighted guided filtering algorithm does not filter the pixels judged as border pixels, but filters other non-border pixels. Therefore, a smooth image can be obtained after weighted guided filtering, and the image boundary is well preserved.
[0034] It should be noted that, in order to adapt to the AXI protocol, after noise reduction, the noise-reduced frame signal, data signal, and signal indicating whether the data signal is valid will be further converted into AXI4 protocol data.
[0035] The above method is based on the traditional infrared image spatial domain denoising. According to the characteristic that the spatial variation of grayscale values at the edges and contours of infrared targets is usually between one and two pixels, the infrared image edge detection is performed to obtain the edge perception parameters of the infrared image. The edge perception parameters are introduced into the weighted guided filtering method, which can not only obtain a smooth image after denoising, but also well preserve the image boundary.
[0036] Figure 3 It is a schematic diagram of an embodiment of the infrared image denoising device disclosed in the present invention, which includes an image windowing module, an image edge detection module and a weighted guided filtering module.
[0037] It should be noted that all modules in the device are circuits designed in hardware programming language rather than physical circuits. They are mainly used in ISP chip design scenarios and are integrated into the ISP chip in an IP form. That is, the device can be designed as an infrared ISP processing chip with an AXI bus.
[0038] The image windowing module performs border expansion and filling processing on the infrared image, and obtains the neighboring pixels of each pixel of the original border from the infrared image after the border expansion and filling processing.
[0039] It should be noted that the function of the image windowing module is the same as that of step 1 and will not be described in detail here.
[0040] The image edge detection module performs edge detection on the infrared image and obtains the edge perception parameters of the infrared image.
[0041] It should be noted that the function of the image windowing module is the same as that of step 2 and will not be described in detail here.
[0042] The weighted guided filtering module adopts the weighted guided filtering method according to the infrared image, edge perception parameters and neighborhood pixels to obtain the denoised infrared image; wherein, in the weighted guided filtering method, the guide image adopts the infrared image itself, and the edge perception parameters are used to determine the linear coefficients of the neighborhood pixels, and the linear coefficients are used to control whether the neighborhood pixels are filtered or not.
[0043] It should be noted that the function of the image windowing module is the same as that of step 3 and will not be described in detail here.
[0044] Similar to the above method, it should be noted that the device is externally connected to an AXI bus, and the received infrared image is in the format of AXI4 protocol data. In order to adapt to AXI4 protocol transmission, the device also includes an AXI4 protocol input conversion module and an AXI4 protocol output conversion module. The AXI4 protocol input conversion module and the AXI4 protocol output conversion module are respectively arranged at the input end and the output end of the device.
[0045] The AXI4 protocol input conversion module converts the received infrared image in the AXI4 protocol data format into a frame signal, a data signal and a signal indicating whether the data signal is valid, and transmits the converted signal to the image windowing module, the image edge detection module and the weighted guided filtering module.
[0046] like Figure 4 As shown, the AXI4 protocol input conversion module includes a handshake cache control logic module, a first cache module and an image line-field conversion logic module.
[0047] The handshake cache control logic module shakes hands with the external protocol (external AXI4 master controller protocol). When the handshake is successful, the received AXI4 protocol data is written into the first cache module; when the overflow flag enable signal is received, the reception of the AXI4 protocol data is terminated, specifically, an overflow back pressure signal is sent to the AXI4 master to terminate the data burst transmission; wherein, the first cache module is mainly composed of an asynchronous FIFO, which is used for data caching.
[0048] The image line-field conversion logic module follows the AXI4 protocol timing diagram (i.e. Figure 6 ), read the AXI4 protocol data in the first cache module to obtain the converted signal; when the first cache module overflows, an overflow flag enable signal is sent to the handshake cache control logic module.
[0049] It should be noted that the denoised infrared image includes the denoised frame signal, data signal and a signal indicating whether the data signal is valid, and the AXI4 protocol output conversion module converts the denoised frame signal, data signal and a signal indicating whether the data signal is valid into AXI4 protocol data.
[0050] like Figure 5 As shown, the AXI4 protocol output conversion module includes an image write cache control logic module, a second cache module and a burst write transfer logic module.
[0051] The image write cache control logic module writes the noise-reduced signal into the second cache module; wherein the second cache module is mainly composed of an asynchronous FIFO for data caching.
[0052] The burst write transfer logic module takes out the signal in the second cache module and outputs it according to the AXI4 protocol, that is, outputs the AXI4 protocol data.
[0053] The image write cache control logic module exchanges transmission status with the burst write transmission logic module to control the orderly writing and output of the second cache module.
[0054] It should be noted that since both the image windowing module and the image edge detection module need to input the converted infrared image, the weighted guided filtering module not only needs the converted infrared image, but also the output of the image windowing module and the image edge detection module. The image windowing module and the image edge detection module require a certain amount of time to obtain the output, that is, there will be a delay of multiple clock cycles between the input data and the output result. After the weighted guided filtering module calculates the linear guided coefficient, it is necessary to perform a linear fit on the image data and the obtained linear guided coefficient. In order to align the timing, it is necessary to delay the input converted infrared image to a certain extent. Therefore, in some embodiments, the device includes a buffer module for delaying the converted signal of the input weighted guided filtering module. Here, the converted signal, edge perception parameters and neighborhood pixels of the input weighted guided filtering module are synchronized by delay.
[0055] It should be noted that in order to store some configurable parameters in the weighted guided filtering module, some registers will be added. Therefore, in some embodiments, in order to control the registers, the device will add a register control module, which is responsible for the reading and writing control of the internal parameter registers, using the APB3.0 protocol, and can be externally connected to the APB bus of the ISP image processor, so that users can adjust and view the algorithm operation parameters in real time.
[0056] The above device can be designed as an infrared ISP processing chip with an AXI bus, which realizes an improved infrared image spatial domain noise reduction. The device can not only obtain a smooth image after noise reduction, but also well preserve the image boundary through the image edge detection module and the weighted guided filtering module.
[0057] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for reducing denoising of an infrared image, characterized in that: include: Performing border expansion and filling processing on the infrared image, and obtaining neighboring pixels of each pixel of the original border from the infrared image after the border expansion and filling processing; Perform edge detection on the infrared image to obtain edge perception parameters of the infrared image; According to the infrared image, edge perception parameters and neighborhood pixels, a weighted guided filtering method is used to obtain a denoised infrared image; wherein, in the weighted guided filtering method, the guide image uses the infrared image itself, and the edge perception parameters are used to determine the linear coefficients of the neighborhood pixels, and the linear coefficients are used to control whether the neighborhood pixels are filtered or not.
2. The infrared image denoising method according to claim 1, characterized in that: Perform border expansion and filling processing on infrared images, including: Expand the new border outside the original border of the infrared image and fill the new border with the original border pixels.
3. The infrared image denoising method according to claim 1, characterized in that: Perform edge detection on the infrared image to obtain edge perception parameters of the infrared image, including: Calculate the variance of each pixel of the infrared image; According to the variance of each pixel of the infrared image, a distribution coefficient of the variance of each pixel in the infrared image is obtained; The distribution coefficients are mean filtered to obtain the edge perception parameters of the infrared image.
4. The infrared image denoising method according to claim 1, characterized in that: In the weighted guided filtering method, the guided filtering formula is: q i =a k I i +b k ; In the formula, q i is the pixel output after filtering, I i is the pixel before filtering, a k and b k is the linear coefficient; if the edge perception parameter is used to determine the neighboring pixels as border pixels, a k ≈1, b k ≈0.
5. The infrared image denoising method according to any one of claims 1 to 4, characterized in that: The infrared image adopts the format of AXI4 protocol data; the infrared image after noise reduction includes the frame signal after noise reduction, the data signal and the signal indicating whether the data signal is valid; Before border extension and filling processing, edge detection, and weighted guided filtering, the AXI4 protocol data is converted into a frame signal, a data signal, and a signal indicating whether the data signal is valid; After noise reduction, the noise-reduced frame signal, the data signal, and the signal indicating whether the data signal is valid are converted into AXI4 protocol data.
6. An infrared image noise reduction device, characterized in that: include: The image windowing module performs border expansion and filling processing on the infrared image, and obtains the neighboring pixels of each pixel of the original border from the infrared image after the border expansion and filling processing; An image edge detection module performs edge detection on infrared images and obtains edge perception parameters of infrared images; The weighted guided filtering module adopts the weighted guided filtering method according to the infrared image, edge perception parameters and neighborhood pixels to obtain the denoised infrared image; wherein, in the weighted guided filtering method, the guide image adopts the infrared image itself, and the edge perception parameters are used to determine the linear coefficients of the neighborhood pixels, and the linear coefficients are used to control whether the neighborhood pixels are filtered or not.
7. The infrared image noise reduction device according to claim 6, characterized in that: The infrared image adopts the format of AXI4 protocol data. The infrared image after noise reduction includes the frame signal after noise reduction, the data signal and the signal indicating whether the data signal is valid; It also includes an AXI4 protocol input conversion module and an AXI4 protocol output conversion module; An AXI4 protocol input conversion module converts the received infrared image in the AXI4 protocol data format into a frame signal, a data signal, and a signal indicating whether the data signal is valid, and transmits the converted signal to an image windowing module, an image edge detection module, and a weighted guided filtering module; The AXI4 protocol output conversion module converts the noise-reduced frame signal, the data signal, and the signal indicating whether the data signal is valid into AXI4 protocol data.
8. The infrared image noise reduction device according to claim 7, characterized in that: The AXI4 protocol input conversion module includes a handshake cache control logic module, a first cache module and an image line-field conversion logic module; The handshake cache control logic module shakes hands with the external protocol, and when the handshake succeeds, writes the received AXI4 protocol data into the first cache module; when an overflow flag enable signal is received, stops receiving the AXI4 protocol data; The image row and field conversion logic module reads the AXI4 protocol data in the first cache module according to the AXI4 protocol timing diagram to obtain the converted signal; when the first cache module overflows, it sends an overflow flag enable signal to the handshake cache control logic module.
9. The infrared image noise reduction device according to claim 7, characterized in that: The AXI4 protocol output conversion module includes an image write cache control logic module, a second cache module and a burst write transfer logic module; An image write cache control logic module writes the noise-reduced signal into the second cache module; The burst write transfer logic module takes out the signal from the second cache module and outputs it according to the AXI4 protocol; The image write cache control logic module exchanges transmission status with the burst write transmission logic module to control the orderly writing and output of the second cache module.
10. The infrared image noise reduction device according to claim 7, characterized in that: It also includes a buffer module for delaying the converted signal input to the weighted guided filtering module.
Citation Information
Patent Citations
Spatial domain and pixel domain hybrid de-noising algorithm based on FPGA (Field Programmable Gate Array) platform
CN106327447A
Infrared image noise reduction method and device, equipment and storage medium
CN117710241A
Apparatus and method of image filtering for edge sharpening and denoising
KR101873166B1
Method and System for Processing an Input Image
US20160292824A1
Cited By
Image VDMA controller based on AXI4 bus interface
CN121210353A
