How can I find 2D matrix of each channel in hypercube of dimensions M*N*D
조회 수: 2 (최근 30일)
이전 댓글 표시
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1101235/image.png)
In the code we have (472*475*20) 3D array and if I view only one channel then the image is not correct. The image in hyperspectral viewer and the result is attached in the screenshot below
2D one layer Image in hyperspectral viewer:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1101240/image.png)
One channel image using code
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1101245/image.png)
댓글 수: 0
답변 (2개)
Image Analyst
2022년 8월 18일
I can't run an image. I can only run code if it's in text form.
It looks like you have a lot of salt and pepper noise. You can remove it with a modified median filter like I've attached. Once removed, imagesc should scale it better. Alternatively you can use imadjust or imadjustn.
If you have any more questions, then attach your data and code to read it in with the paperclip icon after you read this:
참고 항목
카테고리
Help Center 및 File Exchange에서 Hyperspectral Image Processing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!