How can i plot hyperspectral data matrix?
이전 댓글 표시
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
답변 (1개)
Walter Roberson
2017년 12월 18일
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
vittorio calbucci
2017년 12월 18일
Walter Roberson
2017년 12월 18일
volumeViewer is part of the Image Processing Toolbox.
It would help if you were to link to a sample of what you would like the result to look like.
vittorio calbucci
2017년 12월 18일
Walter Roberson
2017년 12월 18일
imagesc( std(reshape(YourArray, 8, 33, []),3))
colormap(gray(256))
vittorio calbucci
2017년 12월 18일
Walter Roberson
2017년 12월 18일
temp1 = reshape(YourArray, 8, 33, []);
temp2 = std(temp1, 0, 3);
imagesc( temp2 );
colormap(gray(256))
카테고리
도움말 센터 및 File Exchange에서 Hyperspectral Image Processing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!