Multi-slit hyperspectral data reconstruction processing method
Through the correction and merging processing of multi-slit hyperspectral data, the problem of inconsistency of multi-slit hyperspectral data is solved, efficient, real-time and high-precision reconstruction is achieved, and the accuracy and precision of the data are improved.
Patent Information
- Application Number
- CN202410700116.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-05-31
AI Technical Summary
The existing technology lacks an efficient reconstruction processing method for data inconsistency between multi-slit hyperspectral data, and it is difficult to obtain high-precision multi-slit hyperspectral reconstructed data in real time.
Through dark current correction, relative radiation correction, bad pixel correction, lateral image motion error correction (intra-line interpolation), spectral position error correction (inter-line interpolation), inter-frame error correction (inter-frame interpolation) and multi-slit hyperspectral data Merge the reconstruction steps to improve the consistency and accuracy between multi-slit hyperspectral data.
It achieves efficient error correction and reconstruction processing of multi-slit hyperspectral data, improving the accuracy and precision of the reconstructed data. The accuracy of the reconstructed multi-slit hyperspectral data can reach within 3%, and achieves high efficiency. , real-time data processing.
Smart Images

Figure CN118670518A
Abstract
Description
Technical Field
[0001] The invention relates to a multi-slit hyperspectral data processing method, and in particular to a multi-slit hyperspectral data reconstruction processing method. Background Art
[0002] The multi-slit dispersion hyperspectral imaging system acquires the overall data of the entire object surface through push scanning. Figure 1 The existing multi-slit dispersion type hyperspectral imaging system usually includes a front lens group 1, a multi-slit template 2, a collimator lens group 3, a dispersion element 4, an imaging lens group 5 and a detector 6 which are arranged in sequence along the optical path. Due to the use of multi-slit spectrometry, hyperspectral data of different columns of local elements can be obtained at a single moment, and then multiple sets of hyperspectral data of the same local element after different slit spectrometry at different moments can be obtained by push scanning. In theory, the multiple sets of hyperspectral data of the same local element obtained are consistent. By averaging the multiple sets of hyperspectral data of the same local element, hyperspectral data with a higher signal-to-noise ratio can be obtained. However, in actual engineering, since the multiple sets of hyperspectral data of the same local element are obtained at different positions of the detector, different positions of the optical system, and different times, there are differences between the multi-slit hyperspectral data of the same local element actually obtained, and this difference directly affects the accuracy of the final data. In order to ensure the consistency between multi-slit hyperspectral data of the same local element, it is necessary to perform error correction and targeted processing on multiple sets of hyperspectral data other than the baseline data in order to obtain high-precision final data. This process is the reconstruction process of multi-slit hyperspectral data. During the reconstruction process, it is necessary to perform correction operations on various errors and data differences, and the overall process is relatively cumbersome and complicated. Under limited resources, how to simply and efficiently correct various errors and data differences, complete the reconstruction of multi-slit hyperspectral data, and obtain high-precision multi-slit hyperspectral reconstructed data in real time is currently lacking.
[0003] At present, the processing of single-slit hyperspectral data is relatively mature, but there is no immediate and efficient processing method for the reconstruction of data inconsistencies between multi-slit hyperspectral data. Summary of the invention
[0004] The purpose of the present invention is to provide a multi-slit hyperspectral data reconstruction and processing method to solve the technical problem that the prior art lacks an efficient reconstruction and processing method for data inconsistency between multi-slit hyperspectral data and it is difficult to obtain high-precision multi-slit hyperspectral reconstructed data in real time.
[0005] The inventive concept of the present invention is: in the process of multi-slit hyperspectral data reconstruction, the lateral image shift error, spectral position error and inter-frame error between the multi-slit hyperspectral data are corrected by intra-row interpolation, inter-row interpolation and inter-frame interpolation to improve the consistency between the multi-slit hyperspectral data; in the multi-slit hyperspectral data merging and reconstruction link, the reference data and difference threshold are set to filter out and avoid the influence of moving targets on the consistency between the multi-slit hyperspectral data, and further improve the accuracy of the reconstructed hyperspectral data. Its main steps include: dark current correction, relative radiation correction, bad pixel correction, lateral image shift error correction (intra-row interpolation), spectral position error correction (inter-row interpolation), inter-frame error correction (inter-frame interpolation correction), multi-slit hyperspectral data merging and reconstruction, etc., and finally realize the efficient reconstruction of multi-slit hyperspectral data. The above-mentioned intra-row refers to the spatial dimension direction of the data, which is perpendicular to the push-scanning direction of the imaging system; the above-mentioned inter-row refers to the slit dispersion direction, which is consistent with the push-scanning direction of the imaging system.
[0006] In order to solve the above technical problems and complete the above inventive concept, the technical solution adopted by the present invention is:
[0007] A multi-slit hyperspectral data reconstruction processing method, which is special in that it includes the following steps:
[0008] Step 1: subtracting a dark current correction coefficient from the multi-slit array data acquired in the multi-slit dispersion hyperspectral imaging system to achieve dark current correction of the data and obtain dark current corrected data; the dark current correction coefficient is obtained by measurement;
[0009] Step 2: multiplying the dark current corrected data obtained in step 1 by a relative radiation correction coefficient to achieve relative radiation correction of the data and obtain relative radiation corrected data; the relative radiation correction coefficient is obtained by measurement;
[0010] Step 3: Use one-dimensional interpolation method to perform bad pixel correction on the relative radiation corrected data obtained in step 2 to obtain bad pixel corrected data;
[0011] Step 4: defining one of the slits in the multi-slit dispersion type hyperspectral imaging system as a reference slit, and defining the bad pixel corrected data of the reference slit in the bad pixel corrected data obtained in step 3 as reference slit hyperspectral data; then taking the reference slit hyperspectral data as a correction reference, using an intra-row interpolation method to perform lateral image shift error correction on the bad pixel corrected data of the remaining slits except the reference slit in the bad pixel corrected data obtained in step 3, to obtain lateral image shift error corrected data of the remaining slits;
[0012] Step 5: Using the reference slit hyperspectral data defined in step 4 as the correction reference, the inter-row interpolation method is used to perform spectral position error correction on the lateral image shift error corrected data of the remaining slits obtained in step 4 to obtain spectral position error corrected data of the remaining slits;
[0013] Step 6: Using the reference slit hyperspectral data defined in step 4 as the correction reference, the inter-frame interpolation correction method is used to perform inter-frame error correction on the spectral position error-corrected data of the remaining slits obtained in step 5 to obtain the corrected data of the remaining slits;
[0014] Step 7: The calibrated data of the remaining slits obtained in step 6 are combined and reconstructed with the reference slit hyperspectral data defined in step 4 to obtain multi-slit hyperspectral reconstructed data, thus completing the reconstruction process.
[0015] Furthermore, in step 3, a one-dimensional interpolation method is used, only the interpolation in the row direction is considered, and the maximum number of consecutive bad pixels is set to four, and the bad pixel correction is performed on the relative radiation corrected data obtained in step 2 to obtain the bad pixel corrected data; specifically:
[0016] 1) When there is a single bad pixel, the bad pixel correction result is 0.5A+0.5B;
[0017] 2) When there are two consecutive bad pixels, the bad pixel correction results are 0.67A+0.33B and 0.33A+0.67B, or 0.75A+0.25B and 0.25A+0.75B from left to right;
[0018] 3) When there are three consecutive bad pixels, the bad pixel correction results are 0.67A+0.33B, 0.5A+0.5B, and 0.33A+0.67B from left to right;
[0019] 4) When there are four consecutive bad pixels, the bad pixel correction results are 0.2A+0.8B, 0.4A+0.6B, 0.6A+0.4B, and 0.8A+0.2B from left to right;
[0020] A and B respectively represent the normal pixels adjacent to the left and right sides of the corresponding continuous bad pixels.
[0021] Furthermore, in step 4, when the bad pixel corrected data of each slit other than the reference slit in the bad pixel corrected data obtained in step 3 are respectively corrected for lateral image motion errors by using the row interpolation method, the bad pixel corrected data of each slit are corrected by using the row interpolation method in units of rows, and the pixel data S of the coordinate point (i, j) is output after correction. i,j The calculation is performed using formula [1], which is:
[0022] S i,j =αC i,t +(1-α)C i,t+1 [1];
[0023] In formula [1]: S i,j represents the pixel data of the output coordinate point (i, j) after the lateral image motion error correction; α represents the lateral image motion error correction coefficient; C i,t , C i,t+1 They respectively represent the pixel data with row coordinates i and column coordinates t and the pixel data with row coordinates i and column coordinates t+1 in the corrected data of the bad pixels of the slit obtained in step 3; the values of α and t are determined by the measured lateral image shift error of the slit relative to the reference slit.
[0024] Furthermore, the error sources causing the lateral image shift error in step 4 include optical system distortion error and bias angle residual correction error.
[0025] Furthermore, in step 5, when the spectral position error correction is performed on the lateral image shift error corrected data of the remaining slits obtained in step 4, the lateral image shift error corrected data of each slit is corrected by the interline interpolation method in columns, and the pixel data S of the coordinate point (i′, j′) is output after correction. i ″ ,j′ The calculation is performed using formula [2], which is:
[0026] S i ″ ,j′ =α′C k ' ,j′ +(1-α′)C k ' +1,j′ [2];
[0027] In formula [2]: S i ″ ,j′ represents the pixel data of the output coordinate point (i′, j′) after spectral position error correction; α′ represents the spectral position error correction coefficient; C k ' ,j′ , C k ' +1,j′ They respectively represent the pixel data with row coordinates k and column coordinates j′ and the pixel data with row coordinates k+1 and column coordinates j′ in the data after correction of the lateral image shift error of the slit obtained in step 4; the values of α′ and k are determined by the measured spectral position error of the slit relative to the reference slit.
[0028] Furthermore, in step 5, the spectral position error refers to the spectral center wavelength deviation between the lateral image shift error corrected data of the remaining slits obtained in step 4 and the reference slit hyperspectral data defined in step 4.
[0029] Furthermore, in step 6, the calculation method of the inter-frame interpolation correction method is to use formula [3] to calculate the linear interpolation between two adjacent frames, and use the linear interpolation as the correction completion data of the corresponding slit; the formula [3] is:
[0030] D f ′=α″D f,m +(1-α″)D f,m+1 [3];
[0031] In formula [3]: D f ′ represents the correction completion data of slit f, and f represents the slit serial number of the remaining slits. The slit serial number defined as the reference slit in step 4 is set to 1, and f takes 2, 3, ..., R, and R is the total number of slits in the multi-slit dispersion hyperspectral imaging system; α″ represents the inter-frame error correction coefficient of slit f; D f,m , D f,m+1 They respectively represent the mth frame and the m+1th frame data of the spectral position error corrected data of slit f among the spectral position error corrected data of the remaining slits obtained in step 5, where m is the frame number; the values of α″ and m are determined by the measured inter-frame error of slit f relative to the reference slit.
[0032] Furthermore, the error source causing the inter-frame error in step 6 includes the slit distance deviation caused by assembly accuracy.
[0033] Furthermore, in order to make the multi-slit hyperspectral reconstructed data obtained after merging and reconstructing more accurate, the step 7 is specifically as follows:
[0034] Step 7.1: Set the difference threshold μ;
[0035] Step 7.2: Based on the calibration data of the remaining slits obtained in step 6, the reference slit hyperspectral data defined in step 4, and the difference threshold μ set in step 7.1, the combined switch matrix P of the remaining slits except the reference slit is calculated. f , f is set to 2, 3, ..., R;
[0036] Step 7.3: According to the combined switch matrix P of the remaining slits except the reference slit set in step 7.2 f, f is 2, 3, ..., R, and the correction data of the remaining slits obtained in step 6 are combined and reconstructed with the reference slit hyperspectral data defined in step 4 using formula [4] to obtain the multi-slit hyperspectral reconstructed data and complete the reconstruction process; the formula [4] is:
[0037] D″=(RD1-(D1-D′2)⊙P2-…(D1-D′ R )⊙P R ) / R [4];
[0038] In formula [4]: D″ represents the reconstructed data of multi-slit hyperspectral spectrum; D1 represents the reference slit hyperspectral data defined in step 4; D′2, ..., D′ R respectively represent the correction completed data of slit 2, ..., slit R obtained in step 6; P2, ..., P R They respectively represent the combined switch matrices of slits 2, ..., slit R set in step 7.2; ⊙ represents the Hadamard product of the two matrices.
[0039] Furthermore, the step 7.2 is specifically as follows:
[0040] Step 7.2.1: Combine the combined switch matrix P of the remaining slits except the reference slit f , f takes the values of 2, 3, …, R, and the matrix size is set to be the same as the matrix size of the benchmark slit hyperspectral data defined in step 4;
[0041] Step 7.2.2: Difference the corrected data of the remaining slits obtained in step 6 with the corresponding data in the reference slit hyperspectral data defined in step 4, and then compare the absolute value of each difference with the difference threshold μ set in step 7.1; if the absolute value of the difference is greater than the difference threshold μ set in step 7.1, the merged switch matrix P of the corresponding slit is f The corresponding position element in is set to 0; if the absolute value of the difference is less than or equal to the difference threshold μ set in step 7.1, the merged switch matrix P corresponding to the slit f The corresponding position element in is set to 1; based on this principle, the combined switch matrix P of the remaining slits except the reference slit is completed. f , f takes the setting of all elements in 2, 3, ..., R.
[0042] The beneficial effects of the present invention are:
[0043] (1) The multi-slit hyperspectral data reconstruction processing method of the present invention completes the correction of data inconsistency error terms between multiple multi-slit hyperspectral data through seven steps of dark current correction, relative radiation correction, bad pixel correction, lateral image motion error correction (intra-row interpolation), spectral position error correction (inter-row interpolation), inter-frame error correction (inter-frame interpolation correction), and multi-slit hyperspectral data merging and reconstruction, and filters out the influence of moving targets in the merging and reconstruction link, thereby improving the accuracy and precision of the multi-slit hyperspectral reconstructed data. The precision of the multi-slit hyperspectral reconstructed data can reach within 3%; and the multi-slit hyperspectral data reconstruction processing method of the present invention is simple in operation, and can realize efficient and real-time reconstruction processing of multi-slit hyperspectral data; therefore, the present invention solves the technical problem that the prior art lacks an efficient reconstruction processing method for data inconsistency between multi-slit hyperspectral data, and it is difficult to obtain high-precision multi-slit hyperspectral reconstructed data in real time.
[0044] (2) The multi-slit hyperspectral data reconstruction and processing method of the present invention realizes efficient error correction and efficient reconstruction of multi-slit hyperspectral data. The operation is simple and relies on fewer storage resources and computing resources. The multi-slit hyperspectral data reconstruction and processing can be completed quickly and efficiently, and the efficient and fast real-time output of multi-slit hyperspectral reconstructed data is realized. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 It is a schematic diagram of the structure of the existing multi-slit dispersion type hyperspectral imaging system mentioned in the background technology;
[0046] Figure 1 The descriptions of the labels are as follows:
[0047] 1-front mirror group, 2-multi-slit template, 3-collimating mirror group, 4-dispersion element, 5-imaging mirror group, 6-detector.
[0048] Figure 2 It is a flow chart of an embodiment of a multi-slit hyperspectral data reconstruction processing method of the present invention. DETAILED DESCRIPTION
[0049] The present invention is described in detail below with reference to the accompanying drawings and specific embodiments.
[0050] See also Figure 2 The present invention provides a multi-slit hyperspectral data reconstruction processing method, comprising the following steps:
[0051] Step 1: subtract the dark current correction coefficient from the multi-slit array data acquired in the multi-slit dispersion hyperspectral imaging system to achieve dark current correction of the data and obtain dark current corrected data; the dark current correction coefficient is obtained by measurement;
[0052] Step 2: multiply the dark current corrected data obtained in step 1 by the relative radiation correction coefficient to achieve relative radiation correction of the data and obtain relative radiation corrected data; the relative radiation correction coefficient is obtained by measurement;
[0053] Step 3: Use one-dimensional interpolation method to perform bad pixel correction on the relative radiation corrected data obtained in step 2 to obtain bad pixel corrected data;
[0054] Step 4: defining one of the slits in the multi-slit dispersion hyperspectral imaging system as a reference slit, and defining the bad pixel corrected data of the reference slit in the bad pixel corrected data obtained in step 3 as reference slit hyperspectral data; then taking the reference slit hyperspectral data as the correction reference, using the intra-row interpolation method to perform lateral image shift error correction on the bad pixel corrected data of the remaining slits except the reference slit in the bad pixel corrected data obtained in step 3, to obtain lateral image shift error corrected data of the remaining slits;
[0055] Step 5: Using the reference slit hyperspectral data defined in step 4 as the correction reference, the inter-row interpolation method is used to perform spectral position error correction on the lateral image shift error corrected data of the remaining slits obtained in step 4 to obtain spectral position error corrected data of the remaining slits;
[0056] Step 6: Using the reference slit hyperspectral data defined in step 4 as the correction reference, the inter-frame interpolation correction method is used to perform inter-frame error correction on the spectral position error-corrected data of the remaining slits obtained in step 5 to obtain the corrected data of the remaining slits;
[0057] Step 7: The calibrated data of the remaining slits obtained in step 6 are combined and reconstructed with the reference slit hyperspectral data defined in step 4 to obtain multi-slit hyperspectral reconstructed data, thus completing the reconstruction process.
[0058] See also Figure 2 In this embodiment, a double-slit dispersion type hyperspectral imaging system is selected, the detector size is 1024×256, the number of spectral bands is 80, and the number of detector bits is 12 bits. The dynamic range of the detector is 0-4096, and two sets of hyperspectral data with a size of 1024×80 can be obtained. When the multi-slit hyperspectral data reconstruction processing method of the present invention is used to reconstruct the two sets of hyperspectral data obtained by the double-slit dispersion type hyperspectral imaging system selected in this embodiment, the specific steps are as follows:
[0059] Step 1: subtract the dark current correction coefficient d from the double-slit array data F obtained in the double-slit dispersion hyperspectral imaging system, that is, the above two groups of hyperspectral data with a size of 1024×80, to achieve dark current correction of the data and obtain dark current corrected data F′; the above dark current correction coefficient d is obtained by measurement. In this embodiment, the dark current correction coefficient d measured is 2 groups of matrix data with a size of 1024×80, with an average value of 506;
[0060] Step 2: multiply the dark current corrected data F′ obtained in step 1 by the relative radiation correction coefficient x to achieve relative radiation correction of the data and obtain the relative radiation corrected data F″; the relative radiation correction coefficient x is obtained by measurement. In this embodiment, the relative radiation correction coefficient x measured is 2 groups of 1024×80 matrix data, and the value is between 0.95 and 1.05;
[0061] Step 3: Use one-dimensional interpolation to perform bad pixel correction on the relative radiation corrected data F" obtained in step 2 to obtain bad pixel corrected data F"'; in step 3 of this embodiment, when performing bad pixel correction on the relative radiation corrected data F" obtained in step 2 using one-dimensional interpolation, only the interpolation in the row direction is considered, and the maximum number of consecutive bad pixels is set to four; when performing bad pixel correction according to the different numbers of consecutive bad pixels, the restoration algorithms are as follows:
[0062] 1) When there is a single bad pixel, the bad pixel correction result is 0.5A+0.5B;
[0063] 2) When there are two consecutive bad pixels, the bad pixel correction results are 0.67A+0.33B and 0.33A+0.67B, or 0.75A+0.25B and 0.25A+0.75B from left to right;
[0064] 3) When there are three consecutive bad pixels, the bad pixel correction results are 0.67A+0.33B, 0.5A+0.5B, and 0.33A+0.67B from left to right;
[0065] 4) When there are four consecutive bad pixels, the bad pixel correction results are 0.2A+0.8B, 0.4A+0.6B, 0.6A+0.4B, and 0.8A+0.2B from left to right;
[0066] A and B above represent the normal pixels adjacent to the left and right of the corresponding continuous bad pixels respectively;
[0067] Step 4: define slit 1 in the double-slit dispersion hyperspectral imaging system as the reference slit, and define the bad pixel corrected data of slit 1 in the bad pixel corrected data F″′ obtained in step 3 as the reference slit hyperspectral data, denoted by D1; the bad pixel corrected data of slit 2 in the bad pixel corrected data obtained in step 3 is denoted by D2, that is, the bad pixel corrected data F″′ obtained in step 3 is divided into two parts, D1 and D2; then, the reference slit hyperspectral data D1 is used as the correction reference, and the lateral image shift error of D2 is corrected by the intra-row interpolation method. , and obtain the lateral image shift error corrected data of slit 2; the error sources causing the above-mentioned lateral image shift error in step 4 mainly include error sources such as optical system distortion error and residual correction error of bias angle; in this embodiment, in step 4, when the lateral image shift error is corrected for the bad pixel corrected data of each slit except the reference slit in the bad pixel corrected data obtained in step 3, the bad pixel corrected data of each slit is corrected by the line interpolation method in units of lines, and the pixel data S of the coordinate point (i, j) is output after correction i,j The calculation is performed using formula [1], which is:
[0068] S i,j =αC i,t +(1-α)C i,t+1 [1];
[0069] In formula [1]: S i,j represents the pixel data of the output coordinate point (i, j) after the lateral image motion error correction; α represents the lateral image motion error correction coefficient; C i,t , C i,t+1 They respectively represent the pixel data with row coordinates i and column coordinates t and the pixel data with row coordinates i and column coordinates t+1 in the bad pixel corrected data of the slit obtained in step 3; the values of α and t are determined by the measured lateral image shift error of the slit relative to the reference slit; in this embodiment, the above-mentioned row coordinates refer to the coordinates in the 1024 direction, and in this embodiment, the α and t corresponding to the slit 2 determined according to the measured lateral image shift error of the slit 2 relative to the slit 1 are both 1024×80 matrix data;
[0070] Step 5: Taking the reference slit hyperspectral data D1 defined in step 4 as the correction reference, the inter-row interpolation method is used to perform spectral position error correction on the lateral image shift error corrected data of slit 2 obtained in step 4 to obtain the spectral position error corrected data of slit 2; the spectral position error in step 5 refers to the spectral center wavelength deviation between the lateral image shift error corrected data of the remaining slits obtained in step 4 and the reference slit hyperspectral data defined in step 4; specifically, in this embodiment, the spectral position error in step 5 refers to the spectral center wavelength deviation between the lateral image shift error corrected data of slit 2 obtained in step 4 and the reference slit hyperspectral data D1 defined in step 4; in step 5 of this embodiment, when the inter-row interpolation method is used to perform spectral position error correction on the lateral image shift error corrected data of the remaining slits obtained in step 4, the inter-row interpolation method in columns is used to correct the lateral image shift error corrected data of each slit, and the pixel data S of the coordinate point (i′, j′) is output after correction. i ″ ,j′ The calculation is performed using formula [2], which is:
[0071] S i ″ ,j′ =α′C k ' ,j′ +(1-α′)C k ' +1,j′ [2];
[0072] In formula [2]: S i ″ ,j′ represents the pixel data of the output coordinate point (i′, j′) after spectral position error correction; α′ represents the spectral position error correction coefficient; C k ' ,j′ , C k ' +1,j′ They respectively represent the pixel data with row coordinates k and column coordinates j′ and the pixel data with row coordinates k+1 and column coordinates j′ in the data after the lateral image shift error correction of the slit obtained in step 4; the values of α′ and k are determined by the measured spectral position error of the slit relative to the reference slit; in this embodiment, the above-mentioned column coordinates refer to the coordinates in the 80 direction, and in this embodiment, the α′ and k corresponding to the slit 2 determined according to the measured spectral position error of the slit 2 relative to the slit 1 are both 1024×80 matrix data;
[0073] Step 6: Using the reference slit hyperspectral data D1 defined in step 4 as the correction reference, the inter-frame interpolation correction method is used to perform inter-frame error correction on the spectral position error-corrected data of slit 2 obtained in step 5, so as to obtain the corrected data of slit 2; the error sources causing the above-mentioned inter-frame error in step 6 mainly include the error sources such as slit distance deviation caused by assembly accuracy; the assembly accuracy and other reasons may lead to the problem of non-integer time interval or lateral spectral deviation of multi-slit hyperspectral data, thereby causing inter-frame error; in this embodiment, when the inter-frame interpolation correction method is used to perform inter-frame error correction on the spectral position error-corrected data of slit 2 obtained in step 5, in step 6, the calculation method of the above-mentioned inter-frame interpolation correction method is to use formula [3] to calculate the linear interpolation between two adjacent frames, and use the linear interpolation as the corrected data of the corresponding slit; the above-mentioned formula [3] is:
[0074] D f ′=α″D f,m +(1-α″)D f,m+1 [3];
[0075] In formula [3]: D f ′ represents the correction completion data of slit f, the above f represents the slit number of the remaining slits, the slit number defined as the reference slit in step 4 is set to 1, then the above f takes 2, 3, ..., R, and the above R is the total number of slits in the multi-slit dispersion hyperspectral imaging system; α″ represents the inter-frame error correction coefficient of slit f; D f,m , D f,m+1 They respectively represent the mth frame and the m+1th frame data of the spectral position error corrected data of slit f among the spectral position error corrected data of the remaining slits obtained in step 5, where m is the frame number; the values of α″ and m are determined by the measured inter-frame error of slit f relative to the reference slit; in this embodiment, α″ and m corresponding to slit 2 determined according to the measured inter-frame error of slit 2 relative to slit 1 are 0.978 and 1 respectively, and the corrected data of slit 2 obtained is D2′;
[0076] Step 7: The corrected data D2′ of slit 2 obtained in step 6 is combined and reconstructed with the reference slit hyperspectral data D1 defined in step 4 to obtain the double-slit hyperspectral reconstructed data, and the reconstruction process is completed; the above step 7 is specifically as follows:
[0077] Step 7.1: Setting a difference threshold μ; the difference threshold μ set in this embodiment is 300;
[0078] Step 7.2: Based on the calibration data of the remaining slits obtained in step 6, the reference slit hyperspectral data defined in step 4, and the difference threshold μ set in step 7.1, the combined switch matrix P of the remaining slits except the reference slit is calculated.f , f is set to 2, 3, ..., R; in this embodiment, the combined switch matrix P2 of slit 2 is set according to the correction completion data D2' of slit 2 obtained in step 6, the reference slit hyperspectral data D1 defined in step 4 and the difference threshold μ set in step 7.1; the above step 7.2 is specifically as follows:
[0079] Step 7.2.1: Combine the combined switch matrix P of the remaining slits except the reference slit f , f takes 2, 3, ..., R, and the matrix size is set to be the same as the matrix size of the reference slit hyperspectral data defined in step 4; the matrix size of the combined switch matrix P2 of slit 2 set in this embodiment is 1024×80;
[0080] Step 7.2.2: Difference the corrected data of the remaining slits obtained in step 6 with the corresponding data in the reference slit hyperspectral data defined in step 4, and then compare the absolute value of each difference with the difference threshold μ set in step 7.1; if the absolute value of the difference is greater than the difference threshold μ set in step 7.1, the merged switch matrix P of the corresponding slit is f The corresponding position element in is set to 0; if the absolute value of the above difference is less than or equal to the difference threshold μ set in step 7.1, then the merged switch matrix P corresponding to the slit f The corresponding position element in is set to 1; based on this principle, the combined switch matrix P of the remaining slits except the reference slit is completed. f , f takes 2, 3, ..., R, and all the elements in R are set; the combined switch matrix P2 of the slot 2 set in this embodiment is a matrix in which the elements are composed of 0 and 1;
[0081] Step 7.3: According to the combined switch matrix P of the remaining slits except the reference slit set in step 7.2 f , f is 2, 3, ..., R, and the correction data of the remaining slits obtained in step 6 are combined and reconstructed with the reference slit hyperspectral data defined in step 4 using formula [4] to obtain the multi-slit hyperspectral reconstructed data and complete the reconstruction process; the above formula [4] is:
[0082] D″=(RD1-(D1-D′2)⊙P2-…(D1-D′ R )⊙P R ) / R [4];
[0083] In formula [4]: D″ represents the reconstructed data of multi-slit hyperspectral spectrum; D1 represents the reference slit hyperspectral data defined in step 4; D′2, ..., D′ Rrespectively represent the correction completed data of slit 2, ..., slit R obtained in step 6; P2, ..., P R They respectively represent the combined switch matrices of slits 2, ..., slit R set in step 7.2; ⊙ represents the Hadamard product of the two matrices; the specific calculation formula for the data D″ after double-slit hyperspectral reconstruction in this embodiment is: D″=(2D1-(D1-D′2)⊙P2) / 2.
[0084] The multi-slit hyperspectral data reconstruction processing method of the present invention is simple in operation, and can realize efficient and real-time reconstruction processing of multi-slit hyperspectral data. In addition, the multi-slit hyperspectral data reconstruction processing method of the present invention is used to reconstruct data, which also improves the accuracy and precision of the multi-slit hyperspectral reconstructed data. The accuracy of the multi-slit hyperspectral reconstructed data can reach within 3%.
Claims
1. A multi-slit hyperspectral data reconstruction and processing method, It is characterized in that The following steps are involved: Step 1: subtracting a dark current correction coefficient from the multi-slit array data acquired in the multi-slit dispersion hyperspectral imaging system to achieve dark current correction of the data and obtain dark current corrected data; the dark current correction coefficient is obtained by measurement; Step 2: multiplying the dark current corrected data obtained in step 1 by a relative radiation correction coefficient to achieve relative radiation correction of the data and obtain relative radiation corrected data; the relative radiation correction coefficient is obtained by measurement; Step 3: Use a one-dimensional interpolation method to perform bad pixel correction on the relative radiation corrected data obtained in step 2 to obtain bad pixel corrected data; Step 4: defining one of the slits in the multi-slit dispersion type hyperspectral imaging system as a reference slit, and defining the bad pixel corrected data of the reference slit in the bad pixel corrected data obtained in step 3 as reference slit hyperspectral data; then taking the reference slit hyperspectral data as a correction reference, using an intra-row interpolation method to perform lateral image shift error correction on the bad pixel corrected data of the remaining slits except the reference slit in the bad pixel corrected data obtained in step 3, to obtain lateral image shift error corrected data of the remaining slits; Step 5: Using the reference slit hyperspectral data defined in step 4 as the correction reference, the inter-row interpolation method is used to perform spectral position error correction on the lateral image shift error corrected data of the remaining slits obtained in step 4 to obtain spectral position error corrected data of the remaining slits; Step 6: Using the reference slit hyperspectral data defined in step 4 as the correction reference, the inter-frame interpolation correction method is used to perform inter-frame error correction on the spectral position error-corrected data of the remaining slits obtained in step 5 to obtain the corrected data of the remaining slits; Step 7: The calibrated data of the remaining slits obtained in step 6 are combined and reconstructed with the reference slit hyperspectral data defined in step 4 to obtain multi-slit hyperspectral reconstructed data, thus completing the reconstruction process.
2. The multi-slit hyperspectral data reconstruction processing method according to claim 1, Features: In step 3, a one-dimensional interpolation method is used, only the interpolation in the row direction is considered, and the maximum number of consecutive bad pixels is set to four. The bad pixel correction is performed on the relative radiation corrected data obtained in step 2 to obtain the bad pixel corrected data; specifically: 1) When there is a single bad pixel, the bad pixel correction result is 0.5A+0.5B; 2) When there are two consecutive bad pixels, the bad pixel correction results are 0.67A+0.33B and 0.33A+0.67B, or 0.75A+0.25B and 0.25A+0.75B from left to right; 3) When there are three consecutive bad pixels, the bad pixel correction results are 0.67A+0.33B, 0.5A+0.5B, and 0.33A+0.67B from left to right; 4) When there are four consecutive bad pixels, the bad pixel correction results are 0.2A+0.8B, 0.4A+0.6B, 0.6A+0.4B, and 0.8A+0.2B from left to right; A and B respectively represent the normal pixels adjacent to the left and right sides of the corresponding continuous bad pixels.
3. The multi-slit hyperspectral data reconstruction processing method according to claim 2, Features: In step 4, when the lateral image motion error is corrected for the bad pixel corrected data of each slit except the reference slit in the bad pixel corrected data obtained in step 3, the bad pixel corrected data of each slit is corrected by the line interpolation method in units of lines, and the pixel data S of the coordinate point (i, j) is output after correction. i,j The calculation is performed using formula [1], which is: S i,j =αC i,t +(1-α)C i,t+1 [1]; In formula [1]: S i,j represents the pixel data of the output coordinate point (i, j) after the lateral image motion error correction; α represents the lateral image motion error correction coefficient; C i,t , C i,t+1 They respectively represent the pixel data with row coordinates i and column coordinates t and the pixel data with row coordinates i and column coordinates t+1 in the corrected data of the bad pixels of the slit obtained in step 3; the values of α and t are determined by the measured lateral image shift error of the slit relative to the reference slit.
4. The multi-slit hyperspectral data reconstruction processing method according to claim 1, Features: The error sources causing the lateral image shift error in step 4 include optical system distortion error and bias angle residual correction error.
5. The multi-slit hyperspectral data reconstruction processing method according to claim 3, Features: In step 5, when the spectral position error correction is performed on the lateral image shift error corrected data of the remaining slits obtained in step 4, the lateral image shift error corrected data of each slit is corrected by the interline interpolation method in columns, and the pixel data S of the coordinate point (i′, j′) is output after correction. i ″ ,j′ The calculation is performed using formula [2], which is: S i ″ ,j′ =α′C k ′ ,j′ +(1-α′)C k ′ +1,j′ [2]; In formula [2]: S i ″ ,j′ represents the pixel data of the output coordinate point (i′, j′) after spectral position error correction; α′ represents the spectral position error correction coefficient; C k ' ,j′ , C k ' +1,j′ They respectively represent the pixel data with row coordinates k and column coordinates j′ and the pixel data with row coordinates k+1 and column coordinates j′ in the data after correction of the lateral image shift error of the slit obtained in step 4; the values of α′ and k are determined by the measured spectral position error of the slit relative to the reference slit.
6. The multi-slit hyperspectral data reconstruction processing method according to claim 1, Features: In step 5, the spectral position error refers to the spectral center wavelength deviation between the lateral image shift error corrected data of the remaining slits obtained in step 4 and the reference slit hyperspectral data defined in step 4.
7. The multi-slit hyperspectral data reconstruction processing method according to claim 5, Features: In step 6, the calculation method of the inter-frame interpolation correction method is to use formula [3] to calculate the linear interpolation between two adjacent frames, and use the linear interpolation as the correction completion data of the corresponding slit; the formula [3] is: D f ′=α″D f,m +(1-a″)D f,m+1 [3]; In formula [3]: D f ′ represents the correction completion data of slit f, and f represents the slit serial number of the remaining slits. The slit serial number defined as the reference slit in step 4 is set to 1, and f is 2, 3, ..., R, and R is the total number of slits in the multi-slit dispersion hyperspectral imaging system; α″ represents the inter-frame error correction coefficient of slit f; D f,m , D f,m+1 They respectively represent the mth frame and the m+1th frame data of the spectral position error corrected data of slit f among the spectral position error corrected data of the remaining slits obtained in step 5, where m is the frame number; the values of α″ and m are determined by the measured inter-frame error of slit f relative to the reference slit.
8. The multi-slit hyperspectral data reconstruction processing method according to claim 1, Features: The error source causing the inter-frame error in step 6 includes the slit distance deviation caused by assembly accuracy.
9. The multi-slit hyperspectral data reconstruction processing method according to claim 7, Features: The step 7 is specifically as follows: Step 7.1: Set the difference threshold μ; Step 7.2: Based on the calibration data of the remaining slits obtained in step 6, the reference slit hyperspectral data defined in step 4, and the difference threshold μ set in step 7.1, the combined switch matrix P of the remaining slits except the reference slit is calculated. f , f is set to 2, 3, ..., R; Step 7.3: According to the combined switch matrix P of the remaining slits except the reference slit set in step 7.2 f , f is 2, 3, ..., R, and the correction data of the remaining slits obtained in step 6 are combined and reconstructed with the reference slit hyperspectral data defined in step 4 using formula [4] to obtain the multi-slit hyperspectral reconstructed data and complete the reconstruction process; the formula [4] is: D″=(RD 1 -(D 1 -D′ 2 )⊙P 2 -……(D 1 -D′ R )⊙P R ) / R [4]; In formula [4]: D″ represents the data after multi-slit hyperspectral reconstruction; D 1 represents the reference slit hyperspectral data defined in step 4; D′ 2 , ..., D′ R respectively represent the calibration completed data of slit 2, ..., slit R obtained in step 6; P 2 ,……,P R They respectively represent the combined switch matrices of slits 2, ..., slit R set in step 7.2; ⊙ represents the Hadamard product of the two matrices.
10. The multi-slit hyperspectral data reconstruction processing method according to claim 9, Features: The step 7.2 is specifically as follows: Step 7.2.1: Combine the combined switch matrix P of the remaining slits except the reference slit f , f takes the values of 2, 3, …, R, and the matrix size is set to be the same as the matrix size of the benchmark slit hyperspectral data defined in step 4; Step 7.2.2: Difference the corrected data of the remaining slits obtained in step 6 with the corresponding data in the reference slit hyperspectral data defined in step 4, and then compare the absolute value of each difference with the difference threshold μ set in step 7.1; if the absolute value of the difference is greater than the difference threshold μ set in step 7.1, the merged switch matrix P of the corresponding slit is f The corresponding position element in is set to 0; if the absolute value of the difference is less than or equal to the difference threshold μ set in step 7.1, the merged switch matrix P corresponding to the slit f The corresponding position element in is set to 1; based on this principle, the combined switch matrix P of the remaining slits except the reference slit is completed. f , f takes the setting of all elements in 2, 3, ..., R.
Citation Information
Patent Citations
Method for correcting stray light of hyperspectral radiance instrument and measuring device
CN114739507A
Apparatus and method for optimizing data capture and data correction for spectroscopic analysis
US20140268136A1
Compact and athermal VNIR / SWIR spectrometer
US20190017868A1
Multi-slit configured hyperspectral imager
US20230349759A1
Dual-optical-path spectrometer, color measurement apparatus, and calibration method
WO2023193287A1
Cited By
Super-spatial resolution reconstruction method for multi-slit hyperspectral image data
CN119715404A
Image motion detection and correction method for multi-slit hyperspectral image data
CN119715405A
