A video coding fusion method of infrared and microwave information based on wavelet transform
The fusion of infrared and microwave information through wavelet transform technology solves the problems of information redundancy and instability in traditional fusion technology, achieves efficient and stable image fusion and target detection, and is suitable for complex environments.
Patent Information
- Application Number
- CN202410728757.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-06
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-06-06
AI Technical Summary
Traditional infrared and microwave fusion technology has information redundancy or loss when processing a large amount of information, cannot fully utilize the complementarity of the two types of information, and is sensitive to changes in environmental conditions, resulting in poor and unstable fusion results.
An infrared and microwave information video coding fusion method based on wavelet transform is adopted, including collecting infrared video streams and microwave imaging information, preprocessing, scale-invariant feature extraction, wavelet transform fusion, post-processing and H.265/HEVC coding to improve fusion effects and image quality.
It achieves rapid processing and fusion of infrared and microwave information, improves the fusion effect and image quality, has strong anti-interference ability and stability, and is suitable for target detection and recognition applications in complex environments.
Smart Images

Figure CN118301353B
Abstract
Description
Technical Field
[0001] The invention relates to a wavelet transform-based infrared and microwave information video coding fusion method, belonging to the technical field of video coding processing. Background Art
[0002] Traditional infrared and microwave fusion technology is a method of fusing information from infrared imaging and microwave imaging. Infrared imaging technology can provide temperature distribution and thermal characteristics of the target by capturing infrared radiation radiated by the target object. It is suitable for night observation and scenes with large temperature differences. Microwave imaging technology is a method of imaging using electromagnetic waves in the microwave band. It has the advantages of strong penetration and is not affected by light and weather. It is suitable for target detection and recognition in complex environments.
[0003] Traditional infrared and microwave fusion technology has some limitations when processing large amounts of infrared and microwave information. Traditional methods usually process infrared and microwave information separately and then fuse the two, which may lead to information redundancy or loss. Due to the different physical properties and data formats of infrared and microwave imaging, traditional fusion methods may not be able to fully utilize the complementarity of the two types of information, resulting in poor fusion effects. In addition, it is sensitive to changes in environmental conditions, such as changes in illumination and temperature fluctuations, which may make the fusion effect difficult to be stable and reliable. Wavelet transform is an efficient signal processing method with fast computing speed and low storage requirements. Fusion methods based on wavelet transform can realize rapid processing and fusion of infrared and microwave information, meeting the requirements for real-time and efficient processing. Summary of the invention
[0004] The purpose of the present invention is to provide a method for infrared and microwave information video coding fusion based on wavelet transform, which can make full use of multimodal information, improve fusion effect and image quality, have strong anti-interference ability and stability, and can improve processing efficiency at the same time, and is suitable for target detection and recognition applications in various complex environments.
[0005] In order to achieve the above object, the present invention provides a wavelet transform-based infrared and microwave information video coding fusion coding method, comprising the following steps:
[0006] Step 1: Collect information fragments of infrared video stream and microwave imaging equipment in the same scene;
[0007] Step 2, pre-processing the infrared video stream and the information fragments of the microwave imaging device collected in Step 1 respectively;
[0008] Step 3, extract features from infrared video frames and microwave information fragments using scale-invariant feature transformation method;
[0009] Step 4: Use wavelet transform fusion algorithm to fuse the infrared video frame and microwave information extracted by features in Step 3 to generate a fused video frame;
[0010] Step 5, post-process the fused video frames, including denoising and detail enhancement operations;
[0011] Step 6. Use H.265 / HEVC to encode the fused image sequence into a video file.
[0012] Furthermore, the steps of performing preprocessing operations on the collected infrared video stream and the information fragments of the microwave imaging device in Step 2 are as follows:
[0013] Step 2.1-1, use OpenCV to extract each frame of the infrared video, save each frame image as an independent image file, or store it in memory for subsequent processing;
[0014] Step 2.1-2, adopt the filter-based denoising method, specifically use the median filter, which is a common nonlinear filter. It effectively reduces the noise in the image by taking the median of the pixel value instead of the value of the central pixel. Indicates the position in the image The pixel value of Indicates that the image The output of the median filter is the filter neighborhood centered at It is expressed by the following formula:
[0015] ;
[0016] in, Represents the filter neighborhood The median value of all pixel values in ;
[0017] Step 2.1-3, use the histogram equalization method to perform contrast enhancement on the infrared video frame. Histogram equalization is a classic image enhancement technology that expands the dynamic range of the image by redistributing the pixel values of the image, thereby enhancing the contrast and visual effect of the image. Indicates the position in the image The original pixel value, Represents the pixel value after histogram equalization. The calculation formula of histogram equalization is:
[0018] ;
[0019] Among them, L represents the grayscale level of the image, M×N represents the size of the image, Represents the number of pixels with gray level k in the image;
[0020] Step 2.2-1, use the filter-based spatial domain method to remove artifacts from the microwave information fragment. Specifically, use a Gaussian filter to smooth the image and reduce artifacts in the image. The Gaussian filter achieves smoothing by weighted averaging each pixel in the image. The weight is determined by the Gaussian function. By adjusting the radius of the filter window and the parameters of the Gaussian function, the smoothing degree and effect of the filter can be controlled. Suppose the microwave information fragment is , where p and q represent the horizontal and vertical coordinates of the image respectively. Represents the image after applying the Gaussian filter. The calculation formula of the Gaussian filter is:
[0021] ;
[0022] Where b represents the radius of the filter window, represents the weight of the Gaussian filter;
[0023] Gaussian filter weights Determined by a two-dimensional Gaussian function, the formula is:
[0024] ;
[0025] in, is the standard deviation of the Gaussian function, i and j are the horizontal and vertical distances from the center of the filter window to the neighboring pixels, respectively;
[0026] Step 2.2-2, the dynamic range compression method based on logarithmic transformation is used to operate the microwave information fragments to enhance the visualization effect of the target. Specifically, the pixel values in the microwave image are logarithmically transformed to compress the dynamic range of the image and enhance the details and contrast in the image; the calculation formula of the logarithmic transformation can effectively map the high dynamic range in the image to a smaller range, thereby improving the visual effect and information content of the image. Indicates the position in the image The original pixel value, Represents the pixel value after logarithmic transformation. The calculation formula of logarithmic transformation is:
[0027] ;
[0028] Where c is a constant, usually a positive number, used to adjust the magnitude of the logarithmic transformation, and log represents the natural logarithm.
[0029] Furthermore, the steps of extracting features from the infrared video frame and the microwave information fragment using the scale-invariant feature transform (SIFT) method in Step 3 are as follows:
[0030] The SIFT algorithm first detects key points in the image. These key points are usually local extreme points or edge points in the image. In order to maintain scale invariance, the SIFT algorithm uses a Gaussian difference pyramid to detect extreme points in the scale space. For each key point, the SIFT algorithm calculates a 128-dimensional feature vector, called a descriptor, which contains the gradient information and direction histogram of the area around the key point.
[0031] In the SIFT algorithm, the scale information of key points is obtained through Gaussian pyramid and Gaussian difference pyramid. Specifically, Gaussian filtering in scale space is expressed by the following formula:
[0032] ;
[0033] in, is the original pixel value of the image (here an infrared image is used as an example), Represents a convolution operation. The scale is The two-dimensional Gaussian kernel of is defined as:
[0034] ;
[0035] For each key point, the SIFT algorithm divides its surrounding area into multiple sub-regions and calculates the gradient and direction histogram of each sub-region. Usually, the entire area is divided into 4×4 sub-regions, and each sub-region calculates the histogram of 8 directions, forming a total of 128-dimensional feature vectors;
[0036] Furthermore, in Step 4, the wavelet transform fusion algorithm is used to fuse the infrared video frame and microwave information extracted by features in Step 3, and the steps of generating a fused video frame are as follows:
[0037] Assumptions Represent the wavelet coefficients of infrared video frames and microwave information respectively, Represents the fused wavelet coefficients, which are fused using the weighted average method. The fusion formula is:
[0038] ;
[0039] in, It is a weight parameter used to control the proportion of infrared video frames and microwave information in the fusion. The fused wavelet coefficients are inversely transformed to obtain the fused image.
[0040] Furthermore, the post-processing of the fused video frame in Step 5, including the steps of denoising and detail enhancement operations, is as follows:
[0041] The wavelet denoising method is used to denoise the fused image. It uses wavelet transform to decompose the image into frequency bands of different scales, and then performs threshold processing on the wavelet coefficients of each frequency band to remove noise. The specific steps are as follows: represents the pixel value in the fused video frame, Represents the pixel value after denoising. The wavelet denoising formula based on soft threshold is:
[0042] ;
[0043] Among them, T is the soft threshold, which is used to control the degree of denoising;
[0044] The Laplace sharpening filter algorithm is used to enhance the details of the fused video frames. It can highlight the edges and details of the image, making the image clearer and more three-dimensional. The specific steps are as follows: Represents the enhanced pixel value, and the formula of the Laplace operator is:
[0045] ;
[0046] in, represents the Laplace operator, is the enhancement coefficient.
[0047] Furthermore, the step of encoding the fused image sequence into a video file using H.265 / HEVC in Step 6 is:
[0048] Install and configure a video encoder that supports H.265 / HEVC encoding, and use the command line tool or graphical interface provided by the encoder to convert the fused image sequence into a video file format; execute the commands or operations provided by the encoder to start encoding the image sequence into an H.265 / HEVC video file; the encoding process takes a certain amount of time, depending on the length and resolution of the image sequence, as well as the selected encoding parameters; after the encoding is completed, check and test the generated video file to ensure that the video quality and compression efficiency meet the expected goals; you can use a video player for playback testing, and use quality assessment tools to evaluate the video to ensure that it meets the requirements. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 It is a schematic diagram of the process of the present invention;
[0050] Figure 2 It is a structural schematic diagram of the present invention using a scale-invariant feature transformation algorithm to extract features from infrared video frames and microwave information fragments;
[0051] Figure 3 It is a principle diagram of the wavelet transform fusion algorithm adopted in the present invention;
[0052] Figure 4 It is a flow chart of the present invention using H.265 / HEVC to encode the fused image sequence into a video file. DETAILED DESCRIPTION
[0053] The present invention will be further described below in conjunction with the accompanying drawings.
[0054] like Figure 1 As shown, a wavelet transform-based infrared and microwave information video coding fusion coding method comprises the following steps:
[0055] Step 1: Collect information fragments of infrared video stream and microwave imaging equipment in the same scene;
[0056] Step 2, pre-processing the infrared video stream and the information fragments of the microwave imaging device collected in Step 1 respectively;
[0057] Step 3, extract features from infrared video frames and microwave information fragments using scale-invariant feature transformation method;
[0058] Step 4: Use wavelet transform fusion algorithm to fuse the infrared video frame and microwave information extracted by features in Step 3 to generate a fused video frame;
[0059] Step 5, post-process the fused video frames, including denoising and detail enhancement operations;
[0060] Step 6. Use H.265 / HEVC to encode the fused image sequence into a video file.
[0061] As a preferred implementation, the steps of preprocessing the collected infrared video stream and the information fragments of the microwave imaging device in Step 2 are as follows:
[0062] Step 2.1-1, use OpenCV to extract each frame of the infrared video, save each frame image as an independent image file, or store it in memory for subsequent processing;
[0063] Step 2.1-2, adopt the filter-based denoising method, specifically use the median filter, which is a common nonlinear filter. It effectively reduces the noise in the image by taking the median of the pixel value instead of the value of the central pixel. Indicates the position in the image The pixel value of Indicates that the image The output of the median filter is the filter neighborhood centered at It can be expressed by the following formula:
[0064] ;
[0065] in, Represents the filter neighborhood The median value of all pixel values in ;
[0066] Step 2.1-3, use the histogram equalization method to perform contrast enhancement on the infrared video frame. Histogram equalization is a classic image enhancement technology that expands the dynamic range of the image by redistributing the pixel values of the image, thereby enhancing the contrast and visual effect of the image. Indicates the position in the image The original pixel value, Represents the pixel value after histogram equalization. The calculation formula of histogram equalization is:
[0067] ;
[0068] Among them, L represents the grayscale level of the image, M×N represents the size of the image, Represents the number of pixels with gray level k in the image;
[0069] Step 2.2-1, use the filter-based spatial domain method to remove artifacts from the microwave information fragment. Specifically, use a Gaussian filter to smooth the image and reduce artifacts in the image. The Gaussian filter achieves smoothing by weighted averaging each pixel in the image. The weight is determined by the Gaussian function. By adjusting the radius of the filter window and the parameters of the Gaussian function, the smoothing degree and effect of the filter can be controlled. Suppose the microwave information fragment is , where p and q represent the horizontal and vertical coordinates of the image respectively. Represents the image after applying the Gaussian filter. The calculation formula of the Gaussian filter is:
[0070] ;
[0071] Where b represents the radius of the filter window, represents the weight of the Gaussian filter;
[0072] Gaussian filter weights Determined by a two-dimensional Gaussian function, the formula is:
[0073] ;
[0074] in, is the standard deviation of the Gaussian function, i and j are the horizontal and vertical distances from the center of the filter window to the neighboring pixels, respectively;
[0075] Step 2.2-2, the dynamic range compression method based on logarithmic transformation is used to operate the microwave information fragments to enhance the visualization effect of the target. Specifically, the pixel values in the microwave image are logarithmically transformed to compress the dynamic range of the image and enhance the details and contrast in the image. The calculation formula of logarithmic transformation can effectively map the high dynamic range in the image to a smaller range, thereby improving the visual effect and information content of the image. Indicates the position in the image The original pixel value, Represents the pixel value after logarithmic transformation. The calculation formula of logarithmic transformation is:
[0076] ;
[0077] Where c is a constant, usually a positive number, used to adjust the magnitude of the logarithmic transformation, and log represents the natural logarithm.
[0078] As a preferred implementation, the step of extracting features from the infrared video frame and the microwave information fragment using the scale-invariant feature transform (SIFT) method in Step 3 is as follows:
[0079] The SIFT algorithm first detects key points in the image. These key points are usually local extreme points or edge points in the image. In order to maintain scale invariance, the SIFT algorithm uses a Gaussian difference pyramid to detect extreme points in the scale space. For each key point, the SIFT algorithm calculates a 128-dimensional feature vector, called a descriptor. The descriptor contains the gradient information and direction histogram of the area around the key point, such as Figure 2 As shown;
[0080] In the SIFT algorithm, the scale information of key points is obtained through Gaussian pyramid and Gaussian difference pyramid. Specifically, Gaussian filtering in scale space can be expressed by the following formula:
[0081] ;
[0082] in, is the original pixel value of the image (here an infrared image is used as an example), represents the convolution operation, The scale is The two-dimensional Gaussian kernel of is defined as:
[0083] ;
[0084] For each key point, the SIFT algorithm divides its surrounding area into multiple sub-regions and calculates the gradient and direction histogram of each sub-region. Usually, the entire area is divided into 4×4 sub-regions, and each sub-region calculates the histogram of 8 directions, forming a total of 128-dimensional feature vectors.
[0085] As a preferred implementation, the wavelet transform fusion algorithm is used in Step 4 to fuse the infrared video frame and microwave information extracted by features in Step 3, and the steps of generating a fused video frame are as follows:
[0086] Assumptions Represent the wavelet coefficients of infrared video frames and microwave information respectively, Represents the fused wavelet coefficients. The principle diagram of the wavelet transform fusion algorithm is as follows: Figure 3 As shown in the figure, the weighted average method is used for fusion, and the fusion formula is:
[0087] ;
[0088] in, It is a weight parameter used to control the proportion of infrared video frames and microwave information in the fusion. The fused wavelet coefficients are inversely transformed to obtain the fused image.
[0089] As a preferred implementation, the post-processing of the fused video frame in Step 5, including the steps of denoising and detail enhancement operations, is as follows:
[0090] The wavelet denoising method is used to denoise the fused image. It uses wavelet transform to decompose the image into frequency bands of different scales, and then performs threshold processing on the wavelet coefficients of each frequency band to remove noise. The specific steps are as follows: represents the pixel value in the fused video frame, Represents the pixel value after denoising. The wavelet denoising formula based on soft threshold is:
[0091] ;
[0092] Among them, T is the soft threshold, which is used to control the degree of denoising;
[0093] The Laplace sharpening filter algorithm is used to enhance the details of the fused video frames. It can highlight the edges and details of the image, making the image clearer and more three-dimensional. The specific steps are as follows: Represents the enhanced pixel value, and the formula of the Laplace operator is:
[0094] ;
[0095] in, represents the Laplace operator, is the enhancement coefficient.
[0096] As a preferred implementation, the step of encoding the fused image sequence into a video file using H.265 / HEVC in Step 6 is:
[0097] Install and configure a video encoder that supports H.265 / HEVC encoding, and use the command line tool or graphical interface provided by the encoder to convert the fused image sequence into a video file format; execute the commands or operations provided by the encoder to start encoding the image sequence into an H.265 / HEVC video file; the encoding process takes a certain amount of time, depending on the length and resolution of the image sequence, as well as the selected encoding parameters; after the encoding is completed, check and test the generated video file to ensure that the video quality and compression efficiency meet the expected goals; you can use a video player to perform a playback test, and use a quality assessment tool to evaluate the video to ensure that it meets the requirements. The overall flow chart is as follows Figure 4 shown.
[0098] In summary, the infrared and microwave information video coding fusion method based on wavelet transform can make full use of multimodal information, improve the fusion effect and image quality, has strong anti-interference ability and stability, and can improve processing efficiency. It is suitable for target detection and recognition applications in various complex environments.
Claims
1. A method for encoding and fusing infrared and microwave information video based on wavelet transform, characterized in that: The steps include: Step 1: Collect information fragments of infrared video stream and microwave imaging equipment in the same scene; Step 2: Preprocess the infrared video stream and the information fragments of the microwave imaging device collected in Step 1. The specific steps are as follows: Step 2.1-1, use OpenCV to extract each frame of the infrared video, save each frame image as an independent image file, or store it in memory for subsequent processing; Step 2.1-2, use the filter-based denoising method to denoise the infrared video frame, using a median filter, set Indicates the position in the image The pixel value of Indicates that the image The output of the median filter is the filter neighborhood centered at It is expressed by the following formula: ; in, Represents the filter neighborhood The median value of all pixel values in ; Step 2.1-3, use the histogram equalization method to perform contrast enhancement on the infrared video frame. Indicates the position in the image The original pixel value, Represents the pixel value after histogram equalization. The calculation formula of histogram equalization is: ; Among them, L represents the grayscale level of the image, M×N represents the size of the image, Represents the number of pixels with gray level k in the image; Step 2.2-1, use the filter-based spatial domain method to remove artifacts from the microwave information fragment. Suppose the microwave information fragment is , where p and q represent the horizontal and vertical coordinates of the image respectively; the Gaussian filter performs a weighted average on each pixel in the image, and its weight is determined by the Gaussian function. Represents the image after applying the Gaussian filter. The calculation formula of the Gaussian filter is: ; Where b represents the radius of the filter window, represents the weight of the Gaussian filter; Step 2.2-2, use the dynamic range compression method based on logarithmic transformation to operate the microwave information fragments to enhance the visualization effect of the target. Indicates the position in the image The original pixel value, Represents the pixel value after logarithmic transformation. The calculation formula of logarithmic transformation is: ; Where c is a constant, usually a positive number, used to adjust the magnitude of the logarithmic transformation, and log represents the natural logarithm; Step 3, extract features from infrared video frames and microwave information fragments using scale-invariant feature transformation method; Step 4: Use the wavelet transform fusion algorithm to fuse the infrared video frame and microwave information extracted in Step 3 to generate a fused video frame. The specific steps are as follows: Assume Represent the wavelet coefficients of infrared video frames and microwave information respectively, Represents the fused wavelet coefficients, which are fused using the weighted average method. The fusion formula is: ; in, is a weight parameter used to control the weight of infrared video frames and microwave information in the fusion, and to inversely transform the fused wavelet coefficients to obtain the fused image; Step 5: Post-process the fused video frame, including denoising and detail enhancement. The specific steps are: Use the wavelet denoising method to denoise the fused image. represents the pixel value in the fused video frame, Represents the pixel value after denoising. The wavelet denoising formula based on soft threshold is: ; Among them, T is the soft threshold, which is used to control the degree of denoising; The Laplace sharpening filter algorithm is used to enhance the details of the fused video frames. Represents the enhanced pixel value, and the formula of the Laplace operator is: ; in, represents the Laplace operator, is the enhancement coefficient; Step 6. Use H.265 / HEVC to encode the fused image sequence into a video file.
2. The infrared and microwave information video coding fusion method based on wavelet transform according to claim 1 is characterized in that: The steps of extracting features from infrared video frames and microwave information segments using the scale-invariant feature transformation method in Step 3 are as follows: The SIFT algorithm first detects key points in the image, which are usually local extreme points or edge points in the image. In order to maintain scale invariance, the SIFT algorithm uses a Gaussian difference pyramid to detect extreme points in the scale space. For each key point, the SIFT algorithm calculates a 128-dimensional feature vector, called a descriptor, which contains the gradient information and direction histogram of the area around the key point. In the SIFT algorithm, the scale information of key points is obtained through Gaussian pyramid and Gaussian difference pyramid. Specifically, Gaussian filtering in scale space is expressed by the following formula: ; in, The scale is The two-dimensional Gaussian kernel of is the original pixel value of the image, Represents the convolution operation; For each key point, the SIFT algorithm divides its surrounding area into multiple sub-regions and calculates the gradient and direction histograms of each sub-region. These histograms are then connected to form a 128-dimensional feature vector.
3. The infrared and microwave information video coding fusion method based on wavelet transform according to claim 1 is characterized in that: The steps of encoding the fused image sequence into a video file using H.265 / HEVC in Step 6 are as follows: Install and configure a video encoder that supports H.265 / HEVC encoding, convert the fused image sequence into a video file format, encode the image sequence using the selected H.265 / HEVC encoder, input the converted video file into the encoder, set the encoding parameters, and then encode it. Finally, check and test the encoded video file to ensure that the video quality and compression efficiency meet the requirements.
Citation Information
Patent Citations
Novel infrared image and low-light-level image fusion method
CN108230260A
High-performance infrared-visible fusion detection method
CN108364272A
A method for detecting iced river based on infrared image of multi-feature fusion
CN109214439A
An optical microwave image fusion reconstruction method and device based on sparse representation
CN109712150A
Image fusion device and image fusion method
CN110493494A
