Dimensionality reduction method for hyperspectral image sequences based on global and local spectral weighting
Through the global and local spectral weighted fusion method, the problem of target and background distinction and computational complexity in hyperspectral image dimensionality reduction is solved, and efficient image dimensionality reduction and feature extraction effects are achieved.
Patent Information
- Application Number
- CN202211235788.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-10
- Publication Date
- 2024-09-24
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing hyperspectral image dimensionality reduction methods are difficult to distinguish between target and background information in the field of single target tracking, and the band selection algorithm is complex and time-consuming to calculate, cannot effectively suppress the background, and has limited effect on retaining useful information.
A hyperspectral image sequence dimensionality reduction method based on global and local spectral weighting is used to determine the spectral intensity characteristics and quantitative characteristics through grayscale normalization, spectral average calculation, grayscale range labels and indexes, and combined with global and local spectral weighted fusion, The result is a final spectrum that expresses the target information, which is used in a naive correlation operation to enhance the target signal and suppress the background.
Effectively express target information, enhance target signals, suppress backgrounds, simplify the calculation process, avoid the complexity of band selection, and improve the effect of image feature extraction.
Smart Images

Figure CN115457286B
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of image processing, and in particular relates to a hyperspectral image sequence dimensionality reduction method based on global and local spectral weighting. Background Art
[0002] Hyperspectral images have the characteristics of large data volume, large number of bands, and strong correlation between bands, which makes many problems appear in the process of identification and classification. Dimensionality reduction can both reduce data dimension and retain useful information. Therefore, it is very necessary to perform dimensionality reduction before processing hyperspectral images.
[0003] Common hyperspectral image dimensionality reduction methods can be roughly divided into two categories: feature extraction and band selection.
[0004] Feature extraction is a dimensionality reduction method based on transformation. The most typical algorithm is principal component analysis, which is based on orthogonal linear transformation of information volume. A set of variables is projected into a new coordinate space by linear projection. In the new coordinate space, the transformed variables are no longer correlated. This set of uncorrelated variables is the principal component. The principal components obtained are then arranged in descending order according to the signal-to-noise ratio. The first principal component has the most information, and the information stored in the remaining principal components decreases with the increase of the sequence number. In this way, only a few principal components are used to represent a large amount of original data. Most of the image information obtained by principal component analysis transformation is stored in a few principal components with small sequence numbers, which not only reduces the data dimension, but also keeps the information of the original image as much as possible. However, in the field of single target tracking, most of the useful information is on the tracked target, and principal component analysis only mechanically retains the useful information of the original image, and cannot distinguish whether the useful information is on the target or the background, and the suppression effect on the background is limited.
[0005] Band selection is a non-transformation dimensionality reduction method. A typical method is the optimal band selection algorithm based on information entropy. Joint entropy is generally used to represent the information content of an image. This method first counts the joint entropy of all band subsets in order, and then selects the bands with relatively large joint entropy. Although the principle of this algorithm is simple and easy to understand, for hyperspectral images with dozens or even hundreds of bands, the number of band subsets will be very large. It is very time-consuming to select all band subsets, and the calculation of the joint entropy itself is very complicated. Summary of the invention
[0006] In view of this, the main purpose of the present invention is to provide a hyperspectral image sequence dimensionality reduction method based on global and local spectral weighting.
[0007] To achieve the above object, the technical solution of the present invention is achieved as follows:
[0008] The embodiment of the present invention provides a method for reducing the dimension of a hyperspectral image sequence based on global and local spectral weighting. The method is:
[0009] Load the t-th frame of the hyperspectral image in the hyperspectral image sequence, perform grayscale normalization on the t-th frame of the hyperspectral image to obtain the normalized t-th frame of the hyperspectral image, and determine the target area T of the normalized t-th frame of the hyperspectral image. t , where t represents the serial number of the hyperspectral image frame in the hyperspectral image sequence, t is an integer greater than or equal to 1, T t The grayscale range of each pixel is a left-closed and right-closed interval from 0 to 1;
[0010] Determine the target area T of the normalized hyperspectral image frame t t The i-th band image T i t The spectral average of
[0011] According to the T t The i-th band image T i t The spectral average value determines the target area T of the t-th frame hyperspectral image after normalization t The global spectrum of
[0012] Determine the target area T of the normalized hyperspectral image frame t t The grayscale range label to which each pixel grayscale value belongs in each band image;
[0013] According to the T t The grayscale range label and grayscale range index b of each pixel grayscale value on each band image determine T t The spectral intensity characteristics and quantity characteristics of each pixel in each band image;
[0014] According to the T t The spectral intensity characteristics of each pixel in each band image determine T t The total spectral intensity I(i) of the grayscale range corresponding to the grayscale range index b on each band image b ;
[0015] According to the T t The quantitative characteristics of each pixel in each band image determine T t The total number of pixels N(i) belonging to the grayscale range corresponding to the grayscale range index b in each band image b ;
[0016] According to the T tThe total number of pixels N(i) belonging to the grayscale range corresponding to the grayscale range index b in each band image b Sure UpN(i) b The index B(i) of the grayscale range where the maximum value is located;
[0017] According to the UpN(i) b The index B(i) of the grayscale range where the maximum value is located is determined The local value of the spectrum;
[0018] According to the The local value of the spectrum determines T t The local spectrum of
[0019] The T t The global spectrum and the local spectrum are weighted and fused into the final spectrum;
[0020] Determine a hyperspectral image after dimensionality reduction according to the final spectrum;
[0021] All the hyperspectral image frames in the hyperspectral image sequence are loaded in sequence to complete the dimensionality reduction of the hyperspectral image sequence.
[0022] In the above scheme, the target area T of the normalized hyperspectral image frame t is determined as t The i-th band image The spectral average value is: T is determined according to the following formula t The i-th band image The spectral average for
[0023]
[0024] Among them, H T Indicates T t The number of rows, W T Indicates T t The number of columns, ∑(·) represents the summation operation, and i represents T t The serial number of the i-th band image, i∈{1,...,B}, B represents T t The number of bands, H T ×W T express The total number of pixels in, j represents The number of the jth pixel in the total pixels in, j∈{1,...,H T ×W T}, express The gray value of the jth pixel in .
[0025] In the above scheme, the image according to the i-th band The spectral average value determines the target area T of the t-th frame hyperspectral image after normalization t The global spectrum of T is determined by the following formula: t The global spectrum C g for
[0026]
[0027] Among them, C gi Represents C g The spectral average value in the i-th band, {·} represents the set operation, that is, C g is the collection of spectral averages of B bands.
[0028] In the above scheme, the target area T of the normalized hyperspectral image frame t is determined as t The grayscale range number to which each pixel grayscale value belongs on each band image in the image is: Set the total number of grayscale ranges to Y, and determine T according to the following formula t The grayscale range of each pixel grayscale value in each band image belongs to Q(i,j)
[0029]
[0030] Among them, Q(i,j)∈{0,…,Y-1}, floor(·) represents the rounding down operation, and mod(·) represents the remainder operation.
[0031] In the above scheme, according to the T t The grayscale range label and grayscale range index b of each pixel grayscale value on each band image determine T t The spectral intensity characteristics and quantity characteristics of each pixel in each band image are realized by the following steps:
[0032] Step (101) sets the index of the grayscale range to b;
[0033] Step (102) determines whether b is equal to Q(i,j). If so, the corresponding Q(i,j) is replaced. Divide into the grayscale range corresponding to the grayscale range index b, and count 1 pixel in this range, while the rest of the grayscale range remains unchanged;
[0034] Step (103) is determined according to the following formula The spectral intensity characteristic I(i,j) b for
[0035]
[0036] Where b∈{0,…,Y-1};
[0037] Step (104) is determined according to the following formula The number of features N(i,j) b for
[0038]
[0039] In the above scheme, according to the T t The spectral intensity characteristics of each pixel in each band image determine T t The total spectral intensity of the grayscale range corresponding to the grayscale range index b on each band image in is: T is determined according to the following formula t The total spectral intensity I(i) of the grayscale range corresponding to the grayscale range index b on each band image b for
[0040]
[0041] In the above scheme, according to the T t The quantitative characteristics of each pixel in each band image determine T t The total number of pixels in the grayscale range corresponding to the grayscale range index b on each band image in is: T is determined according to the following formula t The total number of pixels N(i) belonging to the grayscale range corresponding to the grayscale range index b in each band image b for
[0042]
[0043] In the above scheme, according to the T t The total number of pixels N(i) belonging to the grayscale range corresponding to the grayscale range index b in each band image b Sure UpN(i) b The index B(i) of the grayscale range where the maximum value is located is determined by the following formula: UpN(i) b The index B(i) of the grayscale range where the maximum value is located is
[0044]
[0045] Among them, max(·) represents the maximum operation.
[0046] In the above scheme, according to UpN(i) b The index B(i) of the grayscale range where the maximum value is located is determined The local value of the spectrum is:
[0047] Will N(i) b The maximum value is recorded as N(i) B(i) , change N(i) B(i) The total spectral intensity of the grayscale range is recorded as I(i) B(i) , determined according to the following formula The local value of the spectrum for
[0048]
[0049] In the above scheme, according to the The local value of the spectrum determines T t The local spectrum of T is determined according to the following formula: t The local spectrum C l for
[0050]
[0051] Among them, C li Represents C l The local value of the spectrum in the i-th band.
[0052] Compared with the prior art, the present invention weightedly fuses the global spectrum and the local spectrum to obtain the final spectrum, and the final spectrum obtained can effectively express the information of the target itself. The final spectrum is used to perform a naive correlation operation with the spectrum of each pixel point in the search area of the next frame. If the result of the naive correlation operation is larger, it indicates that the two spectral curves are more similar, that is, the pixel represented by the spectrum in the search area is more likely to be the target pixel; otherwise, it indicates that the two spectra are unrelated, and the pixel represented by the spectrum is very likely to be a background pixel, which can effectively enhance the target and suppress the background at the same time, facilitating the subsequent feature extraction of the image. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] Figure 1 is a flow chart of the present invention;
[0054] Figure 2 This is the fifth frame of the hyperspectral image in the hyperspectral image sequence of the ball input by the present invention.
[0055] Figure 3 The target area of the fifth frame of the hyperspectral image in the hyperspectral image sequence of the ball input by the present invention;
[0056] Figure 4 The search area of the sixth frame of the hyperspectral image in the hyperspectral image sequence of the ball input by the present invention;
[0057] Figure 5 is the global spectrum of the target area of the fifth frame of the hyperspectral image in the present invention;
[0058] Figure 6 is the local spectrum of the target area of the fifth frame of the hyperspectral image in the present invention;
[0059] Figure 7 is the final spectrum of the target area of the fifth frame of the hyperspectral image in the present invention;
[0060] Figure 8 It is the dimension reduction result of the search area of the sixth frame of the hyperspectral image in the small ball hyperspectral image sequence input by the present invention. DETAILED DESCRIPTION
[0061] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0062] The embodiment of the present invention provides a method for reducing the dimension of a hyperspectral image sequence based on global and local spectral weighting. Figure 1 As shown, the method is:
[0063] Step 1: Load the t-th frame of the hyperspectral image in the ball hyperspectral image sequence, and perform grayscale normalization on the t-th frame of the hyperspectral image to obtain the normalized t-th frame of the hyperspectral image, and determine the target area T of the normalized t-th frame of the hyperspectral image. t ;
[0064] Where t represents the serial number of the hyperspectral image frame in the hyperspectral image sequence, t is an integer greater than or equal to 1, T t The grayscale range of each pixel is a left-closed and right-closed interval from 0 to 1;
[0065] Specifically, in the present invention, the small ball hyperspectral image sequence has a total of 625 frames, the hyperspectral image resolution is 471×207 pixels, and the loaded image is the fifth frame of the hyperspectral image in the small ball hyperspectral image sequence. Figure 2 This is the fifth frame of hyperspectral image in the hyperspectral image sequence of the ball in the embodiment of the present invention. Figure 3 In the embodiment of the present invention, the target area of the fifth frame of the hyperspectral image in the hyperspectral image sequence of the ball is Figure 3 It can be seen that the ball occupies most of the target area. In the entire sequence, the ball moves randomly on the ground. The fingers that move the ball block the ball during movement, and the ball also deforms when it bounces on the ground.
[0066] Step 2: Calculate T t The i-th band image The spectral average for
[0067]
[0068] Among them, H T Indicates T t The number of rows, W T Indicates T t The number of columns, ∑(·) represents the summation operation, and i represents T t The serial number of the i-th band image, i∈{1,...,B}, B represents T t The number of bands, H T ×W T express The total number of pixels in, j represents The number of the jth pixel in the total pixels in, j∈{1,...,H T ×W T}, express The gray value of the j-th pixel in;
[0069] Specifically, in the present invention, B is 16, Contains 399 pixels in total, H T is 19, W T is 21.
[0070] Step 3: Calculate T t The global spectrum C g for
[0071]
[0072] Among them, C gi Represents C g The spectral average value in the i-th band;
[0073] Specifically, in the present invention, C g The spectral average values in the 1st to 16th bands are 0.1179, 0.1154, 0.0969, 0.1028, 0.1056, 0.1096, 0.1272, 0.1664, 0.2204, 0.3116, 0.3271, 0.3750, 0.3856, 0.3944, 0.4342, and 0.5465 respectively. Figure 5 This is the global spectrum of the target area of the 5th frame image in the ball hyperspectral image sequence in the embodiment of the present invention, which is a line graph drawn by 16 spectral average values in the order of bands.
[0074] Step 4: Set the total number of grayscale ranges to Y, the grayscale range index to b, and calculate T t The grayscale range to which each pixel grayscale value belongs in each band image is labeled Q(i,j)
[0075]
[0076] Where b∈{0,…,Y-1}, Q(i,j)∈{0,…,Y-1}, floor(·) represents the rounding down operation, and mod(·) represents the remainder operation;
[0077] Specifically, in the present invention, Y takes 10, which means that the left-closed and right-closed interval from 0 to 1 is divided into 10 parts on average; for example, when b takes 0, it corresponds to the first grayscale range, which is the left-closed and right-closed interval from 0 to 0.1; it is now known that the normalized grayscale value of the pixel in the 3rd row and 21st column of the target area of the 5th frame image in the small ball hyperspectral image sequence on the 14th band image (that is, the pixel corresponding to when j is equal to 63) is 0.28, and after multiplying by 10, the value becomes 2.8, and then the value is rounded down to 2, and finally divided by 10 and taking the remainder, the grayscale range label is 2.
[0078] Step 5: According to the T t The grayscale range label and grayscale range index b of each pixel grayscale value on each band image determine T t The spectral intensity characteristics and quantity characteristics of each pixel in each band image;
[0079] Specifically, set the index of the grayscale range to b, and determine whether b is equal to Q(i,j). If they are equal, set the corresponding value of Q(i,j) to Divide it into the grayscale range corresponding to the grayscale range index b, and count 1 pixel in this grayscale range, while the rest of the grayscale range remains unchanged. Calculate The spectral intensity characteristic I(i,j) b for
[0080]
[0081] calculate The number of features N(i,j) b for
[0082]
[0083] Specifically, for the 14th band image of the target area of the 5th frame image in the ball hyperspectral image sequence, it is known that the normalized grayscale value of the pixel in the 3rd row and 21st column on the band image (i.e., the pixel corresponding to when j is equal to 63) is 0.28, and the grayscale range number is 2. When b is equal to 2, the number 2 is used to traverse the grayscale range number of each pixel in the target area of the 14th band image of the target area. When the number 2 traverses the grayscale range number of the pixel in the 3rd row and 21st column, the pixel is divided into the 3rd grayscale range, and the grayscale value of the pixel 0.28 is used as its spectral intensity feature, and the quantity feature of the pixel is set to 1; that is, I(14,57)2=0.28, N(14,57)2=1. On the contrary, when the number 2 traverses to other pixels whose grayscale range number is not 2, the spectral intensity feature and the quantity feature of the pixel whose grayscale range number is not 2 are both set to 0.
[0084] Step 6: According to the T t The grayscale range label and grayscale range index b of each pixel grayscale value on each band image determine T t The total spectral intensity I(i) of the grayscale range corresponding to the grayscale range index b on each band image b for
[0085]
[0086] Specifically, for the 14th band image of the target area of the 5th frame image in the ball hyperspectral image sequence, when b is equal to 2, the spectral intensity features corresponding to all pixels with grayscale ranges labeled 2 in the target area are accumulated to obtain the total spectral intensity of the 3rd grayscale range.
[0087] In the present invention, I(14)0 is 0.5914, I(14)1 is 1.4357, I(14)2 is 2.0803, I(14)3 is 1.3625, I(14)4 is 151.0838, I(14)5 is 7.2831, I(14)6 is 10.7282, I(14)7 is 9.6241, I(14)8 is 8.4683, and I(14)9 is 5.7832.
[0088] Step 7: According to the T t The quantitative characteristics of each pixel in each band image determine T t The total number of pixels N(i) belonging to the grayscale range corresponding to the grayscale range index b in each band image b ;
[0089] Specifically, T is calculated according to the following formula: t The total number of pixels N(i) belonging to the grayscale range corresponding to the grayscale range index b in each band image bfor
[0090]
[0091] For the 14th band image of the target area of the 5th frame image in the ball hyperspectral image sequence, when b is equal to 2, the number features corresponding to the pixels in all grayscale ranges labeled 2 in the target area are accumulated to obtain the total number of pixels in the 3rd grayscale range. In the present invention, N(14)0 is 7, N(14)1 is 11, N(14)2 is 8, N(14)3 is 4, N(14)4 is 311, N(14)5 is 13, N(14)6 is 16, N(14)7 is 13, N(14)8 is 10, and N(14)9 is 6.
[0092] Step 8: According to the T t The total number of pixels N(i) belonging to the grayscale range corresponding to the grayscale range index b in each band image b Sure UpN(i) b The index B(i) of the grayscale range where the maximum value is located;
[0093] Specifically, since the target occupies T t Most of the space, so the target pixels are concentrated in such a way that N(i) b The largest grayscale range.
[0094] Therefore, determine UpN(i) b The index B(i) of the grayscale range where the maximum value is located, N(i) b The maximum value of N(i) is defined as B(i) , the calculation formula of B(i) is
[0095]
[0096] Among them, max(·) represents the maximum operation;
[0097] For the 14th band image of the target area of the 5th frame image in the ball hyperspectral image sequence, the 5th grayscale range contains 311 pixels, which is the grayscale range with the largest number of pixels among all grayscale ranges. Therefore, the index number 4 of the 5th grayscale range is assigned to B(i).
[0098] Step 9: According to the UpN(i) b The index B(i) of the grayscale range where the maximum value is located is determined The local value of the spectrum;
[0099] Specifically, N(i) B(i) The total spectral intensity of the grayscale range is recorded as I(i)B(i) ,calculate The local value of the spectrum for
[0100]
[0101] For the 14th band image of the target area in the 5th frame image in the ball hyperspectral image sequence, the total spectral intensity of the 5th grayscale range 151.0838 is divided by the total number of pixels in the 5th grayscale range 311 to obtain the spectral local value of the target area in the 14th band image 0.4858.
[0102] Step 10: According to the The local value of the spectrum determines T t The local spectrum of
[0103] Specifically, T is determined according to the following formula: t The local spectrum C l for
[0104]
[0105] Among them, C li Represents C l The local value of the spectrum in the i-th band.
[0106] In the present invention, C l The local spectral values in the 1st to 16th bands are 0.0851, 0.0839, 0.0833, 0.0907, 0.0767, 0.1121, 0.1264, 0.1270, 0.1654, 0.1814, 0.2672, 0.5562, 0.4776, 0.4858, 0.5704, and 0.7331 respectively. Figure 6 This is a local spectrum of the target area in the fifth frame of the ball hyperspectral image sequence in the embodiment of the present invention, which is a line graph drawn by 16 local spectral values in the order of wavebands.
[0107] Step 11: t The global spectrum and the local spectrum are weighted and fused into the final spectrum;
[0108] Specifically, using C g With C l The final spectrum C is weighted fusion f for
[0109] C f =μ r ×C g +(1-μ r )×C l
[0110] Among them, μ r is a weight parameter; since the local spectrum can better express the spectral information of the target than the global spectrum, we give the local spectrum a greater weight. r Take 0.25;
[0111] In the present invention, C f The final values in bands 1 to 16 are 0.0933, 0.0918, 0.0867, 0.0937, 0.0839, 0.1114, 0.1266, 0.1369, 0.1792, 0.2140, 0.2800, 0.5109, 0.4546, 0.4630, 0.5364, and 0.6864, respectively. Figure 7 is the final spectrum of the target area of the fifth frame image in the ball hyperspectral image sequence in the embodiment of the present invention. Figure 7 It can be seen that since we give greater weight to the local spectrum, the shape of the final spectrum is more biased towards the local spectrum.
[0112] Step 12: determining a hyperspectral image after dimensionality reduction according to the final spectrum;
[0113] Specifically, the hyperspectral image X after dimensionality reduction;
[0114]
[0115] Among them, S t+1 represents the search area of the (t+1)th frame of hyperspectral image after normalization, Represents a naive correlation operation;
[0116] The specific calculation method of the naive correlation in the present invention is to convert C f The value in each band is multiplied and added with the value of the spectral curve of each pixel in the search area of the t+1th frame of the hyperspectral image in the corresponding band, and the result is the pixel value after dimensionality reduction. Figure 4 is the search area of the sixth frame image in the ball hyperspectral image sequence in the embodiment of the present invention; Figure 8 is the dimensionality reduction result of the search area of the sixth frame image in the ball hyperspectral image sequence in the embodiment of the present invention; Figure 8 It can be seen that using the result of naive correlation as the grayscale value of the pixel after dimensionality reduction will produce a visual effect where the closer to the target, the brighter it is, and the farther away from the target, the darker it is. Therefore, this dimensionality reduction method does not retain the useful information of the target and the background at the same time, but suppresses the background while effectively highlighting the target, which facilitates the subsequent feature extraction of the image.
[0117] Step 13: load all the hyperspectral image frames in the hyperspectral image sequence in sequence to complete the dimensionality reduction of the hyperspectral image sequence.
[0118] Specifically, each frame of the 635-frame ball hyperspectral image sequence is loaded in sequence to complete the dimensionality reduction of the entire sequence.
[0119] The present invention does not have complicated matrix operations and does not require high computer performance. In addition, since the present invention does not belong to the dimensionality reduction method of band selection, it also fundamentally avoids the possibility of selecting bands with greater similarity.
[0120] The present invention performs weighted fusion of the global spectrum and the local spectrum to obtain the final spectrum, and the obtained final spectrum can effectively express the information of the target itself. The final spectrum is used to perform a naive correlation operation with the spectrum of each pixel point in the search area of the next frame. If the result obtained by the naive correlation operation is larger, it indicates that the two spectral curves are more similar, that is, the pixel represented by the spectrum in the search area is more likely to be the target pixel; otherwise, it indicates that the two spectra are unrelated, and the pixel represented by the spectrum is very likely to be the background pixel, which can effectively enhance the target and suppress the background at the same time, facilitating the subsequent feature extraction of the image.
[0121] The result of the naive correlation is used as the grayscale value of the pixel after dimensionality reduction, which will produce a visual effect that the closer to the target, the brighter, and the farther away from the target, the darker. Therefore, the present invention overcomes the defects of the prior art that only mechanically retains the useful information of the original image, cannot distinguish whether the useful information is on the target or the background, and has a limited effect on suppressing the background. The present invention has the advantages of selectively retaining the target information, while the background information is suppressed to a certain extent, which facilitates the subsequent feature extraction of the image.
[0122] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention.
Claims
1. A method for dimensionality reduction of hyperspectral image sequences based on global and local spectral weighting, characterized in that: The method is: Load the t-th frame of the hyperspectral image in the hyperspectral image sequence, perform grayscale normalization on the t-th frame of the hyperspectral image to obtain the normalized t-th frame of the hyperspectral image, and determine the target area T of the normalized t-th frame of the hyperspectral image. t , where t represents the serial number of the hyperspectral image frame in the hyperspectral image sequence, t is an integer greater than or equal to 1, T t The grayscale range of each pixel is a left-closed and right-closed interval from 0 to 1; Determine the target area T of the normalized hyperspectral image frame t t The i-th band image T i t The spectral average of According to the T t The i-th band image T i t The spectral average value determines the target area T of the t-th frame hyperspectral image after normalization t The global spectrum of Determine the target area T of the normalized hyperspectral image frame t t The grayscale range label to which each pixel grayscale value belongs in each band image; According to the T t The grayscale range label and grayscale range index b of each pixel grayscale value on each band image determine T t The spectral intensity characteristics and quantity characteristics of each pixel in each band image; According to the T t The spectral intensity characteristics of each pixel in each band image determine T t The total spectral intensity I(i) of the grayscale range corresponding to the grayscale range index b on each band image b ; According to the T t The quantitative characteristics of each pixel in each band image determine T t The total number of pixels N(i) belonging to the grayscale range corresponding to the grayscale range index b in each band image b ; According to the T t The total number of pixels N(i) belonging to the grayscale range corresponding to the grayscale range index b in each band image b Determine T i t UpN(i) b The index B(i) of the grayscale range where the maximum value is located; According to the T i t UpN(i) b The index B(i) of the grayscale range where the maximum value is located determines T i t The local value of the spectrum; According to the T i t The local value of the spectrum determines T t The local spectrum of The T t The global spectrum and the local spectrum are weighted and fused into the final spectrum; Determine a hyperspectral image after dimensionality reduction according to the final spectrum; All the hyperspectral image frames in the hyperspectral image sequence are loaded in sequence to complete the dimensionality reduction of the hyperspectral image sequence.
2. The method for dimensionality reduction of hyperspectral image sequences based on global and local spectral weighting according to claim 1, characterized in that: Determining the target area T of the normalized hyperspectral image frame t t The i-th band image T i t The spectral average value is: T is determined according to the following formula t The i-th band image T i t The spectral average M(T i t )for Among them, H T Indicates T t The number of rows, W T Indicates T t The number of columns, ∑(·) represents the summation operation, and i represents T t The serial number of the i-th band image, i∈{1,...,B}, B represents T t The number of bands, H T ×W T Indicates T i t The total number of pixels in T i t The number of the jth pixel in the total pixels in, j∈{1,...,H T ×W T }, T ij t Indicates T i t The gray value of the jth pixel in .
3. The method for dimensionality reduction of hyperspectral image sequences based on global and local spectral weighting according to claim 1 or 2, characterized in that: The i-th band image T i t The spectral average value determines the target area T of the t-th frame hyperspectral image after normalization t The global spectrum of T is as follows: t The global spectrum C g for C g ={C gi |C gi =M(T i t )} i∈{1,....,B} Among them, C gi Represents C g The spectral average value in the i-th band, {·} represents the set operation, that is, C g is the collection of spectral averages of B bands.
4. The method for dimensionality reduction of hyperspectral image sequences based on global and local spectral weighting according to claim 3, characterized in that: Determining the target area T of the normalized hyperspectral image frame t t The grayscale range number to which each pixel grayscale value belongs on each band image in the image is: Set the total number of grayscale ranges to Y, and determine T according to the following formula t The grayscale range to which the grayscale value of each pixel in each band image belongs is labeled Q(i,j) Among them, Q(i,j)∈{0,…,Y-1}, floor(·) represents the rounding down operation, and mod(·) represents the remainder operation.
5. The method for dimensionality reduction of hyperspectral image sequences based on global and local spectral weighting according to claim 4, characterized in that: According to the T t The grayscale range label and grayscale range index b of each pixel grayscale value on each band image determine T t The spectral intensity characteristics and quantity characteristics of each pixel in each band image are realized by the following steps: Step (101) sets the index of the grayscale range to b; Step (102) determines whether b is equal to Q(i,j). If so, the corresponding Q(i,j) is replaced. Divide into the grayscale range corresponding to the grayscale range index b, and count 1 pixel in this range, while the rest of the grayscale range remains unchanged; Step (103) is determined according to the following formula The spectral intensity characteristic I(i,j) b for Where b∈{0,…,Y-1}; Step (104) is determined according to the following formula The number of features N(i,j) b for 6. The method for dimensionality reduction of hyperspectral image sequences based on global and local spectral weighting according to claim 5, characterized in that: According to the T t The spectral intensity characteristics of each pixel in each band image determine T t The total spectral intensity of the grayscale range corresponding to the grayscale range index b on each band image in is: T is determined according to the following formula t The total spectral intensity I(i) of the grayscale range corresponding to the grayscale range index b on each band image b for 7. The method for dimensionality reduction of hyperspectral image sequences based on global and local spectral weighting according to claim 6, characterized in that: According to the T t The quantitative characteristics of each pixel in each band image determine T t The total number of pixels in the grayscale range corresponding to the grayscale range index b on each band image in is: T is determined according to the following formula t The total number of pixels N(i) belonging to the grayscale range corresponding to the grayscale range index b in each band image b for 8. The method for dimensionality reduction of hyperspectral image sequences based on global and local spectral weighting according to claim 7, characterized in that: According to the T t The total number of pixels N(i) belonging to the grayscale range corresponding to the grayscale range index b in each band image b Determine T i t UpN(i) b The index B(i) of the grayscale range where the maximum value is located is: Determine T according to the following formula i t UpN(i) b The index B(i) of the grayscale range where the maximum value is located is Among them, max(·) represents the maximum operation.
9. The method for dimensionality reduction of hyperspectral image sequences based on global and local spectral weighting according to claim 8, characterized in that: According to the T i t UpN(i) b The index B(i) of the grayscale range where the maximum value is located determines T i t The local value of the spectrum is: Will N(i) b The maximum value is recorded as N(i) B(i) , change N(i) B(i) The total spectral intensity in the grayscale range is recorded as I(i) B(i) , determine T according to the following formula i t The local value of the spectrum L(T i t )for 10. The method for reducing the dimension of hyperspectral image sequences based on global and local spectral weighting according to claim 9, characterized in that: According to the T i t The local value of the spectrum determines T t The local spectrum of T is determined according to the following formula: t The local spectrum C l for C l ={C li |C li =L(T i t )} i∈{1,...,B} Among them, C li Represents C l The local value of the spectrum in the i-th band.
