Self-calibrating hyperspectral imaging device and method
By employing a self-calibrated hyperspectral imaging method and spectral feature fusion processing, the calibration and image registration problems of pushbroom hyperspectral instruments were solved, achieving efficient and stable spectral detection and image recognition, thus improving work efficiency and classification accuracy.
Patent Information
- Application Number
- CN202311253022.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-26
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2043-09-26
AI Technical Summary
Existing push-broom hyperspectral instruments are bulky, require calibration for spectral measurements, and have high positioning accuracy requirements during the scanning process, resulting in low work efficiency; image registration algorithms have high computational complexity and insufficient robustness, making stable registration difficult; existing methods have poor classification performance in qualitative and quantitative analysis.
A self-calibrated hyperspectral imaging method is adopted, which realizes online spectral calibration and correction through calibration optical path and imaging optical path composed of optical fiber, slit, transmission grating and filter unit; image registration is performed by combining SIFT algorithm and RANSAC algorithm, and image recognition and classification are performed by fusing spectral features and color moment features.
It enables online spectral calibration and correction without the need for experimental equipment or professional personnel, improving the accuracy and stability of spectral detection, reducing the false matching rate, and enhancing the accuracy of image recognition and classification.
Smart Images

Figure CN117420078B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of spectral imaging technology, and in particular to a self-calibrating hyperspectral imaging device and method. Background Technology
[0002] Spectroscopic analysis is based on the interaction between light and matter. It identifies substances and analyzes their chemical composition and relative abundance by measuring the changes in wavelength and intensity of emitted, absorbed, or scattered light resulting from energy level transitions in atoms and molecules within the substance. Spectroscopic instruments use dispersion or spectral methods to separate polychromatic light into monochromatic light, and then acquire and process spectral information through photoelectric detection and analog-to-digital conversion. Spectral characteristics arise from specific energy level transitions in atoms or molecules of a substance; qualitative analysis can be performed using the wavelength of the characteristic spectrum, while quantitative analysis can be performed because the intensity of the spectrum is related to the substance's content. Spectroscopic detection technology can rapidly, in real-time, continuously, and non-contactly acquire information about the parameters of a target object, and has broad application prospects in fields such as industrial and agricultural production, environmental monitoring, and medical diagnosis.
[0003] Spectral imaging technology can simultaneously acquire images and spectral features of a sample, reflecting the spectral data of each pixel of the object under test in a two-dimensional planar projection space. This improves the ability to detect small or more complex characteristics or features in both spatial and spectral dimensions. It has the advantages of wide detection range, high speed, and long-term dynamic detection, providing a new method for large-scale, long-term detection.
[0004] Pushbroom imaging spectrometers simultaneously acquire the shape and spectral information of the target object through line-by-line scanning imaging and grating dispersion, offering advantages such as high imaging speed, high spatial resolution, and high spectral resolution. A typical pushbroom spectral imaging system consists of an imaging lens, a slit, a dispersion system, and an area array detector. The imaging lens projects the target's image onto the slit; adjusting the slit width changes the angle and intensity between the incident light and the grating, thus adjusting the spectral resolution. To improve spectral imaging efficiency, pushbroom spectral imaging devices often employ a large area array camera as the detector. The target image, after passing through the grating, is dispersed into monochromatic light, which is then projected onto the area array camera to form a spectrum arranged sequentially by wavelength in the X-direction, and a target line image in the Y-direction. By accumulating the line scan results, spectral imaging of the target sample can be achieved.
[0005] Existing pushbroom hyperspectral instruments are bulky, require calibration and correction for spectral measurements, and demand high positioning accuracy during the scanning process, which impacts work efficiency to some extent. Traditional spectral calibration and correction methods typically employ standard light sources or reflectance to calibrate the wavelength corresponding to each pixel on the detection array based on characteristic spectral lines. Common spectral calibration methods are mainly divided into parallel monochromatic light scanning and characteristic spectral line methods. The principle is to directly incident the output light from a mercury argon lamp or monochromator onto the front lens of the device; then, based on the characteristic spectrum of the mercury argon lamp or the wavelength of the monochromatic light and the corresponding pixel of the CCD, a polynomial fitting is used to obtain the relationship between wavelength and pixel, thereby performing spectral calibration. However, in practical online applications, the imaging spectrometer after offline calibration may undergo position or orientation adjustments to receive the light signal reflected from the sample. This can lead to deviations in the angle and position of the incident light signal, deviating from the ideal state during offline calibration, resulting in wavelength drift and increasing the error of the measurement results.
[0006] Pushbroom imaging obtains the spectrum and imaging results of the sample's linear bands for each frame, and achieves two-dimensional scanning imaging by moving the sample. If relative displacement occurs between the hyperspectral imaging device and the sample during imaging, errors in imaging and spectral detection results can easily occur, often requiring registration. However, existing hyperspectral image registration algorithms suffer from high computational complexity and insufficient robustness to noise and interference, leading to unstable registration results. Furthermore, pushbroom imaging spectrometers can simultaneously capture the spectral, texture, and shape features of the target. Spectral features reflect the chemical composition information of the target, while texture and shape features provide structural and appearance information, overcoming the limitation of spectrometers that can only acquire spectral information. However, in existing qualitative and quantitative analysis applications, typical methods use spectral features alone for classification. This method performs poorly when dealing with "different objects with the same spectrum" and "same object with different spectra" problems.
[0007] To address the aforementioned technical deficiencies, this invention proposes a self-calibrating hyperspectral imaging device and a spectral feature fusion processing method, thereby improving the efficiency and robustness of image registration in spectral image processing. Summary of the Invention
[0008] (a) Technical problems to be solved
[0009] To address the aforementioned problems, this disclosure provides a self-calibrated hyperspectral imaging device and method to alleviate the technical issues described in the prior art.
[0010] (II) Technical Solution
[0011] One aspect of this disclosure provides a self-calibrated hyperspectral imaging method, comprising: operation S1: receiving a light source signal emitted by a light source and performing shearing and dispersion spectral processing to obtain a first calibration light signal; operation S2: performing filtering processing on a portion of the first calibration light signal to obtain a second calibration light signal for a target wavelength band; operation S3: receiving the reflected light signal generated after the light source illuminates the target to be measured, collimating and focusing it, and performing shearing and dispersion spectral processing to obtain a hyperspectral imaging light signal; operation S4: performing black-and-white correction and spectral calibration on the hyperspectral image obtained from the hyperspectral imaging light signal based on the first calibration light signal and the second calibration light signal, respectively, to obtain a self-calibrated spectral image.
[0012] According to an embodiment of this disclosure, operation S1 includes: operation S11: shearing the light source signal incident from the optical fiber into the slit; operation S12: collimating and focusing the sheared light source signal onto the transmission grating for beam splitting; and operation S13: collimating and focusing the split light source signal again to obtain a first calibration light signal.
[0013] According to an embodiment of this disclosure, operation S2 includes: operation S21: selecting a filter unit suitable for the target wavelength band; and operation S22: setting the filter unit to block part of the propagation optical path of the first calibration optical signal, so that part of the first calibration optical signal passes through the filter unit to obtain the second calibration optical signal of the target wavelength band.
[0014] According to an embodiment of this disclosure, operation S3 includes: operation S31: illuminating the target under test with a light source signal to generate a reflected light signal; operation S32: passing the reflected light signal through an imaging lens into a slit for shearing; operation S33: collimating and focusing the sheared reflected light signal onto a transmission grating for beam splitting; and operation S34: collimating and focusing the split reflected light signal again to obtain a hyperspectral imaging light signal.
[0015] According to an embodiment of this disclosure, operation S4 includes: operation S41: receiving a first calibration light signal and a second calibration light signal through the detector calibration area and converting them into a first digital calibration signal and a second digital calibration signal; operation S42: receiving the hyperspectral imaging light signal through the detector imaging area to obtain a hyperspectral digital signal; operation S43: performing Gaussian fitting and quadratic polynomial fitting on the hyperspectral digital signal based on the detector calibration area image of the first digital calibration signal to obtain the center wavelength of each detection channel, thus completing spectral calibration; operation S44: normalizing the light intensity of the target under test based on the detector calibration area image and the dark noise image of the second digital calibration signal, and performing black and white correction on the hyperspectral digital signal.
[0016] According to an embodiment of this disclosure, the self-calibrated hyperspectral imaging method further includes: operation S5: performing image registration on the self-calibrated spectral image based on feature points of the self-calibrated spectral image to eliminate spatial differences in the spectral images of each wavelength caused by changes in spatial factors.
[0017] Further, operation S5 includes: operation S51: extracting local feature points from the reference image of the target under test and the self-calibrated spectral image using the SIFT algorithm; operation S52: obtaining images at different scales and angles by performing Gaussian blur operation on the self-calibrated spectral image, and constructing a Gaussian pyramid image under a set wavelength λ; operation S53: subtracting two adjacent Gaussian pyramid images under the same wavelength to obtain a Gaussian difference scale space image; operation S54: defining local feature points in the Gaussian difference scale space image; operation S55: selecting multiple target local feature points for binary description, and using the XOR operation between binary bits to measure the similarity between any two target local feature points, completing the preliminary matching of local feature points; and operation S56: using the RANSAC algorithm to filter and remove mismatched local feature points.
[0018] According to an embodiment of this disclosure, the self-calibrated hyperspectral imaging method further includes: operation S6: extracting spectral features and color features from the self-calibrated spectral image and performing spectral fusion to improve the accuracy of target identification and classification.
[0019] Further, operation S6 includes: operation S61: selecting the region of interest in the hyperspectral image and extracting the average spectral data within the region of interest to obtain the original spectral data, and performing noise filtering on the original spectral data; operation S62: determining the characteristic wavelength group according to the continuous projection algorithm as spectral features; operation S63: extracting the first, second, and third order color moments of the image for each characteristic wavelength channel to obtain the corresponding color features; and operation S64: splicing and fusing the normalized color features and spectral features to complete the image fusion.
[0020] In another aspect of this disclosure, a self-calibrating hyperspectral imaging device is provided, comprising: a calibration optical path unit, a filter unit, an imaging optical path unit. The calibration optical path unit includes an optical fiber, a slit, a first collimating lens, a transmission grating, and a second collimating lens arranged sequentially. The calibration optical path unit is configured to receive a light source signal emitted by a light source and perform shearing and dispersion processing to obtain a first calibration optical signal. The filtering unit is configured to block part of the propagation path of the first calibration optical signal, and is used to filter a portion of the first calibration optical signal to obtain a second calibration optical signal in the target wavelength band. The imaging optical path unit includes an imaging lens, a slit, a third collimating lens, a transmission grating, and a fourth collimating lens arranged sequentially. The imaging optical path unit is configured to receive the reflected light signal generated after the light source illuminates the target, collimate and focus it, and perform shearing and dispersion processing to obtain a hyperspectral imaging optical signal. The detection and display unit includes a detector, a signal processing and display module, and is configured to perform black-and-white correction and spectral calibration on the hyperspectral image obtained from the hyperspectral imaging optical signal based on the first calibration optical signal and the second calibration optical signal, respectively, to obtain a self-calibrated spectral image.
[0021] (III) Beneficial Effects
[0022] As can be seen from the above technical solutions, the self-calibrating hyperspectral imaging device and method disclosed herein have at least one or a part of the following beneficial effects:
[0023] (1) Online spectral calibration and correction are realized without the need for experimental equipment and professional personnel, which reduces experimental time and saves operating costs; secondly, the spectral calibration, correction and target detection operations are carried out simultaneously, and timely feedback and adjustments can be provided by referring to the calibration and correction data in real time, which effectively improves the accuracy and stability of spectral detection.
[0024] (2) An improved SIFT algorithm is used for the registration of multiple images. The SIFT key point extraction and BRISK binary description are combined to effectively improve the running speed of the algorithm. Binary XOR is used for coarse matching of feature points, and then RANSAC algorithm is used to further remove mismatched points, which effectively reduces the mismatch rate.
[0025] (3) By using the method of fusing spectral dimension features and color moment features, image features can be described more comprehensively and richly, enhancing the model's ability to capture image details and improving the accuracy of image recognition and classification. Attached Figure Description
[0026] Figure 1 This is a schematic diagram of the self-calibrated hyperspectral imaging method according to an embodiment of the present disclosure.
[0027] Figure 2This is a schematic diagram of a self-calibrated hyperspectral imaging device according to an embodiment of the present disclosure.
[0028] Figure 3 This is a schematic diagram illustrating the principle framework of the image registration method according to an embodiment of the present disclosure. Detailed Implementation
[0029] This disclosure provides a self-calibrating hyperspectral imaging device and method. It utilizes a filter array to achieve spectral self-calibration. Image registration is performed on the pre-processed image, combining the SIFT algorithm with the BRISK operator to extract and binary describe local image feature points. The RANSAC algorithm is then used to filter and remove mismatched points, reducing computational complexity while improving image registration efficiency and robustness. Noise removal is applied to the registered image spectrum. The Continuous Projection (SPA) algorithm is used to extract spectral features, calculate and standardize the first, second, and third moments of image color, and then fuse the color and spectral features to more comprehensively describe the spatial structure and color information of the image, thereby improving the accuracy and reliability of image recognition, classification, and qualitative and quantitative analysis.
[0030] To make the objectives, technical solutions, and advantages of this disclosure clearer, the following detailed description is provided in conjunction with specific embodiments and the accompanying drawings.
[0031] In this embodiment of the disclosure, a self-calibrated hyperspectral imaging method is provided, combined with Figure 1 and Figure 2 As shown, the self-calibrated hyperspectral imaging method includes operations S1-S5, as follows:
[0032] Operation S1: Receive the light source signal emitted by the light source and perform shearing and dispersion processing to obtain the first calibration light signal;
[0033] Operation S2: Filter a portion of the first calibration optical signal to obtain a second calibration optical signal for the target wavelength band;
[0034] Operation S3: After receiving the reflected light signal generated by the light source illuminating the target, collimate and focus it, and perform shearing and dispersive spectral processing to obtain the hyperspectral imaging light signal;
[0035] Operation S4: Based on the first calibration light signal and the second calibration light signal, perform black-and-white correction and spectral calibration on the hyperspectral image obtained from the hyperspectral imaging light signal to obtain a self-calibrated spectral image.
[0036] According to an embodiment of this disclosure, operation S1 includes operations S11-S13, as follows:
[0037] Operation S11: The light source signal is incident from the optical fiber to the slit for shearing;
[0038] Operation S12: Collimate and focus the sheared light source signal onto the transmission grating for beam splitting; and
[0039] Operation S13: Collimate and focus the split light source signal again to obtain the first calibration light signal.
[0040] According to an embodiment of this disclosure, operation S2 includes operations S21-S22, as follows:
[0041] Operation S21: Select a filter unit suitable for the target wavelength band; and
[0042] Operation S22: Set the filter unit to block part of the propagation optical path of the first calibration optical signal, so that part of the first calibration optical signal passes through the filter unit to obtain the second calibration optical signal of the target band.
[0043] According to an embodiment of this disclosure, operation S3 includes operations S31-S34, as follows:
[0044] Operation S31: Illuminate the target under test with the light source signal to generate a reflected light signal;
[0045] Operation S32: The reflected light signal is incident through the imaging lens onto the slit for shearing;
[0046] Operation S33: Collimate and focus the sheared reflected light signal onto the transmission grating for beam splitting; and
[0047] Operation S34: Collimate and focus the reflected light signal after spectral splitting again to obtain the hyperspectral imaging light signal.
[0048] According to an embodiment of this disclosure, operation S4 includes operations S41-S44, as follows:
[0049] Operation S41: Receive the first calibration optical signal and the second calibration optical signal through the detector calibration area and convert them into the first digital calibration signal and the second digital calibration signal respectively;
[0050] Operation S42: Receive hyperspectral imaging light signals through the detector imaging area to obtain hyperspectral digital signals;
[0051] Operation S43: Based on the detector calibration area image of the first digital calibration signal, Gaussian fitting and quadratic polynomial fitting are performed on the hyperspectral digital signal to obtain the center wavelength of each detection channel, thus completing the spectral calibration;
[0052] Operation S44: Based on the second digital calibration signal, the detector calibration area image and dark noise image are normalized to the light intensity of the target under test, and the hyperspectral digital signal is black and white corrected.
[0053] More specifically, in the process of spectral calibration and black-and-white correction, in order to determine the center wavelength and spectral resolution of each channel of the detector, and to establish a quantitative relationship between the digital quantization value output by each detector element in the self-calibrated hyperspectral imaging device and the output radiance value in its corresponding field of view, it is necessary to use the first calibration light signal and the second calibration light signal obtained from the detector calibration area for spectral calibration and black-and-white correction.
[0054] More specifically, during spectral calibration, to determine the center wavelength and spectral resolution of each channel of the detector, the second calibration light signal obtained from the detector calibration area and passing through the filter unit needs to be used for spectral calibration. The filter unit consists of m rows and n columns of filters, with each row containing identical filters. The center wavelength of each column increases sequentially in 10nm increments from 400 to 800nm, i.e., 400nm, 410nm, 420nm, up to 800nm. The transmission spectral matrix F(m×n) corresponding to the second calibration light signal received by the detector calibration area, where m is the number of narrowband channels and n is the number of wavelengths, exhibits a Gaussian distribution along each row of channels. The spectral curve of the i-th row of channels is shown below:
[0055]
[0056] In the formula, λ represents the wavelength. c Let A represent the center wavelength of the channel, σ be a constant, and σ be the spectral resolution of the channel. By performing Gaussian fitting on the spectral curve using MATLAB, the center wavelengths and spectral resolutions of the m channels can be obtained.
[0057] Secondly, a quadratic polynomial function y = Ax is used. 2 +Bx+C for each channel x i Its center wavelength λ c Fit the relationship and select the value that makes the center wavelength λ of each channel equal. c Fitting result λ with the quadratic polynomial c (x i The parameters A, B, and C with the smallest standard error are used as polynomial coefficients. The final calibration function for the center wavelength of each channel is shown below:
[0058] λ c (x i )=Ax i 2 +Bx i +C;
[0059] The center wavelength of all channels can be obtained through calculation.
[0060] In the process of black and white correction, in order to establish a quantitative relationship between the digital quantization value output by each detector element of the detector in the self-calibrating hyperspectral imaging device and the output radiance value in its corresponding field of view, it is necessary to use the first calibration light signal obtained from the detector calibration area for black and white correction.
[0061] During black-and-white correction, the light intensity of the object under test can be normalized using the detector calibration area image and the dark noise image, expressed as:
[0062]
[0063] In the formula, R is the black-and-white corrected image, and I S For the image of the detector's detection area, I W It is a black reference image obtained by covering the lens with a lens cap with 0% reflectivity, serving as a dark noise image. D This is an image of the detector calibration area.
[0064] According to embodiments of this disclosure, the self-calibrated hyperspectral imaging method further includes operation S5, as follows:
[0065] Operation S5: Perform image registration on the self-calibrated spectral image based on the feature points of the self-calibrated spectral image to eliminate spatial differences in the spectral images of each wavelength caused by changes in spatial factors.
[0066] Furthermore, operation S5 includes operations S51-S56, as follows:
[0067] Operation S51: Use the SIFT algorithm to extract local feature points from the reference image and self-calibrated spectral image of the target under test;
[0068] Operation S52: By performing Gaussian blur on the self-calibrated spectral image, images of different scales and angles are obtained, and a Gaussian pyramid image under the set wavelength λ is constructed;
[0069] Operation S53: Subtract two adjacent Gaussian pyramid images at the same wavelength to obtain a Gaussian difference scale space image;
[0070] Operation S54: Define local feature points in the Gaussian difference scale space image;
[0071] Operation S55: Select multiple target local feature points for binary description, and use the XOR operation between binary bits to measure the similarity between any two target local feature points, completing the initial matching of local feature points; and
[0072] Operation S56: Use the RANSAC algorithm to filter and remove local feature points that have mismatched.
[0073] As mentioned above, since the device or the target under test may acquire images from different angles or positions at different times, and factors such as shooting angle, lens distortion, motion, or deformation may affect the images, resulting in spatial and geometric differences. To improve the effectiveness of the self-calibrated spectral images, this embodiment also performs image registration on the self-calibrated spectral images. More specifically, in conjunction with... Figure 3 As shown, it can be mainly divided into four stages: feature extraction, feature description, feature matching, and matching optimization.
[0074] First, the SIFT algorithm is used to extract local feature points from the reference image of the target and the obtained self-calibrated spectral image. These local features are invariant to the scale and rotation of the images. By performing a series of Gaussian blur operations on the original images, images at different scales and angles are obtained. A Gaussian pyramid is then constructed under the wavelength λ image, as shown in the following expression:
[0075]
[0076] L(x,y,σ,λ)=I(x,y,λ)G λ (x, y, σ);
[0077] In the formula, the scale space L(x, y, σ, λ) of the two-dimensional image is defined as the scale-variable Gaussian function G. λ The convolution of (x, y, σ) with the self-calibrated spectral image I(x, y, λ), where (x, y, λ) are the coordinates of the image pixels and σ is the scale.
[0078] Subtracting two adjacent Gaussian pyramid images at the same wavelength yields the Gaussian difference scale space (DOG) D(x, y, σ, λ), as shown below:
[0079] D(x,y,σ,λ)=L(x,y,kσ,λ)-L(x,y,σ,λ);
[0080] In the formula, k is a constant, determined by the number of layers at each level of the scale space.
[0081] In a DOG image, if the DOG value of a certain pixel (x, y, λ) is greater than or less than the values of 26 feature points within a 3*3 range of the same layer and the two adjacent layers, then that point can be defined as a local feature point.
[0082] Secondly, the BRISK descriptor is used to perform binary description of local feature points in an equally spaced sampling pattern. At local feature point P... i A circular region with radius r is defined around (x, y, λ), and n points are sampled at equal intervals. For each sampling point P... j (x, y, λ), calculate its relationship with the local feature point P. i The grayscale difference ΔI(P) betweeni P j ,λ), compare the grayscale difference with the threshold E λ In comparison, values greater than the threshold are marked as 1, and values less than the threshold are marked as 0, as shown below:
[0083]
[0084] After obtaining the binary description of the local feature points, the XOR operation between the binary bits is used to measure the similarity between the two feature points. The smaller the XOR distance, the more similar the two feature points are, thus completing the initial matching of feature points.
[0085] Finally, the RANSAC algorithm is used to filter and remove mismatched points. Among the matching points in the wavelength λ image, four pairs of matching points are randomly selected as inliers, and the remaining pairs are outliers. The homography matrix H is calculated based on the four pairs of inliers. λ Let M be the matching model under wavelength λ. λ The formula is as follows:
[0086]
[0087]
[0088] In the formula, (x, y, λ) represents the coordinates of the point to be matched in the reference image, (x′, y′, λ′) represents the coordinates of the point to be matched in the image to be registered (self-calibrated spectral image), and s is the scale parameter.
[0089] Calculate other matching pairs (x) i y i , λ i ), (x′ i y′ i ,λ′ i ) and Model M λ Projection error e λ And set the threshold R λ Remove those with values greater than the threshold R λ The matching points are used, and the process iterates k times to remove mismatched points in the image. The projection error e λ The calculation formula is as follows:
[0090]
[0091] Furthermore, embodiments of this disclosure can also perform spectral and image information fusion on the self-calibrated hyperspectral image. According to embodiments of this disclosure, the self-calibrated hyperspectral imaging method further includes operation S6, as follows:
[0092] Operation S6: Extract spectral and color features from the self-calibrated spectral image and perform spectral fusion to improve the accuracy of target identification and classification.
[0093] Furthermore, operation S6 includes operations S61-S64, as follows:
[0094] Operation S61: Select the region of interest (ROI) of the hyperspectral image and extract the average spectral data within the ROI to obtain the raw spectral data. Then, perform noise filtering on the raw spectral data.
[0095] Operation S62: Determine the characteristic wavelength group as spectral features based on the continuous projection algorithm;
[0096] Operation S63: Extract the first, second, and third order color moments of the image for each feature wavelength channel to obtain the corresponding color features; and
[0097] Operation S64: Combine and fuse the normalized color features with the spectral features to complete the spectral fusion.
[0098] The self-calibrated spectral image of the target under test contains both one-dimensional spectral information and two-dimensional image information. Each wavelength corresponds to one image. Therefore, the spectral features and the color features of the image are obtained from the self-calibrated spectral image.
[0099] The specific steps for performing map fusion are as follows:
[0100] First, select the region of interest (ROI) of the hyperspectral image and extract the average spectral data within the ROI to obtain the raw spectral data.
[0101] Next, Savitzky-Golay (SG) was used to smooth and filter the noise from the original spectral data. The filter window width was set to n = 2m + 1, and the wavelength λ... k The average smoothed spectral value at λ k,smooth for:
[0102]
[0103] In the formula, h i H is the smoothing coefficient, and H is the normalization factor. h i It can be obtained by polynomial fitting based on the least squares principle.
[0104] Secondly, the Continuous Projection Algorithm (SPA) is used to select the wavelength group with minimal redundancy from the independent variables, resulting in characteristic wavelengths with low collinearity and low redundancy. Channel x is then calculated. j With channel x i projection mapping The projection vectors are compared, and the wavelength with the largest projection vector is selected as the characteristic wavelength, which is then used as the spectral feature. (Projection mapping) The calculation formula is as follows:
[0105]
[0106] After selecting the characteristic wavelength group, the first-order (μ) image is processed for each characteristic wavelength channel. i ), second order (σ) i ), third order (ε) i The extraction of color moments (color features) is shown below:
[0107]
[0108]
[0109]
[0110] In the formula, N represents the number of pixels in the i-th feature wavelength channel image, and P j The grayscale value of the j-th pixel.
[0111] Finally, the image color features μ under each wavelength channel are... i σ i ε i Each of these is standardized to eliminate dimensions, as shown below:
[0112]
[0113]
[0114]
[0115] In the formula, Mean is the feature mean, and Std is the feature standard deviation. The normalized image color features and spectral features are spliced and fused together for subsequent qualitative and quantitative analysis.
[0116] Embodiments of this disclosure also provide a self-calibrating hyperspectral imaging device, such as... Figure 2 As shown, the self-calibrating hyperspectral imaging device includes: a calibration optical path unit, a filter unit, an imaging optical path unit 300, and a detection and display unit 400.
[0117] The calibration optical path unit includes an optical fiber 110, a slit A, a first collimating lens 120, a transmission grating B, and a second collimating lens 130 arranged in sequence. The calibration optical path unit is configured to receive the light source signal emitted by the light source and perform shearing and dispersion processing to obtain a first calibration optical signal.
[0118] Filter unit such as Figure 2The image shows a filter unit (filter array 300), which is configured to block part of the propagation optical path of the first calibration optical signal, and is used to filter a part of the first calibration optical signal to obtain a second calibration optical signal in the target band.
[0119] The imaging optical path unit includes an imaging lens 210, a slit A, a third collimating lens 220, a transmission grating B, and a fourth collimating lens 230 arranged in sequence. The imaging optical path unit is configured to receive the reflected light signal generated after the light source illuminates the target under test, collimate and focus it, and perform shearing and dispersion spectral processing to obtain a hyperspectral imaging light signal.
[0120] The detection and display unit 400 includes a detector 410 and a signal processing and display module 420, and is configured to perform black-and-white correction and spectral calibration on the hyperspectral image obtained from the hyperspectral imaging light signal based on the first calibration light signal and the second calibration light signal, respectively, to obtain a self-calibrated spectral image.
[0121] As can be seen from the above, the light source signal emitted by the light source includes two parts. One part of the light source signal is reflected by the target to be measured to generate a reflected light signal, which enters the imaging lens 210 and then enters the slit A for spatial modulation to achieve shearing. The sheared reflected light signal is then collimated and focused by the third collimating lens 220 to the transmission grating B for beam splitting. Then it is collimated and focused again by the fourth collimating lens 230 to obtain a hyperspectral imaging light signal, which can directly act on the detector imaging area. Another portion of the light source signal directly enters the transmission channel of fiber optic 110, and is then spatially modulated and sheared through the entrance slit A. The sheared light source signal is then collimated and focused by the first collimating lens 120 onto the transmission grating B for beam splitting, and then collimated and focused again by the second collimating lens 130 to obtain the first calibration light signal. A filter unit 300 suitable for the target wavelength band, such as a filter array, is set in a portion of the propagation path of the first calibration light signal. This allows a portion of the first calibration light signal to pass through the filter array to obtain the second calibration light signal of the target wavelength band, which is then focused on the calibration area of detector 410. The portion of the first calibration light signal that is not filtered is directly focused on the calibration area of detector 410. Finally, detector 410... The first calibration light signal, the second calibration light signal, and the hyperspectral imaging light signal acquired from the calibration area and the imaging area, respectively, are converted into the corresponding first digital calibration signal, second digital calibration signal, and hyperspectral digital signal by the detector 410 and transmitted to the signal processing and display module 420, such as a computer or host computer, for further calibration processing. For example, the hyperspectral digital signal may be subjected to Gaussian fitting and quadratic polynomial fitting based on the detector calibration area image based on the first digital calibration signal to obtain the center wavelength of each detection channel, thus completing the spectral calibration. The light intensity of the target under test is normalized based on the detector calibration area image and the dark noise image based on the second digital calibration signal, and the hyperspectral digital signal is subjected to black and white correction to obtain a preliminary self-calibrated spectral image.
[0122] The embodiments of this disclosure have been described in detail above with reference to the accompanying drawings. It should be noted that implementations not illustrated or described in the drawings or the main text of the specification are forms known to those skilled in the art and are not described in detail. Furthermore, the definitions of the various elements and methods described above are not limited to the specific structures, shapes, or methods mentioned in the embodiments, and those skilled in the art can easily modify or substitute them.
[0123] Based on the above description, those skilled in the art should have a clear understanding of the self-calibrating hyperspectral imaging device and method disclosed herein.
[0124] In summary, this disclosure provides a self-calibrating hyperspectral imaging device and method. Based on a grating pushbroom-type spectral imaging device, it achieves online spectral calibration and correction without requiring experimental equipment or professional personnel, reducing experimental time and saving operating costs. Secondly, it enables simultaneous spectral calibration, correction, and analyte detection, providing timely feedback and adjustments based on calibration and correction data in real time, effectively improving the accuracy and stability of spectral detection. An improved SIFT algorithm is used for multi-image registration, combining SIFT keypoint extraction with BRISK binary description, effectively improving the algorithm's running speed. Binary XOR is used for coarse feature point matching, followed by further elimination of mismatched points using the RANSAC algorithm, effectively reducing the mismatch rate. The method of fusing spectral and color moment features provides a more comprehensive and richer description of image features, enhancing the model's ability to capture image details and improving the accuracy of image recognition and classification.
[0125] It should also be noted that the above are different embodiments provided by this disclosure. These embodiments are used to illustrate the technical content of this disclosure and are not intended to limit the scope of protection of this disclosure. A feature of one embodiment can be applied to other embodiments through suitable modifications, substitutions, combinations, or separations.
[0126] It should be noted that, unless otherwise specified herein, having "a" element is not limited to having a single element, but may include one or more of the element.
[0127] Furthermore, unless otherwise specified, the ordinal numbers such as "first," "second," etc., used herein are merely for distinguishing multiple elements with the same name and do not indicate any hierarchy, order of execution, or process sequence among them. A "first" element and a "second" element may appear together in the same component or separately in different components. The presence of an element with a higher ordinal number does not necessarily indicate the presence of another element with a lower ordinal number.
[0128] In this document, unless otherwise specified, the term "characteristic A" or "and / or" and "characteristic B" means that A exists alone, B exists alone, or A and B exist simultaneously; the term "characteristic A" and "and" or "and" and "and" and "characteristic B" means that A and B exist simultaneously; the terms "including", "containing", "having", and "containing" refer to, but are not limited to, these.
[0129] Furthermore, in this document, terms such as "up," "down," "left," "right," "front," "back," or "between" are used only to describe the relative positions of multiple elements and can be extended to include translation, rotation, or mirroring. Additionally, unless otherwise specified, the statement "one element is on another element" or similar statements do not necessarily indicate that the element is in contact with the other element.
[0130] Furthermore, unless specifically described or required to occur in a specific order, the order of the above steps is not limited to those listed above and can be varied or rearranged according to the desired design. Moreover, the above embodiments can be used in combination with each other or with other embodiments based on design and reliability considerations; that is, technical features from different embodiments can be freely combined to form more embodiments.
[0131] The specific embodiments described above further illustrate the purpose, technical solutions, and beneficial effects of this disclosure. It should be understood that the above descriptions are merely specific embodiments of this disclosure and are not intended to limit this disclosure. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this disclosure should be included within the protection scope of this disclosure.
Claims
1. A self-calibrated hyperspectral imaging method, comprising: Operation S1: Receive the light source signal emitted by the light source and perform spatial modulation and dispersion spectral processing to obtain the first calibration light signal; Operation S2: Filter a portion of the first calibration optical signal to obtain a second calibration optical signal for the target wavelength band; Operation S3: After receiving the reflected light signal generated by the light source illuminating the target, collimate and focus the light, and perform spatial modulation and dispersive spectral processing to obtain a hyperspectral imaging light signal; Operation S4: Based on the first calibration light signal and the second calibration light signal, perform spectral calibration and black-and-white correction on the hyperspectral image obtained from the hyperspectral imaging light signal to obtain a self-calibrated spectral image; Operation S4 includes: Operation S41, receiving the first calibration optical signal and the second calibration optical signal through the detector calibration area and converting them into the first digital calibration signal and the second digital calibration signal respectively; Operation S42: Receive the hyperspectral imaging light signal through the detector imaging area to obtain a hyperspectral digital signal; Operation S43: Perform Gaussian fitting and quadratic polynomial fitting on the hyperspectral digital signal based on the detector calibration area image of the first digital calibration signal to obtain the center wavelength of each detection channel, thus completing spectral calibration; Operation S44: Normalize the light intensity of the target under test based on the detector calibration area image and dark noise image of the second digital calibration signal, and perform black and white correction on the hyperspectral digital signal.
2. The self-calibrated hyperspectral imaging method according to claim 1, wherein operation S1 includes: Operation S11: Spatial modulation of the light source signal is performed by introducing it into the slit through the optical fiber; Operation S12: Collimate and focus the spatially modulated light source signal onto the transmission grating for beam splitting; as well as Operation S13: Collimate and focus the split light source signal again to obtain the first calibration light signal.
3. The self-calibrated hyperspectral imaging method according to claim 1, wherein operation S2 includes: Operation S21: Select a filter unit suitable for the target wavelength band; as well as Operation S22: Set the filter unit to block part of the propagation optical path of the first calibration optical signal, so that part of the first calibration optical signal passes through the filter unit to obtain the second calibration optical signal of the target band.
4. The self-calibrated hyperspectral imaging method according to claim 1, wherein operation S3 includes: Operation S31: Illuminate the target under test with the light source signal to generate a reflected light signal; Operation S32: The reflected light signal is incident onto the slit through the imaging lens for spatial modulation; Operation S33: Collimate and focus the spatially modulated reflected light signal onto the transmission grating for beam splitting; and Operation S34: Collimate and focus the reflected light signal after spectral splitting again to obtain the hyperspectral imaging light signal.
5. The self-calibrated hyperspectral imaging method according to any one of claims 1 to 4, further comprising: Operation S5: Perform image registration on the self-calibrated spectral image based on the feature points of the self-calibrated spectral image to eliminate spatial differences in the spectral images of each wavelength caused by changes in spatial factors.
6. The self-calibrated hyperspectral imaging method according to any one of claims 1 to 4, further comprising: Operation S6: Extract spectral and color features from the self-calibrated spectral image and perform spectral fusion to improve the accuracy of target identification and classification.
7. The self-calibrated hyperspectral imaging method according to claim 5, wherein operation S5 includes: Operation S51: Use the SIFT algorithm to extract local feature points from the reference image and self-calibrated spectral image of the target under test; Operation S52: By performing Gaussian blur on the self-calibrated spectral image, images at different scales and angles are obtained, and images with a set wavelength are constructed. Image of the Gaussian pyramid below; Operation S53: Subtract two adjacent Gaussian pyramid images at the same wavelength to obtain a Gaussian difference scale space image; Operation S54: Define local feature points in the Gaussian difference scale space image; Operation S55: Select multiple target local feature points for binary description, and use the XOR operation between binary bits to measure the similarity between any two target local feature points, completing the initial matching of local feature points; and Operation S56: Use the RANSAC algorithm to filter and remove local feature points that have mismatched.
8. The self-calibrated hyperspectral imaging method according to claim 6, wherein operation S6 includes: Operation S61: Select the region of interest in the hyperspectral image and extract the average spectral data within the region of interest to obtain the original spectral data. Then, perform noise filtering on the original spectral data. Operation S62: Determine the characteristic wavelength group as spectral features based on the continuous projection algorithm; Operation S63: Extract the first, second, and third order color moments of the image for each feature wavelength channel to obtain the corresponding color features; and Operation S64: Combine and fuse the normalized color features with the spectral features to complete the spectral fusion.
9. A self-calibrating hyperspectral imaging device, comprising: The calibration optical path unit includes an optical fiber, a slit, a first collimating lens, a transmission grating, and a second collimating lens arranged in sequence. The calibration optical path unit is configured to receive a light source signal emitted by a light source and perform spatial modulation and dispersion spectral processing to obtain a first calibration optical signal. The filtering unit is configured to block part of the propagation optical path of the first calibration optical signal, and is used to filter a part of the first calibration optical signal to obtain a second calibration optical signal in the target band. The imaging optical path unit includes an imaging lens, a slit, a third collimating lens, a transmission grating, and a fourth collimating lens arranged in sequence. The imaging optical path unit is configured to receive the reflected light signal generated after the light source illuminates the target under test, collimate and focus it, and perform spatial modulation and dispersion spectral processing to obtain a hyperspectral imaging light signal. The detection and display unit includes a detector, a signal processing and display module, and is configured to perform spectral calibration and black-and-white correction on the hyperspectral image obtained from the hyperspectral imaging light signal based on the first calibration light signal and the second calibration light signal, respectively, to obtain a self-calibrated spectral image.
Citation Information
Patent Citations
Self-correcting unmanned aerial vehicle hyperspectral imaging detection system and method based on LVF
CN112098345A
Double-light-path spectrometer, color measuring device and calibration method
CN114739905A
