Hyperspectral target tracking method based on spatial spectral similarity dimensionality reduction
Through the method of dimensionality reduction based on spatial spectral similarity, combined with DenseNet and 3DGabor filter, the accuracy and stability of hyperspectral target tracking are improved, and the problems of tracking drift and over-fitting in the existing technology are solved.
Patent Information
- Application Number
- CN202310585827.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-23
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2043-05-23
AI Technical Summary
Existing hyperspectral video target tracking algorithms are prone to drift in similar colors or complex backgrounds, and existing twin network hyperspectral video target tracking algorithms cannot effectively extract the spectral information of the target, resulting in tracking failure and easy overfitting.
A dimensionality reduction method based on spatial spectral similarity is used to reduce the dimensionality of hyperspectral images to single-band grayscale images, retain spectral information and spatial domain information, use DenseNet to extract depth features, extract texture features through 3DGabor filters, and use variance Adaptive fusion combines discriminant correlation filters for target positioning to reduce error accumulation.
It improves the accuracy and stability of hyperspectral target tracking, reduces tracking errors, enhances tracking capabilities when the target is similar to the background, and avoids overfitting.
Smart Images

Figure CN116523967B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of image processing, and in particular relates to a hyperspectral target tracking method based on spatial spectral similarity dimensionality reduction. Background Art
[0002] Currently in the field of computer vision, the use of hyperspectral video tracking is still an emerging field. The problems of target tracking under visible light conditions in hyperspectral video tracking are exactly one of the problems that hyperspectral imaging technology can solve. In hyperspectral imaging, spectral information of different wavelengths can provide richer target feature information, which is easier to distinguish between targets and backgrounds than visible light, thereby improving the accuracy and stability of target tracking.
[0003] Hyperspectral imaging technology is an imaging technology that combines the spectral information of an object with its spatial information. It captures the spectral characteristics of an object by using a series of sensors in different bands. With the development of hyperspectral sensors, target tracking using hyperspectral video has gradually attracted people's attention.
[0004] There are currently two mainstream tracking frameworks, one is based on the correlation filtering framework, and the other is based on the deep learning framework of the twin network.
[0005] The typical target tracking algorithm based on the filter is the kernel correlation filter tracking algorithm, whose core idea is to determine the best tracking position by calculating the correlation between the target template and the candidate area; the kernel correlation filter uses Fourier transform to achieve fast calculation and then realize real-time tracking, but it is prone to drift in the case of similar colors or complex backgrounds. When updating the template, it adopts a frame-by-frame update method, which is prone to cumulative errors that affect the tracking accuracy.
[0006] A typical target tracking algorithm based on deep learning is a target tracking algorithm based on a twin network. This method realizes feature extraction and matching between the template image and the frame to be tracked by inputting the template image and the frame to be tracked into two identical convolutional neural networks respectively. However, the existing twin network hyperspectral video target tracking algorithm cannot extract the spectral information of the target, which leads to tracking failure when the target is similar to the background. In addition, the use of twin networks for target tracking requires a training set. The existing hyperspectral target tracking video cannot meet this condition and is prone to overfitting during testing. Summary of the invention
[0007] In view of this, the main purpose of the present invention is to provide a hyperspectral target tracking method based on spatial spectral similarity dimensionality reduction.
[0008] To achieve the above object, the technical solution of the present invention is achieved as follows:
[0009] The embodiment of the present invention provides a hyperspectral target tracking method based on spatial spectrum similarity dimension reduction, the method is:
[0010] Step 1: Perform grayscale normalization on the t-th frame of the hyperspectral image in the hyperspectral image sequence to obtain the target area of the t-th frame of the hyperspectral image after normalization. and search area Wherein, t represents the number of frames of the hyperspectral image in the hyperspectral image sequence, and t is an integer greater than 1 and less than or equal to 2000. Contains m×n pixels and k bands, m represents the number of rows of pixels, n represents the number of columns of pixels, Contains p×q pixels and k bands, p represents the number of rows of pixels, q represents the number of columns of pixels, and The grayscale range of each pixel is a left-closed and right-closed interval from 0 to 1;
[0011] Step 2: Taking the target position of the hyperspectral image of the t-1th frame in the hyperspectral image sequence as the center, an image block of 3×3 pixels is intercepted at the center point as The local spectral curve C is determined by averaging the grayscale values of each band of pixels in the local area. l , take the average gray value of each band of pixels in the target area to determine the target spectral curve C t ,Sure Internal H i,j The spectral curve C i,j ; where i is a positive integer greater than or equal to 1 and less than or equal to p, j is a positive integer greater than or equal to 1 and less than or equal to q, H i,j represents the pixel in row i and column j, C i,j Yes H i,j A set of grayscale values in k bands;
[0012] Step 3: C by spectral angle distance l and C t Calculate and determine the segmentation threshold S Θ , through the spectral angular distance to C l and C i,j Calculate and determine H i,j The curve matching degree S i,j ;
[0013] Step 4: Through H i,j and H i,j The matching degree of the surrounding eight neighborhood pixel curves is determined by the set Ψ i,j , determine H i,j Similarity measure I i,j and H i,j The mask value M i,j, and determine the mask M;
[0014] Step 5: Use similarity measurement I i,j Determine the dimension reduction result Figure I r ;
[0015] Step 6: Extract I through DenseNet r The deep feature D of
[0016] Step 7: Extraction through 3D Gabor filter Texture features, get texture features G u,v , where u is a positive integer greater than or equal to 1 and less than or equal to 5, and v is a positive integer greater than or equal to 1 and less than or equal to 13.
[0017] Step 8: Determine texture feature G through variance u,v The fusion weight η u,v ;
[0018] Step 9: By fusion weight η pq Calculate the reconstructed texture feature G r ;
[0019] Step 10: Through G r And mask M determine the fused texture feature G f
[0020] Step 11: Obtain fused texture feature G through discriminant correlation filter f Response graph F G And the response map F of the deep feature D D ;
[0021] Step 12: Determine filter update parameter O t+1 ;
[0022] Step 13: Realize hyperspectral image target tracking through scale estimation module.
[0023] In the above scheme, the step three is specifically implemented by the following steps:
[0024] (301) Determine the segmentation threshold S Θ for
[0025]
[0026] Where arccos represents the inverse cosine transform, (·) T Represents vector transpose;
[0027] (302) Determine H i,j The curve matching degree S i,j for
[0028]
[0029] In the above scheme, the step 4 is specifically implemented by the following steps:
[0030] (401) Determine H i,j and H i,j The set of matching degrees of the surrounding eight neighborhood pixel curves Ψ i,j for
[0031] Ψ i,j ={S i-1,j+1 ,S i-1,j ,S i-1,j-1 ,S i,j+1 ,S i,j ,S i,j-1 ,S i+1,j-1 ,S i+1,j ,S i+1,j-1} (3)
[0032] (402) Determine H i,j Similarity measure I i,j for
[0033]
[0034] Among them, minΨ i,j represents the minimum value of the set, midΨ i,j represents the median of the set, maxΨ i,j Indicates the maximum value of a set;
[0035] (403)Traversal For all pixels in, determine the similarity measurement set I as
[0036] I={I 1,1 ,I 1,2 ,…,I i,j} (5)
[0037] (404) Determine H i,j The mask value M i,j for
[0038]
[0039] (405)Traversal For all pixels in, determine the mask M as
[0040] M={M 1,1 ,M 1,2 ,…,M i,j} (7).
[0041] In the above scheme, the step 5 is specifically implemented by the following steps:
[0042] Determine the dimension reduction result Figure I r for
[0043]
[0044] in, Indicates H i,j Gray value after dimensionality reduction, maxI represents the maximum value in the similarity measurement set I, I = {I 1,1 ,I 1,2 ,…,I i,j}.
[0045] In the above scheme, the step eight is specifically implemented by the following steps:
[0046] (801) Determine the texture feature G u,v Variance
[0047] (802) Determine the texture feature G u,v The fusion weight η u,v for
[0048]
[0049] Among them, ∑ represents the accumulation operation.
[0050] In the above scheme, the step nine is specifically implemented by the following steps:
[0051] Determine the reconstructed texture feature G r for
[0052]
[0053] In the above scheme, the step ten is specifically implemented by the following steps:
[0054] Determine the fusion texture feature G f for
[0055] G f =M⊙G r (11)
[0056] Among them, ⊙ represents the dot product operation.
[0057] In the above scheme, the step twelve is specifically implemented by the following steps:
[0058] (1201) Determine F G The peak position is (x G ,y G ), where x G Indicates the peak position horizontal coordinate, y G represents the ordinate of the peak position;
[0059] (1202) Determine F D The peak position is (x D ,y D ), where x D Indicates the peak position horizontal coordinate, y D represents the ordinate of the peak position;
[0060] (1203) Determine F G and F D The Euclidean distance d of the peak position is
[0061]
[0062] (1204) Setting Threshold Thr
[0063] (1205) Determine the filter update parameter O through the relationship between d and Thr t+1 for
[0064]
[0065] Among them, O t+1 represents the update parameters of the filter of the t+1th frame, O t represents the update parameters of the filter of the tth frame, O t-1 represents the update parameters of the filter of the t-1th frame, γ represents the learning rate, and Thr is set to 8.
[0066] Compared with the prior art, the present invention reduces the dimension of the hyperspectral image to a single-band grayscale image through a dimensionality reduction method, while retaining the spectral information and spatial domain information, and uses Densenet to perform deep feature extraction, extracts the texture features of the search area through a 3D Gabor filter, uses variance for adaptive fusion to retain rich texture information, then covers the texture features with a mask, and sends the features to a discriminant correlation filter to locate the target. BRIEF DESCRIPTION OF THE DRAWINGS
[0067] The drawings described herein are used to disclose a further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0068] Figure 1 is a flow chart of the present invention;
[0069] Figure 2 The 20th frame of the normalized Rubik's Cube hyperspectral image in the embodiment of the present invention;
[0070] Figure 3 This is the target area of the 20th frame of the normalized Rubik's Cube hyperspectral image in the embodiment of the present invention.
[0071] Figure 4 is the search area of the 20th frame of the hyperspectral image after normalization in the embodiment of the present invention
[0072] Figure 5 This is the 20th frame of the normalized hyperspectral image of the magic cube in the embodiment of the present invention. Dimensionality reduction result diagram obtained by dimensionality reduction;
[0073] Figure 6 This is the 20th frame of the normalized hyperspectral image of the magic cube in the embodiment of the present invention. The depth features of the first 64 channels of the dimension reduction result image obtained by dimension reduction;
[0074] Figure 7 This is the 20th frame of the normalized hyperspectral image of the magic cube in the embodiment of the present invention. Extracted reconstructed texture features;
[0075] Figure 8 This is the 20th frame of the normalized hyperspectral image of the magic cube in the embodiment of the present invention. Fusion texture features;
[0076] Fig. 9 It is the tracking target of the current frame hyperspectral image obtained by normalizing the 20th frame of the magic cube hyperspectral image in the embodiment of the present invention. Specific implementation plan
[0077] 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 implementation described here is only used to solve the present invention and is not used to limit the present invention.
[0078] The embodiment of the present invention provides a hyperspectral target tracking method based on spatial spectrum similarity dimension reduction, such as Figure 1 As shown, the method is implemented by the following steps:
[0079] Step 1: Load the t-th frame of the hyperspectral image in the hyperspectral image sequence, perform grayscale normalization on it, and determine the target area of the t-th frame of the hyperspectral image after normalization. and search area
[0080] Wherein, t represents the number of frames of the hyperspectral image in the hyperspectral image sequence, and t is an integer greater than 1 and less than or equal to 2000. Contains m×n pixels and k bands, where m represents the number of rows of pixels and n represents the number of columns of pixels; Contains p×q pixels and k bands, p represents the number of rows of pixels, q represents the number of columns of pixels, and The grayscale range of each pixel is a left-closed and right-closed interval from 0 to 1;
[0081] Specifically, the 20th frame of the hyperspectral image of the magic cube sequence is loaded, and the grayscale of the 20th frame of the hyperspectral image is normalized to obtain the normalized 20th frame of the hyperspectral image, and the target area of the normalized 20th frame of the hyperspectral image is determined. and search area The loaded Rubik's Cube hyperspectral image sequence has a total of 526 frames, the hyperspectral image resolution is 493×207 pixels, m is 27, n is 33, k is 16, p is 82, and q is 100. Figure 2 is the normalized 20th frame of the Rubik's Cube hyperspectral image in the embodiment of the present invention, Figure 3 This is the target area of the 20th frame of the normalized Rubik's Cube hyperspectral image in the embodiment of the present invention. Figure 4 is the search area of the 20th frame of the hyperspectral image after normalization in the embodiment of the present invention During the entire sequence, humans manually manipulated the Rubik's Cube to move and rotate, causing occlusion of the Cube.
[0082] Step 2: Taking the target position of the hyperspectral image of the t-1th frame in the hyperspectral image sequence as the center, an image block of 3×3 pixels is intercepted at the center point as The local spectral curve C is determined by averaging the grayscale values of each band pixel in the local area. l , take the average gray value of each band pixel in the target area to determine the target spectral curve C t ,Sure Internal H i,j The spectral curve C i,j ;
[0083] Where i is a positive integer greater than or equal to 1 and less than or equal to p, j is a positive integer greater than or equal to 1 and less than or equal to q, H i,j represents the pixel in row i and column j, C i,j Yes H i,j A set of grayscale values in k bands;
[0084] Specifically, load the 20th frame of the hyperspectral image in the Rubik's Cube sequence, C lThe grayscale values in bands 1 to 16 are {0.1479, 0.1369, 0.1260, 0.1307, 0.1364, 0.1404, 0.1665, 0.1922, 0.2017, 0.2449, 0.2304, 0.2536, 0.2672, 0.2814, 0.3128, 0.3994}, respectively. The target spectral curve C t The grayscale values in bands 1 to 16 are {0.0678, 0.0651, 0.0622, 0.0571, 0.0579, 0.0557, 0.0637, 0.0654, 0.0752, 0.0835, 0.1117, 0.1304, 0.1079, 0.1703, 0.1327, 0.1739}, respectively. The pixel H at row 42 and column 56 in 42,56 The spectral curve C 42,56 The grayscale values in bands 1 to 16 are {0.1358, 0.1299, 0.1181, 0.1247, 0.1219, 0.1323, 0.1475, 0.1759, 0.1808, 0.2382, 0.2162, 0.2498, 0.2549, 0.2655, 0.2900, 0.3696} respectively.
[0085] Step 3: C by spectral angle distance l and C t Calculate and determine the segmentation threshold S Θ , through the spectral angular distance to C l and C i,j Calculate and determine H i,j The curve matching degree S i,j ;
[0086] (301) Determine the segmentation threshold S Θ for
[0087]
[0088] Where arccos represents the inverse cosine transform, (·) T Represents vector transpose;
[0089] Specifically, load the 20th frame of hyperspectral image, S Θ is 1.5581;
[0090] (302) Determine H i,j The curve matching degree S i,j for
[0091]
[0092] Specifically, load the 20th frame of hyperspectral image, H 42,56 The curve matching degree S 42,56 It is 1.5705.
[0093] Step 4: Through H i,j and H i,j The matching degree of the surrounding eight neighborhood pixel curves is determined by the set Ψ i,j , determine H i,j Similarity measure I i,j and H i,j The mask value M i,j , and determine the mask M;
[0094] (401) Determine H i,j The set of matching degrees of the pixel curves in the surrounding eight neighborhoods Ψ i,j for
[0095] Ψ i,j ={S i-1,j+1 ,S i-1,j ,S i-1,j-1 ,S i,j+1 ,S i,j ,S i,j-1 ,S i+1,j-1 ,S i+1,j ,S i+1,j-1} (3)
[0096] Specifically, load the 20th frame of the hyperspectral image H in the Rubik's Cube sequence 42,56 The collection of 42,56 {1.2897, 1.4765, 1.3787, 1.4356, 1.5356, 1.5705, 1.3001, 1.5677, 1.4230};
[0097] (402) Determine H i,j Similarity measure I i,j for
[0098]
[0099] Among them, minΨ i,j represents the minimum value of the set, midΨ i,j represents the median of the set, maxΨ i,j Indicates the maximum value of a set;
[0100] Specifically, the set Ψ 42,56 The minimum value of minΨ 42,46 is 1.2897, the set Ψ 42,56 The maximum value of maxΨ 42,56 is 1.5705, the set Ψ 42,56 The median midΨ 42,56is 1.4356, at this time midΨ 42,56 Less than S Θ , so H 42,56 Similarity measure I 42,56 is 1.2897;
[0101] (403)Traversal For all pixels in, determine the similarity measurement set I as
[0102] I={I 1,1 ,I 1,2 ,…,I i,j} (5)
[0103] (404) Determine H i,j The mask value M i,j for
[0104]
[0105] Specifically, H 42,56 The mask value M 42,56 is 1;
[0106] (405)Traversal For all pixels in, determine the mask M as
[0107] M={M 1,1 ,M 1,2 ,…,M i,j} (7)
[0108] Step 5: Use similarity measurement I i,j Determine the dimension reduction result Figure I r for
[0109]
[0110] in, Indicates H i,j Gray value after dimensionality reduction, maxI represents the maximum value in the similarity measurement set I;
[0111] Specifically, the 20th frame of the hyperspectral image of the Rubik's Cube sequence is loaded, and maxI is 1.5706. 42,56 The gray value after dimensionality reduction is 0.1799. Figure 5 This is the 20th frame of the normalized hyperspectral image of the magic cube in the embodiment of the present invention. Dimensionality reduction result diagram obtained by dimensionality reduction;
[0112] Step 6: Extract I through DenseNet r The deep feature D of
[0113] Specifically, DenseNet is a prior art. The present invention uses the conv5_block31_concat layer of DenseNet to extract deep features. In the present invention, the size of D is a deep feature of 7×7×1888, where 7×7 represents the spatial size, 1888 is the number of channels, Figure 6 In the embodiment of the present invention, the search area of the 20th frame of the magic cube hyperspectral image after normalization is The depth features of the first 64 channels of a band grayscale image after dimensionality reduction.
[0114] Step 7: Extraction through 3D Gabor filter Texture features, get texture features G u,v ;
[0115] Wherein, u is a positive integer greater than or equal to 1 and less than or equal to 5, and v is a positive integer greater than or equal to 1 and less than or equal to 13.
[0116] Specifically, the 3D Gabor filter is an existing technology. The 3D Gabor transform has good resolution in both the spectral domain and the spatial domain, and can effectively extract information such as the direction and size of texture features. 3D Gabor adds one-dimensional spectral information to represent the image on the basis of 2D Gabor, thereby capturing the spectral information and spatial information of the hyperspectral image at the same time. In the spectral spatial frequency domain (h, w, b), the 3D spectral spatial Gabor filter can be expressed as
[0117]
[0118] Among them, a(h,w,b) is a three-dimensional Gaussian function, f represents the frequency, θ and represents the filter direction, (u h ,u w ,u b ) represents the components of frequency in the spatial dimension and spectral dimension. The frequency f takes values in the set (1 / 4, 1 / 8, 1 / 12, 1 / 16, 1 / 20), and θ and Take values in the set (0,π / 4,π / 2,3π / 4). There are 16 ways to combine θ and θ in pairs. The direction of the wave vector is the same when θ takes any value, so there are only 13 directions in the end. Load the 20th frame of the hyperspectral image in the Rubik's Cube sequence. The texture features are extracted by 3D Gabor filter to obtain 65 texture features G u,v , G 1,1 It means that the filter f takes 1 / 4 and θ takes 0. The texture feature obtained by taking 0, G u,v In space Same size,
[0119] Step 8: Determine texture feature G through variance u,v The fusion weight η u,v ;
[0120] (801) Determine the texture feature G u,v Variance
[0121] (802) Determine the texture feature G u,v The fusion weight η u,v for
[0122]
[0123] Among them, ∑ represents the accumulation operation;
[0124] Step 9: By fusion weight η pq Determine the reconstructed texture feature G r for
[0125]
[0126] Specifically, G r In terms of spatial size Consistent, Figure 7 This is the 20th frame of the normalized hyperspectral image of the magic cube in the embodiment of the present invention. Extracted reconstructed texture features;
[0127] Step 10: Through G r And mask M determine the fused texture feature G f for
[0128] G f =M⊙G r (12)
[0129] Among them, ⊙ represents the dot product operation;
[0130] Specifically, load the 20th frame of hyperspectral image in the Rubik's Cube sequence, Figure 8 This is the 20th frame of the normalized hyperspectral image of the magic cube in the embodiment of the present invention. Fusion texture features;
[0131] Step 11: Obtain fused texture feature G through discriminant correlation filter f Response graph F G And the response map F of the deep feature D D ;
[0132] Specifically, the discriminant correlation filter is an existing technology, and the fused texture features are sent to the filter to obtain the response map F G , send the deep features into the filter to obtain the response map FD ;
[0133] Step 12: Determine filter update parameter O t+1 ;
[0134] (1201) Determine F G The peak position is (x G ,y G ), where x G Indicates the peak position horizontal coordinate, y G represents the ordinate of the peak position;
[0135] Specifically, load the 20th frame of the hyperspectral image in the Rubik's Cube sequence and obtain the texture feature G f Response graph F G , determine F G The peak coordinates are (36, 47);
[0136] (1202) Determine F D The peak position is (x D ,y D ), where x D Indicates the peak position horizontal coordinate, y D represents the ordinate of the peak position;
[0137] Specifically, load the 20th frame of the hyperspectral image in the Rubik's Cube sequence and obtain the response map F of the deep feature D D , determine F D The peak coordinates are (32, 46);
[0138] (1203) Determine F G and F D The Euclidean distance d of the peak position is
[0139]
[0140] Specifically, the 20th frame of the hyperspectral image of the Rubik's Cube sequence is loaded. G and F D The Euclidean distance d of the peak position is 4.1231;
[0141] (1204) Setting Threshold Thr
[0142] Where Thr is set to 8;
[0143] (1205) Determine the filter update parameter O through the relationship between d and Thr t+1 for
[0144]
[0145] Among them, O t+1represents the update parameters of the filter of the t+1th frame, O t represents the update parameters of the filter of the tth frame, O t-1 represents the update parameter of the filter of the t-1th frame, and γ represents the learning rate;
[0146] Specifically, under normal tracking conditions, the coordinates of the peak values of the response graphs corresponding to the two features will not differ greatly. When the coordinates of the peak values of the response graphs of the two features differ greatly during tracking, it indicates that an error has occurred in the tracking algorithm and the filter parameters need to be updated. Load the 20th frame of the hyperspectral image. At this time, the Euclidean distance d is 4.1231, d<Thr, and the filter parameters do not need to be updated. At this time, O t+1 =O t .
[0147] Step 13: Realize hyperspectral image target tracking through scale estimation module;
[0148] Specifically, the hyperspectral image of the 20th frame of the Rubik's Cube sequence is loaded, and the coordinates of the target centroid of the 20th frame are obtained (34, 47). The target frame size is 33×32, where 33 represents the number of rows and 32 represents the number of columns.
[0149] Step 14: read each frame of the hyperspectral image in the hyperspectral image sequence, and repeat steps 1 to 13 to complete the target tracking of the hyperspectral image sequence.
[0150] Specifically, each frame of the 526-frame Rubik's Cube hyperspectral image sequence is loaded in turn, and steps 1 to 13 are repeated to obtain the centroid coordinates of the target and the size of the target frame of the hyperspectral image, and the final hyperspectral image sequence target tracking is completed. Fig. 9 It is the tracking target of the current frame hyperspectral image obtained by normalizing the 20th frame of the magic cube hyperspectral image in the embodiment of the present invention.
[0151] The present invention reduces the dimension of the hyperspectral image to a single-band grayscale image through a dimensionality reduction method, while retaining the spectral information and spatial domain information, and uses Densenet to perform deep feature extraction. The texture features of the search area are extracted through a 3D Gabor filter, and variance is used for adaptive fusion to retain rich texture information. Then a mask is covered on the texture features, and the features are sent to a discriminant correlation filter to locate the target.
[0152] The present invention also proposes a new template update mechanism to reduce error accumulation. It determines whether the distance of the peak position of the response graph corresponding to different features exceeds the threshold and decides whether to update the template parameters. This algorithm can reduce the error accumulation of target tracking.
[0153] The above descriptions are merely preferred embodiments of the present invention and are not intended to limit the protection scope of the present invention.
Claims
1. A hyperspectral target tracking method based on spatial spectral similarity dimensionality reduction, characterized in that: The method is: Step 1: Perform grayscale normalization on the t-th frame of the hyperspectral image in the hyperspectral image sequence to obtain the target area of the t-th frame of the hyperspectral image after normalization. and search area Wherein, t represents the number of frames of the hyperspectral image in the hyperspectral image sequence, and t is an integer greater than 1 and less than or equal to 2000. Contains m×n pixels and k bands, m represents the number of rows of pixels, n represents the number of columns of pixels, Contains p×q pixels and k bands, p represents the number of rows of pixels, q represents the number of columns of pixels, and The grayscale range of each pixel is a left-closed and right-closed interval from 0 to 1; Step 2: Taking the target position of the hyperspectral image of the t-1th frame in the hyperspectral image sequence as the center, an image block of 3×3 pixels is intercepted at the center point as The local spectral curve C is determined by averaging the grayscale values of each band of pixels in the local area. l , take the average gray value of each band of pixels in the target area to determine the target spectral curve C t ,Sure Internal H i,j The spectral curve C i,j ; where i is a positive integer greater than or equal to 1 and less than or equal to p, j is a positive integer greater than or equal to 1 and less than or equal to q, H i,j represents the pixel in row i and column j, C i,j Yes H i,j A set of grayscale values in k bands; Step 3: C by spectral angle distance l and C t Calculate and determine the segmentation threshold S Θ , through the spectral angular distance to C l and C i,j Calculate and determine H i,j The curve matching degree S i,j ; Step 4: Through H i,j and H i,j The matching degree of the surrounding eight neighborhood pixel curves is determined by the set Ψ i,j , determine H i,j Similarity measure I i,j and H i,j The mask value M i,j , and determine the mask M; Step 5: Use similarity measurement I i,j Determine the dimension reduction result Figure I r ; Step 6: Extract I through DenseNet r The deep feature D of Step 7: Extraction through 3D Gabor filter Texture features, get texture features G u,v , where u is a positive integer greater than or equal to 1 and less than or equal to 5, and v is a positive integer greater than or equal to 1 and less than or equal to 13; Step 8: Determine texture feature G through variance u,v The fusion weight η u,v ; Step 9: By fusion weight η pq Calculate the reconstructed texture feature G r ; Step 10: Through G r And mask M determine the fused texture feature G f Step 11: Obtain fused texture feature G through discriminant correlation filter f Response graph F G And the response map F of the deep feature D D ; Step 12: Determine filter update parameter O t+1 ; Step 13: Realize hyperspectral image target tracking through scale estimation module; The step three is specifically implemented by the following steps: (301) Determine the segmentation threshold S Θ for Where arccos represents the inverse cosine transform, (·) T Represents vector transpose; (302) Determine H i,j The curve matching degree S i,j for The step 4 is specifically implemented by the following steps: (401) Determine H i,j and H i,j The set of matching degrees of the surrounding eight neighborhood pixel curves Ψ i,j for Ψ i,j ={S i-1,j+1 ,S i-1,j ,S i-1,j-1 ,S i,j+1 ,S i,j ,S i,j-1 ,S i+1,j-1 ,S i+1,j ,S i+1,j-1 } (3) (402) Determine H i,j Similarity measure I i,j for Among them, minΨ i,j represents the minimum value of the set, midΨ i,j represents the median of the set, maxΨ i,j Indicates the maximum value of a set; (403)Traversal For all pixels in, determine the similarity measurement set I as I={I 1,1 ,I 1,2 ,…,I i,j } (5) (404) Determine H i,j The mask value M i,j for (405)Traversal For all pixels in, determine the mask M as M={M 1,1 ,M 1,2 ,…,M i,j } (7)。 2. The hyperspectral target tracking method based on spatial spectral similarity dimensionality reduction according to claim 1 is characterized in that: The step 5 is specifically implemented by the following steps: Determine the dimension reduction result Figure I r for in, Indicates H i,j Gray value after dimensionality reduction, maxI represents the maximum value in the similarity measurement set I, I = {I 1,1 ,I 1,2 ,…,I i,j }.
3. The hyperspectral target tracking method based on spatial spectral similarity dimensionality reduction according to claim 2 is characterized in that: The step eight is specifically implemented by the following steps: (801) Determine the texture feature G u,v Variance (802) Determine the texture feature G u,v The fusion weight η u,v for Among them, ∑ represents the accumulation operation.
4. The hyperspectral target tracking method based on spatial spectral similarity dimensionality reduction according to claim 3 is characterized in that: The step nine is specifically implemented by the following steps: Determine the reconstructed texture feature G r for 5. The hyperspectral target tracking method based on spatial spectral similarity dimensionality reduction according to claim 4 is characterized in that: The step ten is specifically implemented by the following steps: Determine the fusion texture feature G f for G f =M⊙G r (11) Among them, ⊙ represents the dot product operation.
6. The hyperspectral target tracking method based on spatial spectral similarity dimensionality reduction according to claim 5 is characterized in that: The step twelve is specifically implemented by the following steps: (1201) Determine F G The peak position is (x G ,y G ), where x G Indicates the peak position horizontal coordinate, y G represents the ordinate of the peak position; (1202) Determine F D The peak position is (x D ,y D ), where x D Indicates the peak position horizontal coordinate, y D represents the ordinate of the peak position; (1203) Determine F G and F D The Euclidean distance d of the peak position is (1204) Setting Threshold Thr (1205) Determine the filter update parameter O through the relationship between d and Thr t+1 for Among them, O t+1 represents the update parameters of the filter of the t+1th frame, O t represents the update parameters of the filter of the tth frame, O t-1 represents the update parameters of the filter of the t-1th frame, γ represents the learning rate, and Thr is set to 8.
Citation Information
Patent Citations
Image multi-scale feature extraction method based on cellular neural network
CN111027570A
Vehicle lamp area guided expressway scene low-illumination video sharpening processing method
CN115147294A
