Filter löschen
Filter löschen

How can i plot hyperspectral data matrix?

1 Ansicht (letzte 30 Tage)
vittorio calbucci
vittorio calbucci am 18 Dez. 2017
Kommentiert: Walter Roberson am 18 Dez. 2017
I would like to rebuild the image from hyperspectral data matrix. My data matrix are made of 264 spectra of 248 values of lambda. The the image i would like to build has to be of 33*8 pixels where every pixel is a spectrum. Thank's

Antworten (1)

Walter Roberson
Walter Roberson am 18 Dez. 2017
You can reshape() to [33, 8, 248], to get an array of pixels with 248 channels per pixel, but there is no way to plot in 248 dimensions.
Perhaps it would be acceptable to use volume visualization techniques, such as
volumeViewer( reshape(YourData, 33, 8, []) )
  6 Kommentare
vittorio calbucci
vittorio calbucci am 18 Dez. 2017
The results it's not really what i'm looking for and i got an error related to the image function. in my case it will be better to reshape the image in this way (248,33,8) but i already receive an error on the imagesc function
Walter Roberson
Walter Roberson am 18 Dez. 2017
temp1 = reshape(YourArray, 8, 33, []);
temp2 = std(temp1, 0, 3);
imagesc( temp2 );
colormap(gray(256))

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

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

Start Hunting!

Translated by