CN110992245B - Hyperspectral image dimension reduction method and device - Google Patents

Hyperspectral image dimension reduction method and device Download PDF

Info

Publication number
CN110992245B
CN110992245B CN201911129254.2A CN201911129254A CN110992245B CN 110992245 B CN110992245 B CN 110992245B CN 201911129254 A CN201911129254 A CN 201911129254A CN 110992245 B CN110992245 B CN 110992245B
Authority
CN
China
Prior art keywords
matrix
neighborhood
hyperspectral image
subcube
sparse
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911129254.2A
Other languages
Chinese (zh)
Other versions
CN110992245A (en
Inventor
刘洋
王庆
王扬扬
姬晓飞
王艳辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenyang Aerospace University
Original Assignee
Shenyang Aerospace University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenyang Aerospace University filed Critical Shenyang Aerospace University
Priority to CN201911129254.2A priority Critical patent/CN110992245B/en
Publication of CN110992245A publication Critical patent/CN110992245A/en
Application granted granted Critical
Publication of CN110992245B publication Critical patent/CN110992245B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/06Topological mapping of higher dimensional structures onto lower dimensional surfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • G06F18/241Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02ATECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
    • Y02A40/00Adaptation technologies in agriculture, forestry, livestock or agroalimentary production
    • Y02A40/10Adaptation technologies in agriculture, forestry, livestock or agroalimentary production in agriculture

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Physics & Mathematics (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • General Engineering & Computer Science (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Image Processing (AREA)

Abstract

The application discloses a hyperspectral image dimension reduction method and device. The hyperspectral image dimension reduction method comprises the following steps: acquiring a neighborhood sub-cube f of a pixel in a hyperspectral image I to be processed using a sliding kernel i The method comprises the steps of carrying out a first treatment on the surface of the For each acquired neighborhood sub-cube f i Performing dimension reduction processing to obtain a neighborhood hyperspectral image of each neighborhood subcube after dimension reductionAccording to the spatial position of each neighborhood subcube in the hyperspectral image, the neighborhood hyperspectral image of each neighborhood subcubeRearranging to obtain hyperspectral image after dimension reductionAccording to the technical scheme, when the dimension of the hyperspectral image is reduced, the linear dynamic system feature model is combined with the sparse feedback optimization technology, so that the wave bands with large information quantity and good class separability in the hyperspectral image are extracted, the classification precision of the hyperspectral image is improved, and meanwhile, the calculated amount of hyperspectral image classification is reduced.

Description

一种高光谱图像降维方法及装置A hyperspectral image dimensionality reduction method and device

技术领域technical field

本申请涉及高光谱图像的降维领域,尤指一种高光谱图像降维方法及装置。The present application relates to the field of dimensionality reduction of hyperspectral images, in particular to a method and device for dimensionality reduction of hyperspectral images.

背景技术Background technique

高光谱图像的准确分类在工业、农业和航空航天应用领域中发挥着重要作用,可以应用于精准农业、环境制图、社会安防、矿物勘探以及生物和化学检测等很多实际的应用领域。Accurate classification of hyperspectral images plays an important role in industrial, agricultural, and aerospace applications, and can be applied to many practical applications such as precision agriculture, environmental mapping, social security, mineral exploration, and biological and chemical detection.

然而,高光谱图像的光谱维数高且光谱波段间具有很强的统计相关性,致使信息冗余、计算复杂度高,最终导致分类精度低,制约了高光谱遥感图像的应用。而图像降维可以减弱或消除光谱波段间的相关性,提高像素的可区分性,降低计算量,从而提高遥感图像的分类精度,因此,提出一种有效的降维方法在保留足够的光谱信息的同时降低波段维数是十分必要的。However, the spectral dimension of hyperspectral images is high and there is a strong statistical correlation between spectral bands, resulting in redundant information, high computational complexity, and ultimately low classification accuracy, which restricts the application of hyperspectral remote sensing images. Image dimensionality reduction can weaken or eliminate the correlation between spectral bands, improve the distinguishability of pixels, reduce the amount of calculation, and thus improve the classification accuracy of remote sensing images. Therefore, it is necessary to propose an effective dimensionality reduction method to reduce the band dimension while retaining sufficient spectral information.

现有的高光谱图像降维方法主要有基于数学变换的特征提取方法和基于波段选择的特征选择方法。对于基于数学变换的特征提取方法,主要有:主成分分析法(PrincipalComponent Analysis)、最小噪声分离变换(Minimum Noise Fraction Rotation)和非线性流行学习方法(Nonlinear manifold learning);对于基于波段选择的特征选择方法,如可以选择信息量大、类别可分性好或相关性小的波段组合。Existing hyperspectral image dimensionality reduction methods mainly include feature extraction methods based on mathematical transformations and feature selection methods based on band selection. For feature extraction methods based on mathematical transformations, there are mainly: Principal Component Analysis, Minimum Noise Fraction Rotation, and Nonlinear Manifold Learning; for feature selection methods based on band selection, for example, band combinations with large amounts of information, good category separability, or low correlation can be selected.

然而,现有的高光谱图像降维方法忽视了高光谱图像的空间结构信息,且方法的计算量大。同时,人工设定参数和选取阈值的过程影响了分类的精度。However, the existing dimensionality reduction methods for hyperspectral images ignore the spatial structure information of hyperspectral images, and the methods are computationally intensive. At the same time, the process of manually setting parameters and selecting thresholds affects the classification accuracy.

如何弥补现有技术中在对高光谱图像进行降维时所存在的如上不足之处,目前现有技术中还没有相关的解决方案。How to make up for the above deficiencies in the prior art when reducing the dimensionality of hyperspectral images, there is no relevant solution in the prior art.

发明内容Contents of the invention

为了解决上述技术问题,本申请提供了一种高光谱图像降维方法,能够提高高光谱图像的分类精度,同时降低了高光谱图像分类的计算量,解决了现有高光谱图像降维需要人工参与、没有充分利用高光谱图像的空间结构信息的问题。In order to solve the above technical problems, this application provides a hyperspectral image dimensionality reduction method, which can improve the classification accuracy of hyperspectral images, and at the same time reduce the calculation amount of hyperspectral image classification, and solve the problems that existing hyperspectral image dimensionality reduction requires manual participation and does not make full use of the spatial structure information of hyperspectral images.

为了达到本申请目的,本申请提供了一种高光谱图像降维方法,包括如下步骤:In order to achieve the purpose of this application, this application provides a hyperspectral image dimensionality reduction method, including the following steps:

利用滑动核获取所要处理的高光谱图像I中像素的邻域子立方体fi,其中,I的尺寸为m×n×k,m表示所述高光谱图像的空间行数,n表示所述高光谱图像的空间列数,k表示所述高光谱图像的光谱维数,所述滑动核的尺寸为w×w,w为大于1的奇数,i的值为不大于min(m-w+1,n-w+1)的正整数,fi的尺寸为w×w×k;Use the sliding core to obtain the neighboring cube F I of the pixel I in the high spectrum image I to be processed. Among them, the size of i is m × n × k. M represents the number of space rows of the high spectrum image, n represents the number of space columns of the high spectral image, and K represents the number of spectral dimensions of the high spectrum image. Strange number, the value of i is not greater than MIN (m-w+1, n-w+1), the size of F i is W × W × K;

对所获取到的各个邻域子立方体fi进行降维处理,得到降维后的所述各个邻域子立方体的邻域高光谱图像 Perform dimensionality reduction processing on each of the acquired neighborhood sub-cubes fi , and obtain neighborhood hyperspectral images of each neighborhood sub-cube after dimensionality reduction

根据所述各个邻域子立方体在所述高光谱图像中的空间位置,将所述各个邻域子立方体的邻域高光谱图像重新排列,获得降维后的高光谱图像/> According to the spatial position of each neighborhood sub-cube in the hyperspectral image, the neighborhood hyperspectral image of each neighborhood sub-cube Rearrange to obtain the hyperspectral image after dimensionality reduction />

进一步地,所述对所获取到的各个邻域子立方体fi进行降维处理,得到降维后的所述各个邻域子立方体的邻域高光谱图像包括如下步骤:Further, performing dimensionality reduction processing on each of the acquired neighborhood sub-cubes fi , and obtaining neighborhood hyperspectral images of each neighborhood sub-cube after dimensionality reduction Including the following steps:

获取所述各个邻域子立方体fi进行平铺处理后所得到的矩阵Mi,其中,所述矩阵Mi的尺寸为k×s,其中s=w×w;Obtaining the matrix M i obtained after tiling the respective neighborhood sub-cubes fi, wherein the size of the matrix M i is k×s, where s= w ×w;

对所述矩阵Mi进行分解处理,根据分解处理结果建立所述邻域子立方体的线性动态系统模型(Ai,Bi,Ci);Decomposing the matrix M i , and establishing a linear dynamic system model (A i , B i , C i ) of the neighborhood sub-cube according to the result of the decomposition processing;

根据所述线性动态系统模型(Ai,Bi,Ci)中的所述矩阵Ai和矩阵Bi获取矩阵Ci的稀疏矩阵 Acquire the sparse matrix of matrix C i according to the matrix A i and matrix B i in the linear dynamic system model (A i , B i , C i )

对所述稀疏矩阵进行归一化处理,根据归一化处理结果得到降维后的所述各个邻域子立方体的邻域高光谱图像/> For the sparse matrix Perform normalization processing, and obtain the neighborhood hyperspectral image of each neighborhood sub-cube after dimensionality reduction according to the normalization processing result

进一步地,其中,所述对所述矩阵Mi进行分解处理,包括如下步骤:Further, wherein, said decomposing the matrix M i includes the following steps:

利用奇异值分解SDV通过如下公式对所述矩阵Mi进行分解,得到分解后的矩阵Ui、矩阵Λi和矩阵ViUsing the singular value decomposition SDV to decompose the matrix M i through the following formula, the decomposed matrix U i , matrix Λ i and matrix V i are obtained:

Mi=UiΛiVi TM i = U i Λ i V i T ;

其中,所述矩阵Ui的尺寸为k×s且Ui T×Ui=I,所述矩阵Vi和所述矩阵Λi的尺寸为s×s,Vi T×Vi=I;Wherein, the size of the matrix U i is k×s and U i T ×U i =I, the size of the matrix V i and the matrix Λ i is s×s, V i T ×V i =I;

所述根据分解处理结果建立所述邻域子立方体的线性动态系统模型(Ai,Bi,Ci),包括如下步骤:The establishment of the linear dynamic system model (A i , B i , C i ) of the neighborhood sub-cube according to the decomposition processing results includes the following steps:

利用所述矩阵Ui、所述矩阵Λi和所述矩阵Vi建立所述邻域子立方体的线性动态系统模型(Ai,Bi,Ci),具体为:Using the matrix U i , the matrix Λ i and the matrix V i to establish the linear dynamic system model (A i , B i , C i ) of the neighborhood sub-cube, specifically:

Ci=Ui C i =U i

其中,Xi=ΛiVi TAmong them, X ii V i T ;

在计算Bi时,首先计算然后利用公式Gi=U′iΛ′iV′i分解矩阵Gi得到U′i和Λ′i,从而计算得到BiWhen calculating B i , first calculate Then use the formula G i = U' i Λ' i V' i to decompose the matrix G i to get U' i and Λ' i , and then calculate B i ;

其中,矩阵Ai的尺寸为s×s,矩阵Xi为系统状态变量矩阵,其尺寸为s×s,表示提取所述矩阵Xi的1至s行和2至s列,/>表示提取所述矩阵Xi的1至s行和1至s-1列,表示提取矩阵U′i的第1列,/>表示提取矩阵Λ′i的第1行第1列元素。Among them, the size of the matrix A i is s×s, the matrix Xi is the system state variable matrix, and its size is s×s, Indicates extracting the 1 to s rows and 2 to s columns of the matrix X i , /> means extracting the rows 1 to s and columns 1 to s-1 of the matrix Xi , Indicates the first column of the extraction matrix U′ i , /> Represents the element in the first row and the first column of the extraction matrix Λ' i .

进一步地,所述根据所述线性动态系统模型(Ai,Bi,Ci)中的所述矩阵Ai和矩阵Bi获取矩阵Ci的稀疏矩阵包括如下步骤:Further, the sparse matrix of matrix C i is obtained according to the matrix A i and matrix B i in the linear dynamic system model (A i , B i , C i ) Including the following steps:

利用李雅普诺夫稳定条件和稀疏性假设条件通过如下方程得到矩阵和稀疏矩阵/>所述方程的优化解即为所述矩阵/>和所述稀疏矩阵/> Using Lyapunov stability conditions and sparsity assumptions, the matrix is obtained by the following equation and sparse matrix /> The optimal solution of the equation is the matrix and the sparse matrix />

||Yi||col→min,||Y i || col →min,

其中, in,

计算矩阵 Calculation matrix

所述稀疏矩阵由所述矩阵/>中与所述稀疏矩阵/>中不为0的列索引对应的行所组成。The sparse matrix by the matrix /> with the sparse matrix /> It consists of the rows corresponding to the column indexes that are not 0.

进一步地,所述对所述稀疏矩阵进行归一化处理,包括如下步骤:Further, the pair of the sparse matrix Perform normalization processing, including the following steps:

建立零矩阵将矩阵/>中的各行填充到矩阵/>中,填充的位置为该行在矩阵/>中的行索引,填充后的/>即为对所述稀疏矩阵/>进行归一化处理后的归一化处理结果;build zero matrix will matrix /> fill each row in the matrix /> , fill the position for the row in the matrix /> The row index in the padded /> That is, for the sparse matrix /> The normalized processing result after the normalized processing is performed;

所述根据归一化处理结果得到降维后的所述各个邻域子立方体的邻域高光谱图像包括如下步骤:The neighborhood hyperspectral image of each neighborhood sub-cube after dimensionality reduction is obtained according to the normalization processing result Including the following steps:

通过如下公式得到降维后的所述各个邻域子立方体的邻域高光谱图像 The neighborhood hyperspectral image of each neighborhood sub-cube after dimensionality reduction is obtained by the following formula

本申请还提供了一种高光谱图像降维装置,包括:The present application also provides a hyperspectral image dimensionality reduction device, including:

邻域子立方体获取模块,设置为利用滑动核获取所要处理的高光谱图像I中像素的邻域子立方体fi,其中,I的尺寸为m×n×k,m表示所述高光谱图像的空间行数,n表示所述高光谱图像的空间列数,k表示所述高光谱图像的光谱维数,所述滑动核的尺寸为w×w,w为大于1的奇数,i的值为不大于min(m-w+1,n-w+1)的正整数,fi的尺寸为w×w×k;The neighborhood sub-cube acquisition module is configured to use the sliding kernel to acquire the neighborhood sub-cube f i of the pixels in the hyperspectral image I to be processed, wherein the size of I is m×n×k, m represents the number of spatial rows of the hyperspectral image, n represents the number of spatial columns of the hyperspectral image, k represents the spectral dimension of the hyperspectral image, the size of the sliding kernel is w×w, w is an odd number greater than 1, and the value of i is a positive integer not greater than min(m-w+1, n-w+1) , the size of f i is w×w×k;

邻域高光谱图像生成模块,设置为对所获取到的各个邻域子立方体fi进行降维处理,得到降维后的所述各个邻域子立方体的邻域高光谱图像 The neighborhood hyperspectral image generation module is configured to perform dimensionality reduction processing on each of the acquired neighborhood sub-cubes fi to obtain the neighborhood hyperspectral image of each neighborhood sub-cube after dimensionality reduction

邻域高光谱图像重排模块,设置为根据所述各个邻域子立方体在所述高光谱图像中的空间位置,将所述各个邻域子立方体的邻域高光谱图像重新排列,获得降维后的高光谱图像/> The neighborhood hyperspectral image rearrangement module is configured to, according to the spatial position of each neighborhood sub-cube in the hyperspectral image, the neighborhood hyperspectral image of each neighborhood sub-cube Rearrange to obtain the hyperspectral image after dimensionality reduction />

进一步地,所述邻域高光谱图像生成模块,包括:Further, the neighborhood hyperspectral image generation module includes:

邻域子立方体矩阵生成模块,设置为获取所述各个邻域子立方体fi进行平铺处理后所得到的矩阵Mi,其中,所述矩阵Mi的尺寸为k×s,其中s=w×w;The neighborhood sub-cube matrix generating module is configured to obtain the matrix M i obtained after tiling each neighborhood sub-cube f i , wherein the size of the matrix M i is k×s, where s=w×w;

线性动态系统模型建立模块,设置为对所述矩阵Mi进行分解处理,根据分解处理结果建立所述邻域子立方体的线性动态系统模型(Ai,Bi,Ci);A linear dynamic system model building module, configured to decompose the matrix M i , and establish a linear dynamic system model (A i , B i , C i ) of the neighborhood sub-cube according to the decomposition processing result;

稀疏矩阵获取模块,设置为根据所述线性动态系统模型(Ai,Bi,Ci)中的所述矩阵Ai和矩阵Bi获取矩阵Ci的稀疏矩阵 The sparse matrix acquisition module is configured to acquire the sparse matrix of matrix C i according to the matrix A i and matrix B i in the linear dynamic system model (A i , B i , C i )

稀疏矩阵处理模块,设置为对所述稀疏矩阵进行归一化处理,根据归一化处理结果得到降维后的所述各个邻域子立方体的邻域高光谱图像/> Sparse matrix processing module, set to process the sparse matrix Perform normalization processing, and obtain the neighborhood hyperspectral image of each neighborhood sub-cube after dimensionality reduction according to the normalization processing result

进一步地,所述对所述矩阵Mi进行分解处理,包括:Further, said decomposing the matrix M i includes:

利用奇异值分解SDV通过如下公式对所述矩阵Mi进行分解,得到分解后的矩阵Ui、矩阵Λi和矩阵ViUsing the singular value decomposition SDV to decompose the matrix M i through the following formula, the decomposed matrix U i , matrix Λ i and matrix V i are obtained:

Mi=UiΛiVi TM i = U i Λ i V i T ;

其中,所述矩阵Ui的尺寸为k×s且Ui T×Ui=I,所述矩阵Vi和所述矩阵Λi的尺寸为s×s,Vi T×Vi=I;Wherein, the size of the matrix U i is k×s and U i T ×U i =I, the size of the matrix V i and the matrix Λ i is s×s, V i T ×V i =I;

所述根据分解处理结果建立所述邻域子立方体的线性动态系统模型(Ai,Bi,Ci),包括:The establishment of the linear dynamic system model (A i , B i , C i ) of the neighborhood sub-cube according to the decomposition processing results includes:

利用所述矩阵Ui、所述矩阵Λi和所述矩阵Vi建立所述邻域子立方体的线性动态系统模型(Ai,Bi,Ci),具体为:Using the matrix U i , the matrix Λ i and the matrix V i to establish the linear dynamic system model (A i , B i , C i ) of the neighborhood sub-cube, specifically:

Ci=Ui C i =U i

其中,Xi=ΛiVi TAmong them, X ii V i T ;

在计算Bi时,首先计算然后利用公式Gi=U′iΛ′iV′i分解矩阵Gi得到U′i和Λ′i,从而计算得到BiWhen calculating B i , first calculate Then use the formula G i = U' i Λ' i V' i to decompose the matrix G i to get U' i and Λ' i , and then calculate B i ;

其中,矩阵Ai的尺寸为s×s,矩阵Xi为系统状态变量矩阵,其尺寸为s×s,表示提取所述矩阵Xi的1至s行和2至s列,/>表示提取所述矩阵Xi的1至s行和1至s-1列,表示提取矩阵U′i的第1列,/>表示提取矩阵Λ′i的第1行第1列元素。Among them, the size of the matrix A i is s×s, the matrix Xi is the system state variable matrix, and its size is s×s, Indicates extracting the 1 to s rows and 2 to s columns of the matrix X i , /> means extracting the rows 1 to s and columns 1 to s-1 of the matrix Xi , Indicates the first column of the extraction matrix U′ i , /> Represents the element in the first row and the first column of the extraction matrix Λ' i .

进一步地,所述稀疏矩阵获取模块,具体设置为:Further, the sparse matrix acquisition module is specifically set as:

利用李雅普诺夫稳定条件和稀疏性假设条件通过如下方程得到矩阵和稀疏矩阵/>所述方程的优化解即为所述矩阵/>和所述稀疏矩阵/> Using Lyapunov stability conditions and sparsity assumptions, the matrix is obtained by the following equation and sparse matrix /> The optimal solution of the equation is the matrix and the sparse matrix />

||Yi||col→min,||Y i || col →min,

其中, in,

计算矩阵 Calculation matrix

所述稀疏矩阵由所述矩阵/>中与所述稀疏矩阵/>中不为0的列索引对应的行所组成。The sparse matrix by the matrix /> with the sparse matrix /> It consists of the rows corresponding to the column indexes that are not 0.

进一步地,所述稀疏矩阵处理模块,具体设置为:Further, the sparse matrix processing module is specifically set to:

建立零矩阵将矩阵/>中的各行填充到矩阵/>中,填充的位置为该行在矩阵/>中的行索引,填充后的/>即为对所述稀疏矩阵/>进行归一化处理后的归一化处理结果;build zero matrix will matrix /> fill each row in the matrix /> , fill the position for the row in the matrix /> The row index in the padded /> That is, for the sparse matrix /> The normalized processing result after the normalized processing is performed;

所述根据归一化处理结果得到降维后的所述各个邻域子立方体的邻域高光谱图像包括:The neighborhood hyperspectral image of each neighborhood sub-cube after dimensionality reduction is obtained according to the normalization processing result include:

通过如下公式得到降维后的所述各个邻域子立方体的邻域高光谱图像 The neighborhood hyperspectral image of each neighborhood sub-cube after dimensionality reduction is obtained by the following formula

与现有技术相比,本申请中的高光谱图像降维方法包括:利用滑动核获取所要处理的高光谱图像I中像素的邻域子立方体fi;对所获取到的各个邻域子立方体fi进行降维处理,得到降维后的所述各个邻域子立方体的邻域高光谱图像根据所述各个邻域子立方体在所述高光谱图像中的空间位置,将所述各个邻域子立方体的邻域高光谱图像/>重新排列,获得降维后的高光谱图像/>在本申请提供的技术方案中,在对高光谱图像进行降维时通过采用线性动态系统特征模型结合稀疏反馈优化技术,提取高光谱图像中信息量大、类别可分性好的波段,从而提高了高光谱图像的分类精度,同时降低了高光谱图像分类的计算量,解决了现有高光谱图像降维需要人工参与、没有充分利用高光谱图像的空间结构信息的问题。Compared with the prior art, the hyperspectral image dimensionality reduction method in the present application includes: using the sliding kernel to obtain the neighborhood sub-cube fi of the pixel in the hyperspectral image I to be processed; performing dimensionality reduction processing on each acquired neighborhood sub-cube fi , and obtaining the neighborhood hyperspectral image of each neighborhood sub-cube after dimensionality reduction According to the spatial position of each neighborhood sub-cube in the hyperspectral image, the neighborhood hyperspectral image of each neighborhood sub-cube/> Rearrange to obtain the hyperspectral image after dimensionality reduction /> In the technical solution provided by this application, when reducing the dimensionality of hyperspectral images, the linear dynamic system feature model combined with sparse feedback optimization technology is used to extract the bands with large amount of information and good category separability in hyperspectral images, thereby improving the classification accuracy of hyperspectral images and reducing the calculation amount of hyperspectral image classification.

附图说明Description of drawings

附图用来提供对本申请技术方案的进一步理解,并且构成说明书的一部分,与本申请的实施例一起用于解释本申请的技术方案,并不构成对本申请技术方案的限制。在附图中:The accompanying drawings are used to provide a further understanding of the technical solution of the present application, and constitute a part of the specification, and are used together with the embodiments of the present application to explain the technical solution of the present application, and do not constitute a limitation to the technical solution of the present application. In the attached picture:

图1为本申请中高光谱图像降维方法的处理流程图;Fig. 1 is the processing flowchart of hyperspectral image dimensionality reduction method in the present application;

图2为本申请中高光谱图像降维装置的结构示意图;FIG. 2 is a schematic structural diagram of a hyperspectral image dimensionality reduction device in the present application;

本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization, functional features and advantages of the present application will be further described in conjunction with the embodiments and with reference to the accompanying drawings.

具体实施方式Detailed ways

应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.

为使本申请的目的、技术方案和优点更加清楚明白,下文中将结合附图对本发明进行详细说明。需要说明的是,在不冲突的情况下,本申请中的特征可以相互任意组合。In order to make the purpose, technical solution and advantages of the present application clearer, the present invention will be described in detail below in conjunction with the accompanying drawings. It should be noted that, in the case of no conflict, the features in this application can be combined with each other arbitrarily.

图1为本申请中高光谱图像降维方法的处理流程图,如图1所示,包括以下步骤:Fig. 1 is the processing flowchart of hyperspectral image dimensionality reduction method in the present application, as shown in Fig. 1, comprises the following steps:

步骤101:利用滑动核获取所要处理的高光谱图像I中像素的邻域子立方体fiStep 101: Using the sliding kernel to obtain the neighborhood sub-cube f i of the pixel in the hyperspectral image I to be processed;

具体地,在该步骤中,采用空间域刚性分区方法,在高光谱图像I中,利用滑动核在图像整个空间域内沿着横向和纵向滑动,从而定义每个像素的空间局部邻域范围,其中高光谱图像被划分为邻域子立方体,其保留与每个像素相关联的全部光谱信息;其中,I的尺寸为m×n×k,m表示该高光谱图像的空间行数,n表示该高光谱图像的空间列数,k表示该高光谱图像的光谱维数,所使用的滑动核的尺寸为w×w,w为大于1的奇数,所获取的邻域子立方体表示为fi,i的值为不大于min(m-w+1,n-w+1)的正整数,fi的尺寸为w×w×k;Specifically, in this step, the spatial domain rigid partition method is adopted. In the hyperspectral image I, the sliding kernel is used to slide horizontally and vertically in the entire spatial domain of the image, thereby defining the spatial local neighborhood range of each pixel. The hyperspectral image is divided into neighborhood subcubes, which retain all the spectral information associated with each pixel; where the size of I is m×n×k, m represents the number of spatial rows of the hyperspectral image, n represents the number of spatial columns of the hyperspectral image, and k represents the spectral dimension of the hyperspectral image. The size of the sliding kernel is w×w, w is an odd number greater than 1, and the obtained neighborhood sub-cube is expressed as fi, the value of i is a positive integer not greater than min(m-w+1,n-w+1), fiThe size of is w×w×k;

在这里,可以定义w为3~21范围内的奇数。Here, w can be defined as an odd number within the range of 3-21.

步骤102:对所获取到的各个邻域子立方体fi进行降维处理,得到降维后的所述各个邻域子立方体的邻域高光谱图像 Step 102: Perform dimensionality reduction processing on each of the acquired neighborhood sub-cubes fi , and obtain neighborhood hyperspectral images of each neighborhood sub-cube after dimensionality reduction

具体地,该步骤可分为如下子步骤:Specifically, this step can be divided into the following sub-steps:

步骤1021:获取所述各个邻域子立方体fi进行平铺处理后所得到的矩阵Mi,其中,所述矩阵Mi的尺寸为k×s,其中s=w×w;Step 1021: Obtain the matrix M i obtained after tiling each neighborhood sub-cube fi, wherein the size of the matrix M i is k×s, where s=w×w;

具体地,将邻域子立方体fi沿着光谱维方向平铺为一个矩阵,即抽取出邻域子立方体中的每个像素作为一列构成一个矩阵MiSpecifically, the neighborhood sub-cube f i is tiled into a matrix along the direction of the spectral dimension, that is, each pixel in the neighborhood sub-cube is extracted as a column to form a matrix M i .

步骤1022:对所述矩阵Mi进行分解处理,根据分解处理结果建立所述邻域子立方体的线性动态系统模型(Ai,Bi,Ci);Step 1022: Decompose the matrix M i , and establish a linear dynamic system model (A i , B i , C i ) of the neighborhood sub-cube according to the result of the decomposition process;

具体地,在该步骤中,首先利用奇异值分解SDV通过公式(1)对矩阵Mi进行分解,得到分解后的矩阵Ui、矩阵Λi和矩阵ViSpecifically, in this step, the singular value decomposition SDV is first used to decompose the matrix M i through the formula (1), and the decomposed matrix U i , matrix Λ i and matrix V i are obtained:

Mi=UiΛiVi T (1)M i = U i Λ i V i T (1)

其中,矩阵Ui的尺寸为k×s且Ui T×Ui=I,矩阵Vi和矩阵Λi的尺寸为s×s,Vi T×Vi=I;Wherein, the size of matrix U i is k×s and U i T ×U i =I, the size of matrix V i and matrix Λ i is s×s, V i T ×V i =I;

其中,奇异值分解是线性代数和矩阵论中一种重要的矩阵分解法,适用于信号处理和统计学等领域。Among them, singular value decomposition is an important matrix decomposition method in linear algebra and matrix theory, which is suitable for signal processing and statistics and other fields.

之后,根据分解处理结果建立邻域子立方体的线性动态系统模型(Ai,Bi,Ci),具体包括:After that, the linear dynamic system model (A i , B i , C i ) of the neighborhood sub-cube is established according to the decomposition processing results, including:

利用矩阵Ui、矩阵Λi和矩阵Vi建立邻域子立方体的线性动态系统模型(Ai,Bi,Ci),具体为:首先利用如下公式(2)计算模型参数Ai和CiUsing the matrix U i , matrix Λ i and matrix V i to establish the linear dynamic system model (A i , B i , C i ) of the neighborhood sub-cube, specifically: first use the following formula (2) to calculate the model parameters A i and C i ,

公式(2)中的矩阵Ai的尺寸为s×s,矩阵Xi为系统状态变量矩阵,其尺寸为s×s,表示提取矩阵Xi的1至s行和2至s列,/>表示提取矩阵Xi的1至s行和1至s-1列,/>表示提取矩阵U′i的第1列,/>表示提取矩阵Λ′i的第1行第1列元素;The size of the matrix A i in the formula (2) is s×s, the matrix Xi is the system state variable matrix, and its size is s×s, Represents the 1 to s rows and 2 to s columns of the extraction matrix X i , /> Represents the 1 to s rows and 1 to s-1 columns of the extraction matrix X i , /> Indicates the first column of the extraction matrix U′ i , /> Represents the element in the first row and the first column of the extraction matrix Λ'i;

然后再使用如下公式(3)利用矩阵Ai和Xi的计算结果获得矩阵BiThen use the following formula (3) to obtain the matrix B i using the calculation results of the matrices A i and X i :

需要注意的是:在计算Bi时,先通过Ai和Xi计算得到Gi,然后对Gi进行分解得到U′i、Λ′i和V′i,从而得到矩阵Bi,其中,表示提取矩阵U′i的第1列,/>表示提取矩阵Λ′i的第1行第1列元素。It should be noted that when calculating Bi , first calculate G i through A i and Xi , and then decompose G i to get U′ i , Λ′ i and V′ i , so as to obtain matrix B i , where, Indicates the first column of the extraction matrix U′ i , /> Represents the element in the first row and the first column of the extraction matrix Λ' i .

步骤1023:根据所述线性动态系统模型(Ai,Bi,Ci)中的所述矩阵Ai和矩阵Bi获取矩阵Ci的稀疏矩阵 Step 1023: Obtain the sparse matrix of matrix C i according to the matrix A i and matrix B i in the linear dynamic system model (A i , B i , C i )

本步骤即利用稀疏状态反馈约束自动寻找信息量大的波段。This step is to use sparse state feedback constraints to automatically find bands with a large amount of information.

采用上述步骤1022计算得到的线性动态系统模型(Ai,Bi,Ci)矩阵表示邻域子立方体高光谱图像时,则原始邻域子立方体高光谱图像被描述为系统的输出变量yi=CiXi,其中,Xi为系统状态变量矩阵,尺寸为s×s,由公式(2)中计算得到;因此,要想得到降维后的邻域子立方体高光谱图像需要获得输出矩阵Ci的稀疏矩阵/>具体步骤如下:When the linear dynamic system model (A i , B i , C i ) matrix calculated in the above step 1022 is used to represent the neighborhood sub-cube hyperspectral image, the original neighborhood sub-cube hyperspectral image is described as the system output variable y i =C i X i , where Xi is the system state variable matrix with a size of s×s, which is calculated from the formula (2); therefore, to obtain the dimension-reduced neighborhood sub-cube hyperspectral image Need to obtain the sparse matrix of the output matrix C i /> Specific steps are as follows:

步骤一、基于稀疏状态反馈系统的李雅普诺夫稳定条件的建立;Step 1. Establishment of the Lyapunov stability condition based on the sparse state feedback system;

对原系统模型(Ai,Bi,Ci)采用状态反馈形成闭环系统,反馈矩阵为Ki,得到系统模型为(Ai-BiKi,Bi,Ci),根据李雅普诺夫稳定性原理,如果存在正定对称矩阵Pi,满足公式(4),则闭环系统矩阵Ai-BiKi是稳定的;For the original system model (A i , B i , C i ) adopt state feedback to form a closed-loop system, the feedback matrix is K i , and the system model is (A i -B i K i , B i , C i ), according to the Lyapunov stability principle, if there is a positive definite symmetric matrix P i that satisfies the formula (4), then the closed-loop system matrix A i -B i K i is stable;

将公式(4)左右两边都乘以Pi -1并进行整理得到公式(5),Multiply the left and right sides of formula (4) by P i -1 and sort them out to get formula (5),

令矩阵Pi -1=Wi,且矩阵Wi的尺寸为k×k,同时令Yi=Ki W,整理公式(5)得到李雅普诺夫稳定性条件如公式(6)所述:Let the matrix P i -1 =W i , and The size of the matrix W i is k×k, and Y i =K i W is set at the same time, and formula (5) is arranged to obtain the Lyapunov stability condition as described in formula (6):

步骤二、矩阵Ci的稀疏性确定;Step 2, the sparsity of matrix C i is determined;

||Ci||col→min (7)||C i || col → min (7)

其中,公式(7)表示矩阵Ci的列稀疏表示;in, Equation (7) represents the column sparse representation of matrix C i ;

步骤三、采用凸函数优化求得稀疏性矩阵CiStep 3, using convex function optimization to obtain the sparsity matrix C i ;

根据公式(8)可以得到矩阵和稀疏的矩阵/>且/>中存在全为0的列,然后计算最终求得稀疏矩阵/>为矩阵/>中与/>中不为0的列索引对应的行组成。According to the formula (8), the matrix can be obtained and sparse matrices /> and/> There is a column with all 0 in it, and then calculate Finally get the sparse matrix /> for the matrix /> in and /> The row composition corresponding to the column index that is not 0.

步骤1024:对所述稀疏矩阵进行归一化处理,根据归一化处理结果得到降维后的所述各个邻域子立方体的邻域高光谱图像/> Step 1024: To the sparse matrix Perform normalization processing, and obtain the neighborhood hyperspectral image of each neighborhood sub-cube after dimensionality reduction according to the normalization processing result

由于凸函数优化方法是自动求解过程,没有人为设置参数,通过步骤1023得到的的维数不同,导致降维后像素间的光谱维数不同;而且,即使像素间的光谱维数相同,而光谱信息是来自于不同的波段,无法进行像素间的比较计算无法实现图像的分类处理,因此,在完成数据降维后,需要进行归一化处理。Since the convex function optimization method is an automatic solution process, there is no artificial setting of parameters, and the obtained by step 1023 The dimensionality of the pixels is different, resulting in different spectral dimensions between pixels after dimensionality reduction; moreover, even if the spectral dimensions between pixels are the same, but the spectral information comes from different bands, the comparison calculation between pixels cannot be performed and the image classification processing cannot be realized. Therefore, after the data dimensionality reduction is completed, normalization processing is required.

具体地,归一化处理方法为:求步骤1023得到的矩阵的每列和,令/>表示每列和的最大值,将矩阵/>中列和的值小于/>的列设置为0,其中σ的取值范围为0<σ<0.5,记下不为0的列索引;此时,稀疏矩阵/>为矩阵/>中上述索引所对应的行组成;建立零矩阵/>将矩阵/>中的各行填充到矩阵/>中,填充的位置为该行在矩阵/>中的行索引,填充后的/>即为对所述稀疏矩阵/>进行归一化处理后的归一化处理结果;计算邻域子立方体像素/>完成像素归一化,最终实现高光谱图像的自动降维。Specifically, the normalization processing method is: find the matrix obtained in step 1023 The sum of each column, let /> Indicates the maximum value of the sum of each column, the matrix /> The value of the column sum is less than /> Set the column of σ to 0, where the value range of σ is 0<σ<0.5, write down the column index that is not 0; at this time, the sparse matrix /> for the matrix /> Composition of rows corresponding to the above indexes in will matrix /> fill the rows in the matrix /> , fill the position for the row in the matrix /> The row index in the padded /> That is, for the sparse matrix /> The normalized processing result after normalization processing; calculate the neighborhood sub-cube pixels /> Complete pixel normalization, and finally realize automatic dimension reduction of hyperspectral images.

步骤103:根据所述各个邻域子立方体在所述高光谱图像中的空间位置,将所述各个邻域子立方体的邻域高光谱图像重新排列,获得降维后的高光谱图像/> Step 103: According to the spatial position of each neighborhood sub-cube in the hyperspectral image, the neighborhood hyperspectral image of each neighborhood sub-cube Rearrange to obtain the hyperspectral image after dimensionality reduction />

利用步骤102获取每个邻域子立方体的降维结果按照每个邻域子立方体在原始整个高光谱图像I的空间位置将/>重新排列到一起,从而最终获得降维后的高光谱遥感图像/> Use step 102 to obtain the dimensionality reduction result of each neighborhood sub-cube According to the spatial position of each neighborhood sub-cube in the original whole hyperspectral image I will /> Rearrange them together to finally obtain the dimensionality-reduced hyperspectral remote sensing image/>

与现有技术相比较,本申请的有益效果在于:Compared with the prior art, the beneficial effects of the present application are:

(1)本申请有效地充分利用空间和光谱信息,建立基于线性动态系统模型的一体化特征模型,更准确有效地实现高光谱图像的降维;(1) This application effectively makes full use of spatial and spectral information, establishes an integrated feature model based on a linear dynamic system model, and more accurately and effectively realizes dimensionality reduction of hyperspectral images;

(2)本申请建立高光谱图像的线性动态一体化特征模型,有效地利用了稀疏反馈技术,充分考虑了高光谱图像中空间和光谱特征的整体关系,利用凸函数优化及约束条件保留了信息量大、可分性强的光谱信息,弱化甚至删除了冗余的光谱信息,实现高光谱遥感图像的自动降维;(2) This application establishes a linear dynamic integrated feature model of hyperspectral images, effectively utilizes sparse feedback technology, fully considers the overall relationship between spatial and spectral features in hyperspectral images, uses convex function optimization and constraints to retain spectral information with large amount of information and strong separability, weakens or even deletes redundant spectral information, and realizes automatic dimensionality reduction of hyperspectral remote sensing images;

(3)本申请对于提高高光谱图像的分类精度,降低高光谱图像分类方法的计算量,提高高光谱图像在工业、农业和航空航天领域中的应用水平都具有更实际的应用价值和需求。(3) This application has more practical application value and demand for improving the classification accuracy of hyperspectral images, reducing the calculation amount of hyperspectral image classification methods, and improving the application level of hyperspectral images in the fields of industry, agriculture and aerospace.

图2为本申请中高光谱图像降维装置的结构示意图。如图2所示,该高光谱图像降维装置包括:FIG. 2 is a schematic structural diagram of a hyperspectral image dimensionality reduction device in the present application. As shown in Figure 2, the hyperspectral image dimensionality reduction device includes:

邻域子立方体获取模块,设置为利用滑动核获取所要处理的高光谱图像I中像素的邻域子立方体fi,其中,I的尺寸为m×n×k,m表示所述高光谱图像的空间行数,n表示所述高光谱图像的空间列数,k表示所述高光谱图像的光谱维数,所述滑动核的尺寸为w×w,w为大于1的奇数,i的值为不大于min(m-w+1,n-w+1)的正整数,fi的尺寸为w×w×k;The neighborhood sub-cube acquisition module is configured to use the sliding kernel to acquire the neighborhood sub-cube f i of the pixels in the hyperspectral image I to be processed, wherein the size of I is m×n×k, m represents the number of spatial rows of the hyperspectral image, n represents the number of spatial columns of the hyperspectral image, k represents the spectral dimension of the hyperspectral image, the size of the sliding kernel is w×w, w is an odd number greater than 1, and the value of i is a positive integer not greater than min(m-w+1, n-w+1) , the size of f i is w×w×k;

邻域高光谱图像生成模块,设置为对所获取到的各个邻域子立方体fi进行降维处理,得到降维后的所述各个邻域子立方体的邻域高光谱图像 The neighborhood hyperspectral image generation module is configured to perform dimensionality reduction processing on each of the acquired neighborhood sub-cubes fi to obtain the neighborhood hyperspectral image of each neighborhood sub-cube after dimensionality reduction

邻域高光谱图像重排模块,设置为根据所述各个邻域子立方体在所述高光谱图像中的空间位置,将所述各个邻域子立方体的邻域高光谱图像重新排列,获得降维后的高光谱图像/> The neighborhood hyperspectral image rearrangement module is configured to, according to the spatial position of each neighborhood sub-cube in the hyperspectral image, the neighborhood hyperspectral image of each neighborhood sub-cube Rearrange to obtain the hyperspectral image after dimensionality reduction />

具体地,所述邻域高光谱图像生成模块,包括:Specifically, the neighborhood hyperspectral image generation module includes:

邻域子立方体矩阵生成模块,设置为获取所述各个邻域子立方体fi进行平铺处理后所得到的矩阵Mi,其中,所述矩阵Mi的尺寸为k×s,其中s=w×w;The neighborhood sub-cube matrix generating module is configured to obtain the matrix M i obtained after tiling each neighborhood sub-cube f i , wherein the size of the matrix M i is k×s, where s=w×w;

线性动态系统模型建立模块,设置为对所述矩阵Mi进行分解处理,根据分解处理结果建立所述邻域子立方体的线性动态系统模型(Ai,Bi,Ci);A linear dynamic system model building module, configured to decompose the matrix M i , and establish a linear dynamic system model (A i , B i , C i ) of the neighborhood sub-cube according to the decomposition processing result;

稀疏矩阵获取模块,设置为根据所述线性动态系统模型(Ai,Bi,Ci)中的所述矩阵Ai和矩阵Bi获取矩阵Ci的稀疏矩阵 The sparse matrix acquisition module is configured to acquire the sparse matrix of matrix C i according to the matrix A i and matrix B i in the linear dynamic system model (A i , B i , C i )

稀疏矩阵处理模块,设置为对所述稀疏矩阵进行归一化处理,根据归一化处理结果得到降维后的所述各个邻域子立方体的邻域高光谱图像/> Sparse matrix processing module, set to process the sparse matrix Perform normalization processing, and obtain the neighborhood hyperspectral image of each neighborhood sub-cube after dimensionality reduction according to the normalization processing result

其中,所述对所述矩阵Mi进行分解处理,包括:Wherein, the decomposing process on the matrix M i includes:

利用奇异值分解SDV通过如下公式对所述矩阵Mi进行分解,得到分解后的矩阵Ui、矩阵Λi和矩阵ViUsing the singular value decomposition SDV to decompose the matrix M i through the following formula, the decomposed matrix U i , matrix Λ i and matrix V i are obtained:

Mi=UiΛiVi TM i = U i Λ i V i T ;

其中,所述矩阵Ui的尺寸为k×s且Ui T×Ui=I,所述矩阵Vi和所述矩阵Λi的尺寸为s×s,Vi T×Vi=I;Wherein, the size of the matrix U i is k×s and U i T ×U i =I, the size of the matrix V i and the matrix Λ i is s×s, V i T ×V i =I;

所述根据分解处理结果建立所述邻域子立方体的线性动态系统模型(Ai,Bi,Ci),包括:The establishment of the linear dynamic system model (A i , B i , C i ) of the neighborhood sub-cube according to the decomposition processing result includes:

利用所述矩阵Ui、所述矩阵Λi和所述矩阵Vi建立所述邻域子立方体的线性动态系统模型(Ai,Bi,Ci),具体为:Using the matrix U i , the matrix Λ i and the matrix V i to establish the linear dynamic system model (A i , B i , C i ) of the neighborhood sub-cube, specifically:

Ci=Ui C i =U i

其中,Xi=ΛiVi TAmong them, X i = Λ i V i T ;

在计算Bi时,首先计算然后利用公式Gi=U′iΛ′iV′i分解矩阵Gi得到U′i和Λ′i,从而计算得到BiWhen calculating B i , first calculate Then use the formula G i = U' i Λ' i V' i to decompose the matrix G i to get U' i and Λ' i , and then calculate B i ;

其中,矩阵Ai的尺寸为s×s,矩阵Xi为系统状态变量矩阵,其尺寸为s×s,表示提取所述矩阵Xi的1至s行和2至s列,/>表示提取所述矩阵Xi的1至s行和1至s-1列,表示提取矩阵U′i的第1列,/>表示提取矩阵Λ′i的第1行第1列元素。Among them, the size of the matrix A i is s×s, the matrix Xi is the system state variable matrix, and its size is s×s, Indicates extracting the 1 to s rows and 2 to s columns of the matrix X i , /> means extracting the rows 1 to s and columns 1 to s-1 of the matrix Xi , Indicates the first column of the extraction matrix U′ i , /> Represents the element in the first row and the first column of the extraction matrix Λ' i .

具体地,所述稀疏矩阵获取模块,具体设置为:Specifically, the sparse matrix acquisition module is specifically set to:

利用李雅普诺夫稳定条件和稀疏性假设条件通过如下方程得到矩阵和稀疏矩阵/>所述方程的优化解即为所述矩阵/>和所述稀疏矩阵/> Using Lyapunov stability conditions and sparsity assumptions, the matrix is obtained by the following equation and sparse matrix /> The optimal solution of the equation is the matrix and the sparse matrix />

||Yi||col→min,||Y i || col →min,

其中, in,

计算矩阵 Calculation matrix

所述稀疏矩阵由所述矩阵/>中与所述稀疏矩阵/>中不为0的列索引对应的行所组成。The sparse matrix by the matrix /> with the sparse matrix /> It consists of the rows corresponding to the column indexes that are not 0.

具体地,所述稀疏矩阵处理模块,具体设置为:Specifically, the sparse matrix processing module is specifically set to:

建立零矩阵将矩阵/>中的各行填充到矩阵/>中,填充的位置为该行在矩阵/>中的行索引,填充后的/>即为对所述稀疏矩阵/>进行归一化处理后的归一化处理结果;build zero matrix will matrix /> fill the rows in the matrix /> , fill the position for the row in the matrix /> The row index in the padded /> That is, for the sparse matrix /> The normalized processing result after the normalized processing is performed;

所述根据归一化处理结果得到降维后的所述各个邻域子立方体的邻域高光谱图像包括:The neighborhood hyperspectral image of each neighborhood sub-cube after dimensionality reduction is obtained according to the normalization processing result include:

通过如下公式得到降维后的所述各个邻域子立方体的邻域高光谱图像 The neighborhood hyperspectral image of each neighborhood sub-cube after dimensionality reduction is obtained by the following formula

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such a process, method, article or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.

上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the above embodiments of the present application are for description only, and do not represent the advantages and disadvantages of the embodiments.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is a better implementation. Based on such an understanding, the technical solution of the present application can be embodied in the form of a software product in essence or the part that contributes to the prior art. The computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), and includes several instructions to make a terminal device (which can be a mobile phone, computer, server, air conditioner, or network equipment, etc.) execute the method described in each embodiment of the application.

虽然本发明所揭露的实施方式如上,但所述的内容仅为便于理解本发明而采用的实施方式,并非用以限定本发明。任何本发明所属领域内的技术人员,在不脱离本发明所揭露的精神和范围的前提下,可以在实施的形式及细节上进行任何的修改与变化,但本发明的专利保护范围,仍须以所附的权利要求书所界定的范围为准。Although the embodiments disclosed in the present invention are as above, the described content is only an embodiment adopted for understanding the present invention, and is not intended to limit the present invention. Any person skilled in the field of the present invention, without departing from the spirit and scope disclosed by the present invention, can make any modifications and changes in the form and details of the implementation, but the patent protection scope of the present invention must still be based on the scope defined in the appended claims.

以上仅为本申请的可选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。The above are only optional embodiments of the present application, and do not limit the patent scope of the present application. Any equivalent structure or equivalent process conversion made by using the description of the application and the contents of the accompanying drawings, or directly or indirectly used in other related technical fields, are all included in the scope of patent protection of the present application.

Claims (6)

1. The hyperspectral image dimension reduction method is characterized by comprising the following steps of:
acquiring a neighborhood sub-cube f of a pixel in a hyperspectral image I to be processed using a sliding kernel i Wherein the size of I is m multiplied by n multiplied by k, m represents the number of spatial lines of the hyperspectral image, n represents the number of spatial columns of the hyperspectral image, k represents the spectral dimension of the hyperspectral image, the size of the sliding kernel is w multiplied by w, w is an odd number greater than 1, the value of I is a positive integer not greater than min (m-w+1, n-w+1), f i Is w×w×k;
for each acquired neighborhood sub-cube f i Performing dimension reduction processing to obtain a neighborhood hyperspectral image of each neighborhood subcube after dimension reduction
According to the spatial position of each neighborhood subcube in the hyperspectral image, the neighborhood hyperspectral image of each neighborhood subcubeRearranging to obtain the hyperspectral image +.>
Wherein the pair of acquired respective neighborhood subcubes f i Performing dimension reduction processing to obtain a neighborhood hyperspectral image of each neighborhood subcube after dimension reductionThe method comprises the following steps:
acquiring each neighborhood subcube f i Matrix M obtained after tiling i Wherein the matrix M i Is k×s, where s=w×w;
for the matrix M i Performing decomposition processing, and establishing a linear dynamic system model (A) of the neighborhood subcube according to the decomposition processing result i ,B i ,C i );
According to the linear dynamic system model (A i ,B i ,C i ) In said matrix A i Sum matrix B i Acquisition matrix C i Is a sparse matrix of (2)
For the sparse matrixCarrying out normalization processing, and obtaining the neighborhood hyperspectral image ++of each neighborhood subcubes after dimension reduction according to the normalization processing result>
Wherein said pair of said matrices M i The decomposing treatment is carried out, which comprises the following steps:
decomposing the SDV with singular values to the matrix M by the following formula i Decomposing to obtain a decomposed matrix U i Matrix lambda i Sum matrix V i
M i =U i Λ i V i T
Wherein the matrix U i Is k x s and U i T ×U i =i, the matrix V i And the matrix lambda i Is s x s, V i T ×V i =I;
The linear dynamic system model (A) of the neighborhood subcube is built according to the decomposition processing result i ,B i ,C i ) The method comprises the following steps:
by using the matrix U i The matrix lambda i And the matrix V i A linear dynamic system model (A i ,B i ,C i ) The method specifically comprises the following steps:
C i =U i
wherein X is i =Λ i V i T
In calculation B i When first calculateThen utilize formula G i =U i 'Λ' i V i ' decomposition matrix G i Obtaining U' i Sum Λ'. i Thereby calculating to obtain B i
Wherein matrix A i Is s X s, matrix X i Is a system state variable matrix, the size of which is s x s,representing extraction of the matrix X i 1 to s rows and 2 to s columns, < ->Representing extraction of the matrix X i 1 to s rows and 1 to s-1 columns,/->Representing an extraction matrix U i ' column 1>Representing the extraction matrix Λ' i 1 st row 1 st column element of (c).
2. The method according to claim 1, characterized in that the method according to the linear dynamic system model (a i ,B i ,C i ) In said matrix A i Sum matrix B i Acquisition matrix C i Is a sparse matrix of (2)Comprising the following steps:
matrix is obtained by using Lyapunov stabilization condition and sparsity assumption condition through the following equationAnd sparse matrix->The optimal solution of the equation is the matrix +.>And the sparse matrix->
||Y i || col →min,
s.t.A i W i +W i A i T -B i Y i -Y i T B i T <0
Wherein W is i >0,W i =W i T
Computing a matrix
The sparse matrixFrom the matrix->Is equal to the sparse matrix->A row corresponding to a column index of not 0.
3. The method of claim 2, wherein the pair of sparse matricesThe normalization processing is carried out, which comprises the following steps:
establishing a zero matrixMatrix->Is filled into the matrix +.>The filled position is the row in the matrix +.>Row index of (2), filled +.>Namely +.>Normalization processing results after normalization processing;
obtaining the neighborhood hyperspectral image of each neighborhood subcube after dimension reduction according to the normalization processing resultThe method comprises the following steps:
obtaining the neighborhood hyperspectral image of each neighborhood subcube after dimension reduction through the following formula
4. A hyperspectral image dimension reduction device, comprising:
a neighborhood subcube acquisition module configured to acquire a neighborhood subcube f of a pixel in the hyperspectral image I to be processed using a sliding kernel i Wherein the dimension of I is m multiplied by n multiplied by k, m represents the number of spatial lines of the hyperspectral image, and n represents the heightThe number of spatial columns of the spectral image, k represents the spectral dimension of the hyperspectral image, the size of the sliding kernel is w×w, w is an odd number greater than 1, i is a positive integer not greater than min (m-w+1, n-w+1), f i Is w×w×k;
a neighborhood hyperspectral image generation module configured to generate, for each acquired neighborhood subcube f i Performing dimension reduction processing to obtain a neighborhood hyperspectral image of each neighborhood subcube after dimension reduction
A neighborhood hyperspectral image rearrangement module configured to rearrange neighborhood hyperspectral images of the respective neighborhood subcubes according to spatial positions of the respective neighborhood subcubes in the hyperspectral imagesRearranging to obtain the hyperspectral image +.>
The neighborhood hyperspectral image generation module comprises:
a neighborhood subcube matrix generation module configured to obtain the neighborhood subcubes f i Matrix M obtained after tiling i Wherein the matrix M i Is k×s, where s=w×w;
a linear dynamic system model building module configured to build the matrix M i Performing decomposition processing, and establishing a linear dynamic system model (A) of the neighborhood subcube according to the decomposition processing result i ,B i ,C i );
A sparse matrix acquisition module arranged to acquire a sparse matrix based on the linear dynamic system model (A i ,B i ,C i ) In said matrix A i Sum matrix B i Acquisition matrix C i Is a sparse matrix of (2)
A sparse matrix processing module configured to process the sparse matrixCarrying out normalization processing, and obtaining the neighborhood hyperspectral image ++of each neighborhood subcubes after dimension reduction according to the normalization processing result>
Wherein said pair of said matrices M i Performing decomposition processing, including:
decomposing the SDV with singular values to the matrix M by the following formula i Decomposing to obtain a decomposed matrix U i Matrix lambda i Sum matrix V i
M i =U i Λ i V i T
Wherein the matrix U i Is k x s and U i T ×U i =i, the matrix V i And the matrix lambda i Is s x s, V i T ×V i =I;
The linear dynamic system model (A) of the neighborhood subcube is built according to the decomposition processing result i ,B i ,C i ) Comprising:
by using the matrix U i The matrix lambda i And the matrix V i A linear dynamic system model (A i ,B i ,C i ) The method specifically comprises the following steps:
C i =U i
wherein X is i =Λ i V i T
In calculation B i When first calculateThen utilize formula G i =U i 'Λ' i V i ' decomposition matrix G i Obtaining U' i Sum Λ'. i Thereby calculating to obtain B i
Wherein matrix A i Is s X s, matrix X i Is a system state variable matrix, the size of which is s x s,representing extraction of the matrix X i 1 to s rows and 2 to s columns, < ->Representing extraction of the matrix X i 1 to s rows and 1 to s-1 columns,/->Representing the extraction matrix U' i ' column 1>Representing the extraction matrix Λ' i 1 st row 1 st column element of (c).
5. The apparatus of claim 4, wherein the sparse matrix acquisition module is specifically configured to:
matrix is obtained by using Lyapunov stabilization condition and sparsity assumption condition through the following equationAnd sparse matrix->The optimal solution of the equation is the matrix +.>And the sparse matrix->
||Y i || col →min,
s.t.A i W i +W i A i T -B i Y i -Y i T B i T <0
Wherein W is i >0,W i =W i T
Computing a matrix
The sparse matrixFrom the matrix->Is equal to the sparse matrix->A row corresponding to a column index of not 0.
6. The apparatus of claim 5, wherein the sparse matrix processing module is specifically configured to:
establishing a zero matrixMatrix->Is filled into the matrix +.>The filled position is the row in the matrix +.>Row index of (2), filled +.>Namely +.>Normalization processing results after normalization processing;
obtaining the neighborhood hyperspectral image of each neighborhood subcube after dimension reduction according to the normalization processing resultComprising the following steps:
obtaining the neighborhood hyperspectral image of each neighborhood subcube after dimension reduction through the following formula
CN201911129254.2A 2019-11-18 2019-11-18 Hyperspectral image dimension reduction method and device Active CN110992245B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911129254.2A CN110992245B (en) 2019-11-18 2019-11-18 Hyperspectral image dimension reduction method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911129254.2A CN110992245B (en) 2019-11-18 2019-11-18 Hyperspectral image dimension reduction method and device

Publications (2)

Publication Number Publication Date
CN110992245A CN110992245A (en) 2020-04-10
CN110992245B true CN110992245B (en) 2023-07-25

Family

ID=70085048

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911129254.2A Active CN110992245B (en) 2019-11-18 2019-11-18 Hyperspectral image dimension reduction method and device

Country Status (1)

Country Link
CN (1) CN110992245B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114037899B (en) * 2021-12-01 2024-09-06 福州大学 Hyperspectral remote sensing image classification-oriented radial accumulation position coding system based on VIT

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103440505A (en) * 2013-09-16 2013-12-11 重庆邮电大学 Spatial neighborhood information weighted hyper-spectral remote sensing image classification method
CN108182449A (en) * 2017-12-25 2018-06-19 南京信息工程大学 A kind of hyperspectral image classification method
CN110263777A (en) * 2019-06-26 2019-09-20 中国人民解放军火箭军工程大学 Object detection method and system based on the locality preserving projections algorithm that empty spectrum combines

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8660360B1 (en) * 2012-08-03 2014-02-25 Raytheon Company System and method for reduced incremental spectral clustering

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103440505A (en) * 2013-09-16 2013-12-11 重庆邮电大学 Spatial neighborhood information weighted hyper-spectral remote sensing image classification method
CN108182449A (en) * 2017-12-25 2018-06-19 南京信息工程大学 A kind of hyperspectral image classification method
CN110263777A (en) * 2019-06-26 2019-09-20 中国人民解放军火箭军工程大学 Object detection method and system based on the locality preserving projections algorithm that empty spectrum combines

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Zhangyang Wang 等.Deep Dual-Domain Based Fast Restoration of JPEG-Compressed Images.《arxiv.org/pdf/1601.04149.pdf》.2016,全文. *

Also Published As

Publication number Publication date
CN110992245A (en) 2020-04-10

Similar Documents

Publication Publication Date Title
CN107248144B (en) An image denoising method based on compressed convolutional neural network
Yang et al. Multitask dictionary learning and sparse representation based single-image super-resolution reconstruction
DE202017104127U1 (en) Super pixels for folding neural networks
Xu et al. Fast tensor nuclear norm for structured low-rank visual inpainting
Xue et al. Nonconvex tensor rank minimization and its applications to tensor recovery
Li et al. Non‐local image inpainting using low‐rank matrix completion
Feng et al. Robust block tensor principal component analysis
CN106327422B (en) A kind of image stylized reconstruction method and device
CN113902622B (en) Spectrum super-resolution method based on depth priori joint attention
CN109657081A (en) Distributed approach, system and the medium of EO-1 hyperion satellite remote sensing date
He et al. Remote sensing image super-resolution using deep–shallow cascaded convolutional neural networks
CN109344966A (en) A method for efficient tensorization of fully connected neural networks
Zeng et al. Densely connected transformer with linear self-attention for lightweight image super-resolution
CN110992245B (en) Hyperspectral image dimension reduction method and device
CN103632372A (en) Video saliency image extraction method
Suryanarayana et al. Deep Learned Singular Residual Network for Super Resolution Reconstruction.
CN116051896A (en) Hyperspectral image classification method of lightweight mixed tensor neural network
CN107369139A (en) A kind of noise image deblurring method being fitted based on blended data with weighting total variation
Ma et al. Hybrid attention transformer with re-parameterized large kernel convolution for image super-resolution
CN112215241A (en) Image feature extraction device based on small sample learning
CN109522918B (en) Hyperspectral image feature extraction method based on improved local singular spectrum analysis
CN117876240A (en) Remote sensing image space-time fusion method based on multi-scale and mixed convolution network
CN114565772B (en) Method and device for extracting set features, electronic equipment and storage medium
Zhao et al. Learning-based compressed sensing for infrared image super resolution
Qiu et al. Adacs: Adaptive compressive sensing with restricted isometry property-based error-clamping

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant