how can i write a code in order to get spectral reflectance plot of a pixel in a hyperspectral image
이전 댓글 표시
I want to get the reflectance profile of a pixel.how can the code be written for a hypeerion hyperspectral data
댓글 수: 1
Shrutika Sawant
2017년 2월 27일
편집: Walter Roberson
2017년 2월 27일
Use the following code
reflectance = squeeze(img(i, j,:));
reflectance = reflectance/max(reflectance(:));
plot(reflectance)
답변 (1개)
Image Analyst
2014년 1월 4일
Assuming you have a 3D matrix where each image plane is the scene taken at a different wavelength, you can just get a spectrum like this:
theSpectrum = hyperSpectralImage3D(row, column, :);
댓글 수: 7
ALINA
2014년 1월 5일
Image Analyst
2014년 1월 5일
I didn't use any function. What function are you talking about? Just specify some row, and some column, like row 42 and column 73, and index into your array. What is your array called? Is it called A, M, I, hyperSpectralImage3D, grayImage, multiSpecImage, or what? I have no idea. But whatever it's called, just use that row and that column and use semicolon to extract out all the spectral values:
B=A(42,73,:);
ALINA
2014년 1월 13일
편집: Walter Roberson
2016년 2월 27일
Image Analyst
2014년 1월 13일
Well, what values does R have? Do they look like normal, regular numbers? R is not empty or complex or anything is it?
ALINA
2014년 1월 14일
편집: Walter Roberson
2016년 2월 27일
yanjie qi
2016년 2월 27일
I tried it was right, and I also ploted it.
Image Analyst
2017년 3월 8일
ALINA, I'm not sure how to answer. Please provide more info.
카테고리
도움말 센터 및 File Exchange에서 Process Point Clouds에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!