Optical filter sampling and fusion-based video hyperspectral imaging method and system, and medium

By combining RGB video streams and filtered video streams sampled by filters, deep learning technology is used to extract features and perform spectral reconstruction and filter optimization to achieve efficient hyperspectral video imaging and solve the high cost of hyperspectral imaging equipment in the existing technology. and the problem of low resolution, achieving high-precision and fast hyperspectral video imaging.

WO2024178879A1PCT designated stage expired Publication Date: 2024-09-06HUNAN UNIV

Patent Information

Application Number
PCT/CN2023/102544
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-01
Filing Date
2023-06-27
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

The spatio-temporal and spectral resolutions of existing hyperspectral imaging methods are mutually restricted, making it difficult to obtain high-resolution hyperspectral videos, and the cost of spectral imaging equipment is high, which limits hyperspectral applications. RGB video recovery hyperspectral imaging suffers from the problem of missing spectral information. question.

Method used

Using a video hyperspectral imaging method based on filter sampling fusion, the filtered video stream obtained through the RGB video stream and the filter is combined with deep learning technology to extract the features of RGB image frames, filtered image frames and hyperspectral image frames to achieve high performance. Fast imaging of spectral video streams. Specific steps include upsampling and spectral reconstruction of RGB image frames, filtering image frames for filter curve optimization, and fusing the two into a hyperspectral video stream.

Benefits of technology

A small-volume, high-spatial-resolution video hyperspectral imaging device has been realized. It has high imaging accuracy, fast speed, and strong universality. It can effectively simulate the response parameters of the filter set and is suitable for different types of filter sets and RGB images. , without changing the network structure and parameters.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023102544_06092024_PF_FP
    Figure CN2023102544_06092024_PF_FP
Patent Text Reader

Abstract

Disclosed in the present invention are an optical filter sampling and fusion-based video hyperspectral imaging method and system, and a medium. The method in the present invention comprises: acquiring an RGB video stream and a filtered video stream which is obtained by means of an optical filter, and extracting an RGB image frame I and a filtered image frame F; upsampling the RGB image frame I into a shallow spectral feature map X0, and then performing spectral reconstruction to obtain a fine-grained feature map V; performing filtering curve optimization on the filtered image frame F to obtain a hyperspectral image X1; and fusing the fine-grained feature map V and the hyperspectral image X1 into a hyperspectral image frame X constituting a hyperspectral video stream. The present invention uses the RGB video stream and the filtered video stream which is obtained by means of the optical filter to perform video hyperspectral fusion imaging, and uses an advanced deep learning technology to fully mine the features among the RGB image frame, the filtered image frame and the hyperspectral image frame, and thus can achieve rapid imaging of hyperspectral video streams and can be used for realizing small-size video hyperspectral imaging devices having high spatial resolution.
Need to check novelty before this filing date? Find Prior Art

Description

Video hyperspectral imaging method, system and medium based on filter sampling and fusion

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application is based on and claims priority to a Chinese patent application with an application date of March 1, 2023, application number 202310179342.3, and invention name “Video hyperspectral imaging method, system and medium based on filter sampling and fusion”. The full text of the Chinese patent application is hereby cited in this application as a part of this application.

Technical field

[0003] The present invention relates to the technical field of video image processing, and in particular to a video hyperspectral imaging method, system and medium based on filter sampling and fusion. [Background Technology]

[0004] Compared to traditional RGB images, hyperspectral images possess higher spectral resolution and richer spectral information, making them irreplaceable in fields such as aerospace, medicine, and industry. However, due to limitations in imaging principles and imaging sensors, existing hyperspectral imaging methods suffer from interdependent temporal, spatial, and spectral resolution, making it difficult to obtain high-resolution hyperspectral videos. Furthermore, the high cost of spectral imaging equipment significantly limits the application of hyperspectral imaging. Currently, significant progress has been made in acquiring multispectral images using a combination of multiple filters with specific responses. These filters are often narrow-bandpass, high-transmittance filters with weak correlation between them, making it difficult to recover the spectral information of multispectral images. Meanwhile, existing imaging equipment can quickly acquire high-spatial-resolution RGB images or videos. Unfortunately, compared to hyperspectral images, RGB images lack significant spectral information. Spectral recovery from RGB videos to achieve video hyperspectral imaging has become a key technical challenge that needs to be addressed.

[0005] [Summary of the invention]

[0006] The technical problem to be solved by the present invention is as follows: In response to the above-mentioned problems of the prior art, a video hyperspectral imaging method, system and medium based on filter sampling and fusion are provided. The present invention performs video hyperspectral fusion imaging with an RGB video stream and a filtered video stream obtained through a filter, and combines advanced deep learning technology to fully exploit the features among RGB image frames, filtered image frames and hyperspectral image frames, thereby realizing rapid imaging of hyperspectral video streams and being able to be used to realize a small-volume video hyperspectral imaging device with high spatial resolution.

[0007] In order to solve the above technical problems, the technical solution adopted by the present invention is:

[0008] A video hyperspectral imaging method based on filter sampling and fusion, comprising:

[0009] S101, obtaining an RGB video stream and a filtered video stream obtained through a filter, extracting an RGB image frame I from the RGB video stream by frame, and extracting a filtered image frame F from the filtered video stream by frame;

[0010] S102, upsampling the RGB image frame I to obtain a shallow spectral feature map X0, and then performing spectral reconstruction to obtain a fine-grained feature map V; performing filter curve optimization on the filtered image frame F to obtain a hyperspectral image X1;

[0011] S103 , fusing the fine-grained feature map V and the hyperspectral image X1 into a hyperspectral image frame X constituting a hyperspectral video stream.

[0012] Optionally, upsampling the RGB image frame I in step S102 to obtain a shallow spectral feature map X0 includes:

[0013] S201, subtracting the G band from the R band of the RGB image frame I to obtain an RG band feature, subtracting the B band from the G band of the RGB image frame I to obtain a GB band feature, and using the R band, G band, B band, RG band features, and GB band features of the RGB image frame I as a set of features in a combined feature map H, thereby obtaining a combined feature map H;

[0014] S202, using the trained spectral self-similarity guided network layer to upsample the combined feature map H in the spectral dimension to obtain a shallow spectral feature map X0.

[0015] Optionally, in step S202, the function expression of the trained spectral self-similarity guided network layer is: i =Conv 3×3 (Conv 3×3 (Conv 3×3 (H i ))), X0=Conv 3×3 ((ReLu(CAT[M1,M2,M3,M4,M5)),

[0016] In the above formula, M i is the i-th group feature H i The intermediate features of Conv 3×3 is a convolution with a kernel size of 3×3, ReLu represents the ReLu activation function, CAT represents stacking in the channel dimension, and M1 to M5 are the 1st to 5th groups of features H respectively. i The shallow spectral feature map X0 has the same number of spectral bands as the hyperspectral image frame X.

[0017] Optionally, performing spectrum reconstruction to obtain a fine-grained feature map in step S102 refers to inputting the shallow spectrum feature map X0 into a trained spectrum reconstruction layer to perform spectrum reconstruction to obtain a fine-grained feature map V. The function expression of the spectrum reconstruction layer is: V=Res ×N (MAB(Res ×M (X0))),

[0018] In the above formula, Res ×M Represents the M residual network blocks of the spectral reconstruction layer, MAB represents the hybrid attention module of the spectral reconstruction layer, Res ×N N residual network blocks representing the spectral reconstruction layer.

[0019] Optionally, in step S102, performing filter curve optimization on the filtered image frame F to obtain the hyperspectral image X1 refers to inputting the filtered image frame F into a trained filter curve optimization layer to perform filter curve optimization to obtain the hyperspectral image X1, and the function expression of the filter curve optimization layer is: X1=Conv 3×3 (Res ×K (Conv 3×3 (F))),

[0020] In the above formula, Conv 3×3 To increase the convolution kernel size of 3×3 to maintain the consistency of the number of spectral channels, Res ×K are K residual network blocks used to add nonlinearity, and F is the filtered image frame.

[0021] Optionally, in step S103, fusing the fine-grained feature map V and the hyperspectral image X1 into a hyperspectral image frame X constituting a hyperspectral video stream refers to inputting the fine-grained feature map V and the hyperspectral image X1 into a trained fusion layer to obtain a hyperspectral image frame X constituting a hyperspectral video stream, and the function expression of the fusion layer is: X=Res ×K (V+X1)

[0022] In the above formula, Res ×K are K residual network blocks.

[0023] Optionally, before step S101, the step also includes: obtaining RGB video stream samples and filtered video stream samples obtained through a filter, and using the training samples composed of the RGB video stream samples and the filtered video stream samples to perform end-to-end supervised training on a video hyperspectral imaging network composed of a spectral self-similarity guided network layer, a spectral reconstruction layer, and a filter curve optimization layer, and the loss function used in the training is the mean absolute error, and the mean absolute error is the sum of the absolute differences between the label values ​​of the supervised training and the output values ​​of the video hyperspectral imaging network.

[0024] In addition, the present invention also provides a video hyperspectral imaging system based on filter sampling and fusion, including a first video acquisition device, a second video acquisition device and a video hyperspectral imaging processing device, the first video acquisition device is used to acquire RGB video streams, the second video acquisition device is used to acquire filtered video streams after filtering, the output ends of the first video acquisition device and the second video acquisition device are respectively connected to the video hyperspectral imaging processing device, the video hyperspectral imaging processing device includes an interconnected microprocessor and a memory, and the microprocessor is programmed or configured to execute the video hyperspectral imaging method based on filter sampling and fusion described above.

[0025] In addition, the present invention also provides a video hyperspectral imaging system based on filter sampling and fusion, comprising a microprocessor and a memory connected to each other, wherein the microprocessor is programmed or configured to execute the video hyperspectral imaging method based on filter sampling and fusion.

[0026] In addition, the present invention also provides a computer-readable storage medium, in which a computer program is stored. The computer program is used to be programmed or configured by a microprocessor to execute a video hyperspectral imaging method based on filter sampling and fusion.

[0027] Compared with the prior art, the present invention mainly has the following advantages:

[0028] 1. The present invention performs video hyperspectral fusion imaging with RGB video stream and filtered video stream obtained through filters. Based on the mapping relationship between the RGB video stream, the filtered video stream obtained through filters, and the hyperspectral image, the present invention can effectively simulate the response parameters of the filter set, fully utilize the inherent correlation characteristics of the two, and has interpretability (for details, please refer to the imaging principle part below). The present invention combines advanced deep learning technology to fully explore the characteristics between RGB image frames, filtered image frames, and hyperspectral image frames, and can achieve rapid imaging of hyperspectral video streams. It can be used to realize small-volume high-spatial-resolution video hyperspectral imaging equipment. The present invention can effectively simulate the response parameters of the filter set, obtain high-resolution hyperspectral video through easily obtained filtered video and RGB video, and has the advantages of high imaging accuracy, fast speed, and high universality.

[0029] 2. The present invention does not need to change the structure and parameters of the network when dealing with different types of filter sets and RGB images, and has good universality and robustness.

Brief Description of the Drawings

[0030] FIG1 is a schematic diagram of a basic flow chart of a method according to an embodiment of the present invention.

[0031] FIG2 is a schematic diagram of the network structure of a video hyperspectral imaging network according to an embodiment of the present invention.

[0032] FIG3 is a schematic diagram of the network structure of the spectral self-similarity guided network layer in an embodiment of the present invention.

[0033] FIG4 is a comparison of the results of four imaging methods on the hyperspectral image of the CAVE dataset according to an embodiment of the present invention. [Specific implementation method]

[0034] As shown in FIG1 , the video hyperspectral imaging method based on filter sampling and fusion in this embodiment includes:

[0035] S101, obtaining an RGB video stream and a filtered video stream obtained through a filter, extracting an RGB image frame I from the RGB video stream by frame, and extracting a filtered image frame F from the filtered video stream by frame;

[0036] S102, upsampling the RGB image frame I to obtain a shallow spectral feature map X0, and then performing spectral reconstruction to obtain a fine-grained feature map V; performing filter curve optimization on the filtered image frame F to obtain a hyperspectral image X1;

[0037] S103 , fusing the fine-grained feature map V and the hyperspectral image X1 into a hyperspectral image frame X constituting a hyperspectral video stream.

[0038] The imaging principle of the video hyperspectral imaging method based on filter sampling and fusion in this embodiment is as follows:

[0039] First, for the relationship between the hyperspectral image frame X and the RGB image frame I, the following mapping relationship can be established: c (u,v)=∫ Λ P c (λ)X(u,v,λ)dλ,(1)

[0040] In the above formula, I c (u, v) is the pixel value of the pixel at position (u, v) in channel c of RGB image frame I, Λ is the wavelength interval, P c (λ) is the spectral response function of channel c at wavelength λ, and X(u,v,λ) is the spectral radiation at position (u,v) at wavelength λ; channel c satisfies c∈{R,G,B}, where R,G,B are the three channels (bands) of the RGB image, and (u,v) represents a spatial position of the RGB image / hyperspectral image. In practical applications, the wavelength interval is discretely sampled, so (1) can be rewritten as: I c (u,v)=∑ n P c (λ)X(u,v,λ n ), (2)

[0041] In the above formula, n represents the number of spectral bands, X(u,v,λn ) is the discrete wavelength λ n Spectral radiation when the lower position is (u,v).

[0042] Spectral response function P c (λ) is determined by the camera sensor and is related to physical parameters. In other words, if the light source is noise-free, the hyperspectral image frame X and the RGB image frame I have a linear relationship. However, in reality, when capturing RGB images, noise increases with exposure time and temperature, making the relationship between the hyperspectral image frame X and the RGB image frame I non-linear in reality.

[0043] Secondly, for the relationship between the hyperspectral image frame X and the filtered image frame F, the following mapping relationship can be established: F = PBX

[0044] In the above formula, F is the filtered image with a size of w×h and the number of bands is s; X is the hyperspectral image with a size of w×h and the number of bands is S; B is the filter response matrix with a size of S×S, which can be regarded as a bandpass filter in essence; P is the spectral response matrix with a size of s×S, and w and h are the width and height of the hyperspectral image or filtered image, respectively.

[0045] Thirdly, based on the relationship between the hyperspectral image frame X and the RGB image frame I, as well as the relationship between the hyperspectral image frame X and the filtered image frame F, the RGB image frame I can be extracted from the RGB video stream by frame division, and the filtered image frame F can be extracted from the filtered video stream by frame division, so as to realize the corresponding hyperspectral image frame X of the imaging hyperspectral video stream.

[0046] In this embodiment, upsampling the RGB image frame I in step S102 to obtain the shallow spectral feature map X0 includes:

[0047] S201, subtracting the G band from the R band of the RGB image frame I to obtain the RG band feature, subtracting the B band from the G band of the RGB image frame I to obtain the GB band feature, and using the R band, G band, B band, RG band features, and GB band features of the RGB image frame I as a set of features in a combined feature map H, thereby obtaining the combined feature map H: H = [R, RG, G, GB, B];

[0048] S202, using the trained spectral self-similarity guided network layer to upsample the combined feature map H in the spectral dimension to obtain a shallow spectral feature map X0.

[0049] In this embodiment, the function expression of the trained spectral self-similarity guided network layer in step S202 is: i =Conv 3×3 (Conv 3×3 (Conv3×3 (H i ))), X0=Conv 3×3 ((ReLu(CAT[M1,M2,M3,M4,M5)),

[0050] In the above formula, M i is the i-th group feature H i The intermediate features of Conv 3×3 is a convolution with a kernel size of 3×3, ReLu represents the ReLu activation function, CAT represents stacking in the channel dimension, and M1 to M5 are the 1st to 5th groups of features H respectively. i The intermediate features of the shallow spectral feature map X0 are the same as the number of spectral bands of the hyperspectral image frame X. As shown in Figure 3, the spectral self-similarity guided network layer includes five convolution channels, each of which contains three cascaded convolution kernels with a size of 3×3. 3×3 , used to extract the i-th group of features H i The intermediate feature M i ; Then, the results M1 to M5 of the five convolution channels are stacked in the channel dimension through a channel dimension stacking module, and then activated through a ReLu activation layer, and finally through a convolution Conv with a convolution kernel size of 3×3. 3×3 Output shallow spectral feature map X0.

[0051] In this embodiment, the spectral reconstruction in step S102 to obtain a fine-grained feature map refers to inputting the shallow spectral feature map X0 into the trained spectral reconstruction layer to perform spectral reconstruction to obtain a fine-grained feature map V. The function expression of the spectral reconstruction layer is: V=Conv 3×3 (Res ×N (MAB(Res ×M (Conv 3×3 (X0))))),

[0052] In the above formula, Conv 3×3 For convolution with a kernel size of 3×3 used for dimensionality reduction or dimensionality increase, Res ×M Represents the M residual network blocks of the spectral reconstruction layer, MAB represents the hybrid attention module of the spectral reconstruction layer, Res ×NRepresents N residual network blocks of the spectral reconstruction layer. Referring to Figure 2, the spectral reconstruction layer includes M residual network blocks (front layer), a hybrid attention module MAB and N residual network blocks (back layer) cascaded in sequence, which can better learn hyperspectral features. M and N can be selected as required, for example, in this embodiment, M=4 and N=3. The spectral reconstruction layer is combined with the residual network block to make the network have better convergence, and a hybrid attention mechanism is proposed, which can better learn the spatial spectrum features of hyperspectral images, with fewer parameters, fast video hyperspectral imaging speed, high accuracy, and better migration.

[0053] In this embodiment, in step S102, the filter curve optimization of the filtered image frame F to obtain the hyperspectral image X1 refers to inputting the filtered image frame F into the trained filter curve optimization layer to perform filter curve optimization to obtain the hyperspectral image X1. The function expression of the filter curve optimization layer is: X1=Conv 3×3 (Res ×K (Conv 3×3 (F))),

[0054] In the above formula, Conv 3×3 To increase the convolution kernel size of 3×3 to maintain the consistency of the number of spectral channels, Res ×K K is a residual network block used to increase nonlinearity, F is a filtered image frame, and after multiple layers of nonlinear convolution or operation, the filtering curve can be better simulated. K can be selected as required, for example, in this embodiment, K is K=3.

[0055] In this embodiment, in step S103, fusing the fine-grained feature map V and the hyperspectral image X1 into a hyperspectral image frame X constituting a hyperspectral video stream means inputting the fine-grained feature map V and the hyperspectral image X1 into a trained fusion layer to obtain a hyperspectral image frame X constituting a hyperspectral video stream. The function expression of the fusion layer is: X=Res ×T (V+X1)

[0056] In the above formula, Res ×T is K residual network blocks, where T can be selected as required, for example, in this embodiment, T is set to T=3.

[0057] In this embodiment, before step S101, the method further includes: obtaining RGB video stream samples and filtered video stream samples obtained through a filter, and using the training samples composed of the RGB video stream samples and the filtered video stream samples to perform end-to-end supervised training on a video hyperspectral imaging network composed of a spectral self-similarity guided network layer, a spectral reconstruction layer, and a filter curve optimization layer, and the loss function used in the training is the mean absolute error, which is the sum of the absolute differences between the label values ​​of the supervised training and the output values ​​of the video hyperspectral imaging network.

[0058] Since hyperspectral videos can be divided into multiple hyperspectral image frames, this example uses a 32-pair dataset from the CAVE public database for validation experiments. To verify the effectiveness of this method for video hyperspectral imaging based on filter sampling and fusion, we chose to perform validation on a single hyperspectral image. We selected the CAVE dataset, a public hyperspectral dataset with 31 bands and a spatial size of 512×512. In the experiment, the hyperspectral images in this dataset were treated as high-resolution hyperspectral images. Using a known spectral response function, a set of RGB images was downsampled as input. Simultaneously, the filter response function was simulated based on the characteristics of the filtered images, and a set of filtered images was downsampled as input. In practice, 20 pairs of data from the CAVE dataset were used as the training set, 2 pairs as the validation set, and 10 pairs as the test set. Four typical single-RGB hyperspectral imaging methods were compared. Four evaluation metrics for the fused images were used: spectral angle (SAM), root mean square error (RMSE), unified image quality index (UIQI), and structural similarity (SSIM). Larger values ​​for UIQI and SSIM indicate better high-resolution image quality, while larger values ​​for SAM and RMSE indicate poorer high-resolution image quality. Table 1 shows the objective evaluation metrics of imaging experiments on the CAVE dataset for four typical imaging methods (Arad, HSCNN-R, AWAN+, and HSRnet) and the method proposed in this example (TRFS). The best numerical results are highlighted in black.

[0059] Table 1: Objective performance indicators of the method of this embodiment and four typical hyperspectral imaging methods on the CAVE dataset.

[0060] Figure 4 shows the hyperspectral image imaging results of three typical imaging methods HSCNN-R, AWAN+, HSRnet and the method proposed in this embodiment (FRFN) on the CAVE dataset, where the first row is the original hyperspectral image of the case in the CAVE dataset, where (a1) is the original hyperspectral image of the case in the CAVE dataset, and (a2) is the hyperspectral image error result diagram of the HSCNN-R method on the CAVE dataset; where (b1) is the original hyperspectral image of the case in the CAVE dataset, and (b2) is the hyperspectral image error result diagram of the AWAN+ method on the CAVE dataset; where (c1) is the original hyperspectral image of the case in the CAVE dataset, and (c2) is the hyperspectral image error result diagram of the HSRnet method on the CAVE dataset; where (d1) is the original hyperspectral image of the case in the CAVE dataset, and (d2) is the hyperspectral image error result diagram of the method proposed in this embodiment (FRFN) on the CAVE dataset; where (e1) is the original hyperspectral image of the case in the CAVE dataset, and (e2) is the ideal error result diagram. As can be seen from Table 1 and Figure 4, the proposed method (FRFN) outperforms other methods in all objective evaluation metrics. This is because FRFN fuses the filtered image obtained through filter sampling with the RGB image, combining the advantages of both images to reconstruct a more effective hyperspectral image. More importantly, the hybrid attention mechanism employed can better learn the spatial-spectral characteristics of hyperspectral images, preserving both spatial and spectral details.

[0061] In summary, the video hyperspectral imaging method based on filter sampling fusion in this embodiment includes inputting a filter-sampled RGB video stream and a sensor-captured RGB video stream; then, frame by frame, it passes through a filter response curve optimization layer, a spectral feature extraction layer, a reconstruction network layer, and a fusion layer to obtain a fused hyperspectral video X. This method effectively achieves high-spatial-resolution hyperspectral video based on filter sampling fusion, simulates filter response parameters, and reconstructs hyperspectral video. It has strong universality and uses fewer network parameters. The video hyperspectral imaging method based on filter sampling fusion in this embodiment utilizes the powerful learning capabilities of deep neural convolutional networks and uses the filtered video obtained through filter sampling as an auxiliary condition to achieve hyperspectral video imaging. First, a single frame image in the RGB video stream is spectrally upsampled to obtain a shallow spectral feature map, which is then fed into a trained hyperspectral reconstruction network layer to further explore the potential correlation between RGB and hyperspectral. A hybrid attention mechanism is designed to better extract the spatial-spectral features of the hyperspectral image. At the same time, the spectral response curve of a single frame image in the filtered video stream is optimized to obtain a hyperspectral image mapped to the filtered image. The image is then fed into the fusion layer together with the shallow spectral feature map obtained from the RGB image frame to finally obtain a high-resolution hyperspectral image frame. Subsequently, multiple hyperspectral images are obtained and combined to obtain a hyperspectral video. The advantage of this embodiment is that it does not require additional hyperspectral data for training and does not require any prior knowledge. It only needs to be trained on more readily available RGB video and filtered video datasets. The filter response curve is simulated by a deep learning module, making it applicable to different types of hyperspectral data and having strong noise resistance. Compared with other high-performance single RGB video hyperspectral imaging methods, the hyperspectral video obtained by the video hyperspectral imaging method based on filter sampling and fusion in this embodiment has better quality. Relatively speaking, the hyperspectral video obtained by the multi-frame combination also has better quality and stronger noise resistance. For filtered videos and RGB videos using different types of filter sets, there is no need to make too many changes to the network structure and parameters, and it has strong universality and robustness.

[0062] In addition, this embodiment also provides a video hyperspectral imaging system based on filter sampling and fusion, including a first video acquisition device, a second video acquisition device and a video hyperspectral imaging processing device, the first video acquisition device is used to acquire RGB video streams, the second video acquisition device is used to acquire filtered video streams after filtering, the output ends of the first video acquisition device and the second video acquisition device are respectively connected to the video hyperspectral imaging processing device, the video hyperspectral imaging processing device includes a microprocessor and a memory connected to each other, and the microprocessor is programmed or configured to execute the aforementioned video hyperspectral imaging method based on filter sampling and fusion.

[0063] Furthermore, this embodiment provides a video hyperspectral imaging system based on filter sampling and fusion, comprising a microprocessor and a memory connected to each other, wherein the microprocessor is programmed or configured to execute the aforementioned video hyperspectral imaging method based on filter sampling and fusion. Furthermore, this embodiment provides a computer-readable storage medium storing a computer program for being programmed or configured by the microprocessor to execute the aforementioned video hyperspectral imaging method based on filter sampling and fusion.

[0064] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code. The present application is described with reference to the flow chart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present application. It should be understood that each flow process and / or box in the flow chart and / or block diagram and the combination of the flow chart and / or box in the flow chart and / or block diagram can be realized by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processing machine or other programmable data processing device to produce a machine so that the instruction executed by the processor of the computer or other programmable data processing device produces a device for realizing the function specified in one flow chart flow or multiple flows and / or one block or multiple blocks of the block diagram. These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device that implements the functions specified in one or more processes of the flowchart and / or one or more blocks of the block diagram. These computer program instructions may also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes of the flowchart and / or one or more blocks of the block diagram.

[0065] The above description is merely a preferred embodiment of the present invention. The scope of protection of the present invention is not limited to the above embodiment. All technical solutions based on the concept of the present invention are within the scope of protection of the present invention. It should be noted that for those skilled in the art, various improvements and modifications that do not depart from the principles of the present invention should also be considered within the scope of protection of the present invention.

Claims

1. A video hyperspectral imaging method based on filter sampling and fusion, characterized in that: include: S101, obtaining an RGB video stream and a filtered video stream obtained through a filter, extracting an RGB image frame I from the RGB video stream by frame, and extracting a filtered image frame F from the filtered video stream by frame; S102, upsampling the RGB image frame I to obtain a shallow spectral feature map X0, and then performing spectral reconstruction to obtain a fine-grained feature map V; The filter curve of the filtered image frame F is optimized to obtain the hyperspectral image X1; S103, fusing the fine-grained feature map V and the hyperspectral image X1 into a hyperspectral image frame X constituting a hyperspectral video stream.

2. The video hyperspectral imaging method based on filter sampling and fusion according to claim 1 is characterized in that: In step S102, upsampling the RGB image frame I to obtain a shallow spectral feature map X0 includes: S201, subtracting the G band from the R band of the RGB image frame I to obtain the RG band feature, subtracting the B band from the G band of the RGB image frame I to obtain the GB band feature, and taking the R band, G band, B band, RG band features and GB band features of the RGB image frame I as a group of features in a combined feature map H, thereby obtaining a combined feature map H; S202, using the trained spectral self-similarity guided network layer to upsample the combined feature map H in the spectral dimension to obtain a shallow spectral feature map X0.

3. The video hyperspectral imaging method based on filter sampling and fusion according to claim 2 is characterized in that: The function expression of the network layer guided by the trained spectral self-similarity in step S202 is: i =Conv 3×3 (Conv 3×3 (Conv 3×3 (H i ))), X0=Conv 3×3 ((ReLu(CAT[M1,M2,M3,M4,M5)), In the above formula, M i is the i-th group of features H i The intermediate features of Conv 3×3 is a convolution with a kernel size of 3×3, ReLu represents the ReLu activation function, CAT represents stacking in the channel dimension, and M1~M5 are the 1st to 5th groups of features H respectively. i The shallow spectral feature map X0 has the same number of spectral bands as the hyperspectral image frame X.

4. The video hyperspectral imaging method based on filter sampling and fusion according to claim 1 is characterized in that: The spectral reconstruction in step S102 to obtain a fine-grained feature map refers to inputting the shallow spectral feature map X0 into the trained spectral reconstruction layer to perform spectral reconstruction to obtain a fine-grained feature map V. The function expression of the spectral reconstruction layer is: V=Res ×N (MAB(Res ×M (X0))), In the above formula, Res ×M represents the M residual network blocks of the spectral reconstruction layer, MAB represents the hybrid attention module of the spectral reconstruction layer, Res ×N N residual network blocks representing the spectral reconstruction layer.

5. The video hyperspectral imaging method based on filter sampling and fusion according to claim 1 is characterized in that: In step S102, the filter image frame F is optimized by filtering curve to obtain the hyperspectral image X1, which means that the filter image frame F is input into the trained filter curve optimization layer to optimize the filter curve to obtain the hyperspectral image X1. The function expression of the filter curve optimization layer is: X1 = Conv 3×3 (Res ×K (Conv 3×3 (F))), In the above formula, Conv 3×3 To increase the convolution kernel size of 3×3 to maintain the consistency of the number of spectral channels, Res ×K are K residual network blocks used to add nonlinearity, and F is the filtered image frame.

6. The video hyperspectral imaging method based on filter sampling and fusion according to claim 1 is characterized in that: In step S103, fusing the fine-grained feature map V and the hyperspectral image X1 into a hyperspectral image frame X constituting a hyperspectral video stream means inputting the fine-grained feature map V and the hyperspectral image X1 into a trained fusion layer to obtain a hyperspectral image frame X constituting a hyperspectral video stream. The function expression of the fusion layer is: X=Res ×K (V+X1) In the above formula, Res ×K are K residual network blocks.

7. The video hyperspectral imaging method based on filter sampling and fusion according to claim 1 is characterized in that: Before step S101, the method also includes: obtaining RGB video stream samples and filtered video stream samples obtained through filters, and using training samples composed of the RGB video stream samples and the filtered video stream samples to perform end-to-end supervised training on a video hyperspectral imaging network composed of a spectral self-similarity guided network layer, a spectral reconstruction layer, and a filter curve optimization layer, and the loss function used in the training is the mean absolute error, which is the sum of the absolute differences between the label values ​​of the supervised training and the output values ​​of the video hyperspectral imaging network.

8. A video hyperspectral imaging system based on filter sampling and fusion, characterized in that: The invention comprises a first video acquisition device, a second video acquisition device and a video hyperspectral imaging processing device, wherein the first video acquisition device is used to acquire RGB video streams, the second video acquisition device is used to acquire filtered video streams after passing through optical filters, the output ends of the first video acquisition device and the second video acquisition device are respectively connected to the video hyperspectral imaging processing device, the video hyperspectral imaging processing device comprises an interconnected microprocessor and a memory, the microprocessor is programmed or configured to execute the video hyperspectral imaging method based on filter sampling and fusion as described in any one of claims 1 to 7.

9. A video hyperspectral imaging system based on filter sampling and fusion, comprising a microprocessor and a memory connected to each other, characterized in that: The microprocessor is programmed or configured to execute the video hyperspectral imaging method based on filter sampling and fusion as described in any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored therein, characterized in that: The computer program is used to be programmed or configured by a microprocessor to execute the video hyperspectral imaging method based on filter sampling and fusion as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • High-resolution video hyperspectral imaging method and device based on intelligent spatial-spectral fusion and medium

    CN114757831A

  • Hyperspectral imaging method and system based on double RGB image fusion and medium

    CN114998109A

  • Hyperspectral target tracking method based on deep space spectrum convolution fusion features

    CN115345909A

  • Video hyperspectral imaging method and system based on optical filter sampling fusion and medium

    CN116071237A

  • Systems, Devices, and Methods for Hyperspectral Imaging

    US20210348966A1

Cited By

  • Spectrum reconstruction method for filter channel combination customization

    CN118777230A

  • Hyperspectral image coding method, decoding method and related equipment

    CN119562059A

  • Tongue picture analysis method and system based on RGB image and spectral data fusion

    CN120876484A