A temporal filtering method for infrared images based on displacement detection and registration

Through the infrared image time domain filtering method based on displacement detection registration, camera and target motion are processed, and appropriate filtering algorithms are selected to solve the problem of poor noise reduction in the existing technology and improve the motion detection accuracy and filtering effect.

CN114841866BActive Publication Date: 2024-09-13WUHAN BOE ELECTOR OPTICS SYST CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210299816.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-25
Publication Date
2024-09-13
Estimated Expiration
2042-03-25

AI Technical Summary

Technical Problem

Existing infrared image time domain filtering algorithms fail to effectively handle camera motion and target motion, ignore the impact of spatial domain noise on the calculation of offsets, and do not effectively process moving targets, resulting in poor noise reduction results.

Method used

An infrared image time-domain filtering method based on displacement detection registration is adopted. The background motion amount and the target motion amount are obtained respectively through the image global displacement detection registration and pixel-level displacement detection registration. Time-domain Gaussian filtering or time-domain bilateral filtering is selected according to the type of motion. , reduce noise and improve motion detection accuracy.

Benefits of technology

It improves the accuracy of motion detection, weakens the smear phenomenon, improves the effect of time domain filtering, and solves the problem of time domain filtering of background motion and target motion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114841866B
    Figure CN114841866B
Patent Text Reader

Abstract

The invention discloses a method for temporal filtering of infrared images based on displacement detection and registration, and the method comprises the following steps: using an infrared camera to store N continuous infrared images; performing spatial domain filtering and image enhancement on the infrared images respectively to obtain enhanced infrared images; performing global displacement detection and registration on the enhanced images respectively to obtain the amount of background motion generated by camera motion; performing displacement detection and registration on the enhanced images pixel by pixel to obtain the amount of motion of the target in the image; matching the motion direction and size of the background motion and the motion of the target to obtain the motion type to which the pixel belongs; using a temporal filtering method according to the motion type to which the pixel belongs to obtain a filtered image; when the next frame of the camera image arrives, the cached N continuous infrared images are moved back by one frame, and the last frame is discarded to complete the temporal filtering. The invention has the beneficial effects of improving the accuracy of motion detection and reducing the phenomenon of smear.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of infrared image processing, and in particular to an infrared image time domain filtering method based on displacement detection and registration. Background Art

[0002] Time domain filtering algorithms are widely used in infrared camera image processing, which greatly reduces image noise.

[0003] In recent years, many achievements have been made in the study of time domain filtering algorithms. Reference 1 (A denoising algorithm for infrared sequence images based on time domain filtering) proposes a denoising method based on time domain Gaussian filtering. This method refers to the weight allocation method of spatial domain bilateral filtering and introduces the influence of grayscale value to correct the weight of time domain Gaussian filtering, intending to solve the tailing and blurring of moving targets in sequence images caused by time domain filtering. Reference 2 (Infrared image noise time domain IIR filtering algorithm based on motion compensation) divides the image into motion area and non-motion area from the perspective of pattern recognition, and then uses the motion detection technology based on noise distribution model and the motion area labeling technology based on probability relaxation method to specifically divide these two areas. The classified image is subjected to time domain IIR filtering, and different influencing factors are used for different areas, in order to achieve the final motion compensation. Reference 3 (Time domain filtering method, device and storage medium based on global motion estimation) proposes a time domain filtering method based on global motion estimation. The method includes: acquiring a current frame image captured by a camera device; based on a global image mean histogram in row and column directions, using a reference frame image to perform global motion estimation on the current frame image through a local image optimal matching algorithm to obtain a global motion vector in the row and column directions; using the global motion vector in the row and column directions to shift the reference frame image to obtain a shifted reference frame image, and determining a time domain filtering coefficient; filtering the current frame image according to the shifted reference frame image and the time domain filtering coefficient to obtain a filtered current frame image.

[0004] However, the time domain filtering algorithm disclosed in document 1 does not handle the situations of camera motion and target motion; the infrared image noise time domain IIR filtering algorithm based on motion compensation disclosed in document 2 does not take into account the distribution model of time domain noise, but simply performs IIR filtering with different weights on the image, and does not consider the camera motion; document 3 makes a judgment on the global motion of the image, but ignores the influence of spatial domain noise on the calculation of offset. Experiments show that spatial domain noise will bring large errors to the calculation of offset, and no effective processing is performed on the moving targets in the image. Summary of the invention

[0005] In order to solve the above technical problems, the present invention provides an infrared image time domain filtering method based on displacement detection registration. The background motion amount generated by the infrared camera movement and the motion amount of the target in the scene are obtained through image global displacement detection registration and pixel-level displacement detection registration, and then different time domain noise reduction methods are adopted according to the different characteristics of background motion and target motion.

[0006] The present application provides an infrared image time domain filtering method based on displacement detection and registration, including the following:

[0007] S101: Using an infrared camera to store N continuous infrared images;

[0008] S102: performing spatial domain filtering and image enhancement on the infrared image to obtain an enhanced infrared image;

[0009] S103: performing global displacement detection and registration on the enhanced infrared images to obtain the background motion amount caused by the infrared camera motion;

[0010] S104: performing displacement detection and registration on the enhanced infrared image pixel by pixel to obtain the motion amount of the target in the infrared image;

[0011] S105: Match the movement direction and magnitude of the background movement generated by the infrared camera movement and the movement of the target in the image to obtain the movement type of the pixel point;

[0012] S106: filtering using a corresponding time domain filtering algorithm according to the motion type of the pixel point to obtain a filtered infrared image of the current frame;

[0013] S107: When the next frame of the camera image arrives, the cached N consecutive infrared images are moved back by one frame and the last frame is discarded to complete the time domain filtering.

[0014] Further, in step S101, the N consecutive infrared images buffered by the camera are infrared images after non-uniformity correction;

[0015] Non-uniformity correction includes one-point correction and two-point correction;

[0016] One-point calibration is to subtract a pre-stored uniform surface image from the image captured by the camera in real time;

[0017] Two-point calibration is to multiply the one-point calibration by the K factor. The calculation formula of the K factor is shown in formula (1):

[0018]

[0019] In formula (1), img1 and img2 represent the uniform surface images collected by the infrared camera for the low-temperature black body and the high-temperature black body, respectively, and mv1 and mv2 are the average grayscale values ​​of the pixels of img1 and img2, respectively;

[0020] Among N consecutive infrared images, the first one represents the current frame, and the rest represent adjacent frames in sequence.

[0021] Furthermore, in step S102, the spatial domain filtering includes a mean filter with a kernel size of 3*3 and a non-local mean filter with kernel sizes of 7*7 and 5*5 respectively; the image enhancement algorithm is a histogram equalization algorithm with restricted contrast adaptation.

[0022] Further, step S103 is specifically as follows:

[0023] S201: Divide the enhanced infrared image into non-overlapping sub-blocks, and divide each image into k*k sub-blocks to obtain sub-block images of the infrared image;

[0024] S202: estimating the maximum value of the background motion amount generated by the movement of the infrared camera to obtain a maximum estimated value of the background motion amount;

[0025] S203: performing Sobel operator edge extraction in the row and column directions on the sub-snapshot image of the infrared image, obtaining absolute values ​​of the extracted edges in the row and column directions, and then adding the absolute values ​​of the edges in the row and column directions to obtain an edge map of the sub-snapshot image of the infrared image;

[0026] S204: Projecting the edge map of the sub-snap image of the infrared image in the row and column directions to obtain the row and column projection vectors of the edge map of the sub-snap image;

[0027] S205: Starting from the current frame of the N consecutive infrared images in the cache, two adjacent frames are marked with the same sub-block row and column projection vectors for coarse displacement detection and registration to obtain the coarse displacement value of the sub-block;

[0028] S206: Based on the coarse displacement value of the sub-block, perform fine displacement detection and registration on the edge map of the sub-block image of the infrared image to obtain a fine displacement value of the sub-block;

[0029] S207: Adding the coarse displacement value of the sub-block and the fine displacement value of the sub-block to obtain the displacement value of the sub-block with the same mark in two adjacent frames of the N consecutive infrared images in the buffer;

[0030] S208: according to the displacement values ​​of the sub-blocks with the same mark, in the sub-block images of the infrared image, the sub-blocks with the same displacement values ​​are found and grouped into one category;

[0031] S209: taking the displacement value of the class with the largest number of sub-fasts as the background motion amount generated by the movement of the infrared camera.

[0032] Further, step S204 is specifically as follows:

[0033] S301: Accumulate and add the edge values ​​of each row of the edge map of the sub-snap image of the infrared image to obtain a row projection vector of the edge map of the sub-snap image;

[0034] S302: Accumulate and add the edge values ​​of each column of the edge map of the sub-snapshot image of the infrared image to obtain a column projection vector of the edge map of the sub-snapshot image.

[0035] Further, step S205 is specifically as follows:

[0036] S401: removing the maximum estimated value of the background motion from the beginning and the end of the row projection vector of any subframe i in the current frame to obtain a sliding row projection vector;

[0037] S402: sliding the sliding row projection vector on the row projection vectors of the same sequence of sub-blocks in the adjacent frames of the current frame, calculating the error sum of squares each time the sliding is performed, and the sliding ends when the row projection vectors of the same sequence of sub-blocks in the adjacent frames of the current frame are reached;

[0038] Obtain a rough displacement value of sub-block i of the current frame relative to the same sequence sub-block of the adjacent frame of the current frame in the up-down direction according to the position of the sliding row projection vector corresponding to the minimum error square sum on the row projection vector of the adjacent frame of the current frame;

[0039] S403: removing the maximum estimated value of the background motion from the beginning and the end of the column projection vector of the current frame subframe i to obtain a sliding column projection vector;

[0040] S404: sliding the sliding column projection vector on the column projection vector of the same sequence sub-block of the adjacent frame of the current frame, calculating the error sum of squares once each time of sliding, and ending the sliding to the end of the column projection vector of the same sequence sub-block of the adjacent frame of the current frame;

[0041] The rough displacement value of the subblock i of the current frame relative to the same sequence subblock of the adjacent frame of the current frame in the left and right direction is obtained according to the position of the sliding column projection vector corresponding to the minimum error square sum on the column projection vector of the adjacent frame of the current frame.

[0042] Furthermore, step S206 is specifically as follows:

[0043] S501: Remove the number of rows and columns of the maximum estimated value of the background motion from the top, bottom, left and right of the edge map of any sub-frame j of the current frame to obtain the sliding edge map of the sub-frame j of the current frame;

[0044] S502: moving the sliding edge map of sub-block j of the current frame to the position of the coarse displacement value of sub-block j on the edge map of the sub-block in the same sequence of the adjacent frames of the current frame to obtain the starting position of the fine displacement detection and registration;

[0045] S503: estimating the maximum displacement of the precise displacement detection and registration, and obtaining the maximum displacement estimation of the precise displacement detection and registration;

[0046] S504: sliding the edge image of the current frame sub-frame j in the four directions of the upper, lower, left and right of the starting position of the precise displacement detection and registration within the range of the maximum displacement of the precise displacement detection and registration, calculating the error square sum once each time the sliding is performed, and the sliding ends;

[0047] The displacement value of precise displacement detection and registration is obtained according to the position of the edge map of the sliding sub-block j of the current frame corresponding to the minimum sum of square errors on the edge map of the same sequence sub-block of the adjacent frame of the current frame.

[0048] Furthermore, step S104 is specifically as follows:

[0049] S601: taking pixel P of the edge map of the sub-block m of the current frame as the center, a block of a preset neighborhood size is used as a template, and moving to the position of the background motion amount generated by the movement of the infrared camera in the edge map of the same sequence of sub-blocks of the adjacent frames of the current frame to obtain the starting position of the template;

[0050] S602: Slide the template within a range of n pixels above, below, left and right of the starting position of the template, and calculate the sum of squares of errors each time the template is slid until the template is slid to the end;

[0051] The displacement of the central pixel of the template is obtained according to the position of the template corresponding to the minimum square error in the sub-block edge map of the same sequence of adjacent frames of the current frame;

[0052] S603: repeating steps S601 to S602 until all sub-block edge maps of the current frame are completed, including calculation and solution of all pixel points;

[0053] S604: The motion amount of the target in the infrared image is the algebraic sum of the background motion amount generated by the motion of the infrared camera and the displacement amount of the central pixel of the template.

[0054] Furthermore, the specific rule for determining the motion type of the pixel point in step S105 is: if the amount of background motion generated by the motion of the infrared camera is the same as the amount of motion of the target in the infrared image, then the pixel is a background pixel, otherwise it is a moving target pixel.

[0055] Step S106 is specifically as follows: if the pixel point belongs to a background pixel, a time-domain Gaussian filter is performed on the pixel; if the pixel point belongs to a moving target, a time-domain bilateral filter is performed on the pixel, and each pixel point of the current frame is traversed to finally obtain the infrared image after filtering of the current frame; wherein the sigma parameters of the time-domain Gaussian filter and the time-domain bilateral filter are obtained by pre-statistics.

[0056] Compared with the prior art, the beneficial effects of the present invention include: solving the time domain filtering problem of background motion and target motion in the scene and improving the filtering strategy, improving the accuracy of motion detection, reducing the phenomenon of ghosting, and improving the effect of time domain filtering. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] Figure 1 is a flow chart of the method of the present invention. DETAILED DESCRIPTION

[0058] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0059] Please refer to Figure 1 , Figure 1 is a flow chart of the method of the present invention;

[0060] S101: Using an infrared camera to store N continuous infrared images;

[0061] It should be noted that, for the convenience of explanation in the present invention, N is taken as 5;

[0062] It should be noted that, in step S101, the five consecutive infrared images buffered by the camera are infrared images that have been corrected for non-uniformity;

[0063] Non-uniformity correction includes one-point correction and two-point correction;

[0064] One-point calibration is to subtract a pre-stored uniform surface image from the image captured by the camera in real time;

[0065] Two-point calibration is to multiply the one-point calibration by the K factor. The calculation formula of the K factor is shown in formula (1):

[0066]

[0067] In formula (1), img1 and img2 represent the uniform surface images collected by the infrared camera for the low-temperature black body and the high-temperature black body, respectively, and mv1 and mv2 are the average grayscale values ​​of the pixels of img1 and img2, respectively;

[0068] Among the five consecutive infrared images, the first one represents the current frame, and the rest represent the adjacent frames in sequence.

[0069] S102: performing spatial domain filtering and image enhancement on the infrared image to obtain an enhanced infrared image;

[0070] It should be noted that, in step S102, the spatial domain filtering includes a mean filter with a kernel size of 3*3 and a non-local mean filter with kernel sizes of 7*7 and 5*5 respectively; the image enhancement algorithm is a histogram equalization algorithm with restricted contrast adaptation.

[0071] S103: performing global displacement detection and registration on the enhanced infrared images to obtain the background motion amount caused by the infrared camera motion;

[0072] It should be noted that step S103 is specifically as follows:

[0073] S201: Divide the enhanced infrared image into non-overlapping sub-blocks, and divide each image into k*k sub-blocks to obtain sub-block images of the infrared image. In this embodiment, k is 3, and there are 9 sub-blocks in total.

[0074] S202: Estimate the maximum value of the background motion generated by the movement of the infrared camera to obtain a maximum estimated value of the background motion; in this embodiment, 15 pixels are taken as an example as the maximum estimated value of the background motion.

[0075] S203: performing Sobel operator edge extraction in the row and column directions on the sub-snapshot image of the infrared image, obtaining absolute values ​​of the extracted edges in the row and column directions, and then adding the absolute values ​​of the edges in the row and column directions to obtain an edge map of the sub-snapshot image of the infrared image;

[0076] S204: Projecting the edge map of the sub-snap image of the infrared image in the row and column directions to obtain the row and column projection vectors of the edge map of the sub-snap image;

[0077] It should be noted that step S204 is specifically as follows:

[0078] S301: Accumulate and add the edge values ​​of each row of the edge map of the sub-snap image of the infrared image to obtain a row projection vector of the edge map of the sub-snap image;

[0079] S302: Accumulate and add the edge values ​​of each column of the edge map of the sub-snapshot image of the infrared image to obtain a column projection vector of the edge map of the sub-snapshot image.

[0080] S205: Starting from the current frame of the five consecutive infrared images in the cache, two adjacent frames are marked with the same sub-block row and column projection vectors for coarse displacement detection and registration to obtain the coarse displacement value of the sub-block;

[0081] It should be noted that, taking the current frame and the adjacent frames of the current frame and subframe 1 of the five consecutive infrared images buffered by the camera as an example, step S205 is specifically as follows:

[0082] S401: removing the maximum estimated value of the background motion from the beginning and the end of the row projection vector of the current frame subframe 1 to obtain a sliding row projection vector;

[0083] S402: sliding the sliding row projection vector on the row projection vector of the sub-block 1 of the adjacent frame of the current frame, calculating the error sum of squares each time the sliding is performed, and the sliding ends when the row projection vector of the sub-block 1 of the adjacent frame of the current frame is reached;

[0084] Obtain a rough displacement value of sub-block 1 of the current frame relative to sub-block 1 of the adjacent frame of the current frame in the up-down direction according to the position of the sliding row projection vector corresponding to the minimum error square sum on the row projection vector of the adjacent frame of the current frame;

[0085] S403: removing the maximum estimated value of the background motion from the beginning and the end of the column projection vector of the current frame subframe 1 to obtain a sliding column projection vector;

[0086] S404: sliding the sliding column projection vector on the column projection vector of the sub-block 1 of the adjacent frame of the current frame, calculating the square sum of the errors each time the sliding is performed, and the sliding ends when the column projection vector of the sub-block 1 of the adjacent frame of the current frame is reached;

[0087] The rough displacement value of subblock 1 of the current frame relative to subblock 1 of the adjacent frame of the current frame in the left and right direction is obtained according to the position of the sliding column projection vector corresponding to the minimum error square sum on the column projection vector of the adjacent frame of the current frame.

[0088] S206: Based on the coarse displacement value of the sub-block, perform fine displacement detection and registration on the edge map of the sub-block image of the infrared image to obtain a fine displacement value of the sub-block;

[0089] It should be noted that, still taking the current frame and the adjacent frames of the current frame and subframe 1 of the five consecutive infrared images buffered by the camera as an example, step S206 is specifically as follows:

[0090] S501: removing the number of rows and columns of the maximum estimated value of the background motion amount from the top, bottom, left and right of the edge map of the current frame sub-frame 1 to obtain a sliding edge map of the current frame sub-frame 1;

[0091] S502: moving the sliding edge map of subblock 1 of the current frame to the position of the coarse displacement value of subblock 1 on the edge map of subblock 1 of the adjacent frame of the current frame to obtain the starting position of the fine displacement detection and registration;

[0092] S503: estimating the maximum displacement of the precise displacement detection and registration, and obtaining the maximum displacement estimation of the precise displacement detection and registration;

[0093] S504: sliding the edge image of the current frame subframe 1 in the four directions of the upper, lower, left and right of the starting position of the fine displacement detection and registration within the range of the maximum displacement of the fine displacement detection and registration, calculating the error square sum once each time of sliding, and ending the sliding at the end;

[0094] The displacement value for precise displacement detection and registration is obtained according to the position of the sliding edge map of the sub-block 1 of the current frame corresponding to the minimum sum of square errors on the edge map of the sub-block 1 of the adjacent frame of the current frame.

[0095] S207: Adding the coarse displacement value of the sub-block and the fine displacement value of the sub-block to obtain the displacement value of the sub-block with the same mark in two adjacent frames of the 5 consecutive infrared images in the cache;

[0096] S208: according to the displacement values ​​of the sub-blocks with the same mark, in the sub-block images of the infrared image, the sub-blocks with the same displacement values ​​are found and grouped into one category;

[0097] S209: taking the displacement value of the class with the largest number of sub-fasts as the background motion amount generated by the movement of the infrared camera.

[0098] S104: performing displacement detection and registration on the enhanced infrared image pixel by pixel to obtain the motion amount of the target in the infrared image;

[0099] It should be noted that, taking the current frame and the adjacent frames of the current frame and the first pixel of sub-block 1 of the five consecutive infrared images buffered by the camera as an example, step S104 is specifically as follows:

[0100] S601: taking the first pixel of the edge map of sub-block 1 of the current frame as the center, a block of a preset certain neighborhood size is used as a template, and moving to the position of the background motion amount generated by the movement of the infrared camera in the edge map of sub-block 1 of the adjacent frame of the current frame to obtain the starting position of the template;

[0101] S602: Slide the template within a range of 5 pixels above, below, left and right of the starting position of the template, and calculate the sum of squares of errors each time the template is slid until the template is slid to the end;

[0102] The displacement of the central pixel of the template is obtained according to the position of the template corresponding to the minimum square error in the edge map of the adjacent frame sub-block 1 of the current frame;

[0103] S603: repeating steps S601 to S602 until all sub-block edge maps of the current frame are completed, including calculation and solution of all pixel points;

[0104] S604: The motion amount of the target in the infrared image is the algebraic sum of the background motion amount generated by the motion of the infrared camera and the displacement amount of the central pixel of the template.

[0105] S105: Match the movement direction and magnitude of the background movement generated by the infrared camera movement and the movement of the target in the image to obtain the movement type of the pixel point;

[0106] It should be noted that the specific rule for determining the motion type of the pixel point in step S105 is: if the amount of background motion generated by the infrared camera movement is the same as the amount of motion of the target in the infrared image, then the pixel is a background pixel, otherwise it is a moving target pixel.

[0107] S106: filtering using a corresponding time domain filtering algorithm according to the motion type of the pixel point to obtain a filtered infrared image of the current frame;

[0108] It should be noted that step S106 is specifically as follows: if the pixel point belongs to a background pixel, a time-domain Gaussian filter is performed on the pixel; if the pixel point belongs to a moving target, a time-domain bilateral filter is performed on the pixel, and each pixel point of the current frame is traversed to finally obtain the infrared image after filtering of the current frame; wherein the sigma parameters of the time-domain Gaussian filter and the time-domain bilateral filter are obtained by pre-statistics.

[0109] In the embodiment of the present invention, the camera is statically aimed at a uniform surface to collect 1000 frames of continuous images, and taking one pixel point as an example, the standard deviation of 1000 gray value samples in the time domain is statistically calculated to obtain the sigma parameter.

[0110] S107: When the next frame of the camera image arrives, the five consecutive infrared images in the cache are moved back by one frame, and the last frame is discarded, thereby completing the time domain filtering.

[0111] The beneficial effects of the present invention are: solving the time domain filtering problem of background motion and target motion in the scene and improving the filtering strategy, improving the accuracy of motion detection, reducing the phenomenon of smearing, and improving the effect of time domain filtering.

[0112] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0113] The above specific implementations of the present invention do not constitute a limitation on the protection scope of the present invention. Any other corresponding changes and modifications made based on the technical concept of the present invention should be included in the protection scope of the claims of the present invention.

Claims

1. A method for temporal filtering of infrared images based on displacement detection and registration, characterized in that: The following steps are involved: S101: Using an infrared camera to store N continuous infrared images; S102: performing spatial domain filtering and image enhancement on the infrared image to obtain an enhanced infrared image; S103: performing global displacement detection and registration on the enhanced infrared images to obtain the background motion amount caused by the infrared camera motion; S104: performing displacement detection and registration on the enhanced infrared image pixel by pixel to obtain the motion amount of the target in the infrared image; S105: Match the movement direction and magnitude of the background movement generated by the infrared camera movement and the movement of the target in the image to obtain the movement type of the pixel point; S106: filtering using a corresponding time domain filtering algorithm according to the motion type of the pixel point to obtain a filtered infrared image of the current frame; S107: When the next frame of the camera image arrives, the cached N consecutive infrared images are moved back by one frame and the last frame is discarded to complete the time domain filtering.

2. The infrared image time domain filtering method based on displacement detection and registration as claimed in claim 1, characterized in that: In step S101, the N consecutive infrared images buffered by the camera are infrared images that have been corrected for non-uniformity; Non-uniformity correction includes one-point correction and two-point correction; One-point calibration is to subtract a pre-stored uniform surface image from the image captured by the camera in real time; Two-point calibration is to multiply the one-point calibration by the K factor. The calculation formula of the K factor is shown in formula (1): In formula (1), img1 and img2 represent the uniform surface images collected by the infrared camera for the low-temperature black body and the high-temperature black body, respectively, and mv1 and mv2 are the average grayscale values ​​of the pixels of img1 and img2, respectively; Among N consecutive infrared images, the first one represents the current frame, and the rest represent adjacent frames in sequence.

3. The infrared image time domain filtering method based on displacement detection and registration as claimed in claim 1, characterized in that: In step S102, the spatial domain filtering includes a mean filter with a kernel size of 3*3 and a non-local mean filter with kernel sizes of 7*7 and 5*5 respectively; the image enhancement algorithm is a histogram equalization algorithm with restricted contrast adaptation.

4. The infrared image time domain filtering method based on displacement detection and registration as claimed in claim 1, characterized in that: Step S103 is specifically as follows: S201: Divide the enhanced infrared image into non-overlapping sub-blocks, where each image is divided into k*k sub-blocks, to obtain sub-block images of the infrared image; S202: estimating the maximum value of the background motion amount generated by the movement of the infrared camera to obtain a maximum estimated value of the background motion amount; S203: performing Sobel operator edge extraction in the row and column directions on the sub-snapshot image of the infrared image, obtaining absolute values ​​of the extracted edges in the row and column directions, and then adding the absolute values ​​of the edges in the row and column directions to obtain an edge map of the sub-snapshot image of the infrared image; S204: Projecting the edge map of the sub-snap image of the infrared image in the row and column directions to obtain the row and column projection vectors of the edge map of the sub-snap image; S205: Starting from the current frame of the N consecutive infrared images in the cache, two adjacent frames are marked with the same sub-block row and column projection vectors for coarse displacement detection and registration to obtain the coarse displacement value of the sub-block; S206: Based on the coarse displacement value of the sub-block, perform fine displacement detection and registration on the edge map of the sub-block image of the infrared image to obtain a fine displacement value of the sub-block; S207: Adding the coarse displacement value of the sub-block and the fine displacement value of the sub-block to obtain the displacement value of the sub-block with the same mark in two adjacent frames of the N consecutive infrared images in the buffer; S208: according to the displacement values ​​of the sub-blocks with the same mark, in the sub-block images of the infrared image, the sub-blocks with the same displacement values ​​are found and grouped into one category; S209: taking the displacement value of the class with the largest number of sub-fasts as the background motion amount generated by the movement of the infrared camera.

5. The infrared image time domain filtering method based on displacement detection and registration as claimed in claim 4, characterized in that: Step S204 is specifically as follows: S301: Accumulate and add the edge values ​​of each row of the edge map of the sub-snap image of the infrared image to obtain a row projection vector of the edge map of the sub-snap image; S302: Accumulate and add the edge values ​​of each column of the edge map of the sub-snapshot image of the infrared image to obtain a column projection vector of the edge map of the sub-snapshot image.

6. The infrared image time domain filtering method based on displacement detection and registration as claimed in claim 4, characterized in that: Step S205 is specifically as follows: S401: removing the maximum estimated value of the background motion from the beginning and the end of the row projection vector of any subframe i in the current frame to obtain a sliding row projection vector; S402: sliding the sliding row projection vector on the row projection vectors of the same sequence of sub-blocks in the adjacent frames of the current frame, calculating the error sum of squares each time the sliding is performed, and the sliding ends when the row projection vectors of the same sequence of sub-blocks in the adjacent frames of the current frame are reached; Obtain a rough displacement value of sub-block i of the current frame relative to the same sequence sub-block of the adjacent frame of the current frame in the up-down direction according to the position of the sliding row projection vector corresponding to the minimum error square sum on the row projection vector of the adjacent frame of the current frame; S403: removing the maximum estimated value of the background motion from the beginning and the end of the column projection vector of the current frame subframe i to obtain a sliding column projection vector; S404: sliding the sliding column projection vector on the column projection vector of the same sequence sub-block of the adjacent frame of the current frame, calculating the error sum of squares once each time of sliding, and ending the sliding to the end of the column projection vector of the same sequence sub-block of the adjacent frame of the current frame; The rough displacement value of the subblock i of the current frame relative to the same sequence subblock of the adjacent frame of the current frame in the left and right direction is obtained according to the position of the sliding column projection vector corresponding to the minimum error square sum on the column projection vector of the adjacent frame of the current frame.

7. The infrared image time domain filtering method based on displacement detection and registration as claimed in claim 4, characterized in that: Step S206 is specifically as follows: S501: Remove the number of rows and columns of the maximum estimated value of the background motion from the top, bottom, left and right of the edge map of any sub-frame j of the current frame to obtain the sliding edge map of the sub-frame j of the current frame; S502: moving the sliding edge map of sub-block j of the current frame to the position of the coarse displacement value of sub-block j on the edge map of the sub-block in the same sequence of the adjacent frames of the current frame to obtain the starting position of the fine displacement detection and registration; S503: estimating the maximum displacement of the precise displacement detection and registration, and obtaining the maximum displacement estimation of the precise displacement detection and registration; S504: sliding the edge image of the current frame sub-frame j in the four directions of the upper, lower, left and right of the starting position of the fine displacement detection and registration within the range of the maximum displacement of the fine displacement detection and registration, calculating the error square sum once each time of sliding, and ending the sliding at the end; The displacement value of precise displacement detection and registration is obtained according to the position of the edge map of the sliding sub-block j of the current frame corresponding to the minimum sum of square errors on the edge map of the same sequence sub-block of the adjacent frame of the current frame.

8. The infrared image time domain filtering method based on displacement detection and registration as claimed in claim 4, characterized in that: Step S104 is specifically as follows: S601: taking pixel P of the edge map of the sub-block m of the current frame as the center, a block of a preset neighborhood size is used as a template, and moving to the position of the background motion amount generated by the movement of the infrared camera in the edge map of the same sequence of frames adjacent to the current frame to obtain the starting position of the template; S602: Slide the template within a range of n pixels above, below, left and right of the starting position of the template, and calculate the sum of squares of errors each time the template is slid until the template is slid to the end; The displacement of the central pixel of the template is obtained according to the position of the template corresponding to the minimum square error in the sub-block edge map of the same sequence of adjacent frames of the current frame; S603: repeating steps S601 to S602 until all sub-block edge maps of the current frame are completed, including calculation and solution of all pixel points; S604: The motion amount of the target in the infrared image is the algebraic sum of the background motion amount generated by the motion of the infrared camera and the displacement amount of the central pixel of the template.

9. The infrared image time domain filtering method based on displacement detection and registration as claimed in claim 4, characterized in that: The specific rule for determining the motion type of the pixel point in step S105 is: if the amount of background motion generated by the motion of the infrared camera is the same as the amount of motion of the target in the infrared image, then the pixel is a background pixel; otherwise, it is a moving target pixel.

10. The infrared image time domain filtering method based on displacement detection and registration as claimed in claim 9, characterized in that: Step S106 is specifically as follows: if the pixel point belongs to a background pixel, a time-domain Gaussian filter is performed on the pixel; if the pixel point belongs to a moving target, a time-domain bilateral filter is performed on the pixel, and each pixel point of the current frame is traversed to finally obtain the infrared image after filtering of the current frame; wherein the sigma parameters of the time-domain Gaussian filter and the time-domain bilateral filter are obtained by pre-statistics.