PCA on a 3d Matrix

41 ビュー (過去 30 日間)
Micheal Dennington
Micheal Dennington 2020 年 6 月 20 日
コメント済み: Sanchay Mukherjee 2022 年 1 月 31 日
Hi. I have a data set of http://www.ehu.eus/ccwintco/index.php/Hyperspectral_Remote_Sensing_Scenes Indian Pines. Data set is a 145x145x200 matrix that 145x145 represents spatial dimensions, 200 represents feature dimensions. I wnat to do PCA dimension reduction but I can't figure out how to deal 3d matrix. If you could help me I would be appreciated. Thanks.
  3 件のコメント
Micheal Dennington
Micheal Dennington 2020 年 6 月 21 日
Yeah I saw that example but I couldn't understand that very much.
Sanchay Mukherjee
Sanchay Mukherjee 2022 年 1 月 31 日
Hi Michael,
Did you figure out hte solution? I am trying to do a similar thing. I have a matrix of 200*500*3, where 200*500 is the data for corresponding 3 features.

サインインしてコメントする。

回答 (1 件)

Subhadeep Koley
Subhadeep Koley 2020 年 11 月 16 日
You can use the hyperpca function to achieve the same.
% Definenumber of principal components you require
numComponents = 10;
% Perform PCA transform
outputDataCube = hyperpca(indianPinesMatrix, numComponents);
The above mentioned feture comes under Image Processing Toolbox's Hyperspectral Imaging Library support package, and can be downloaded from here. For more information on Hyperspectral Imaging Library see the documentation.

カテゴリ

Help Center および File ExchangeDimensionality Reduction and Feature Extraction についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by