how can i write a code in order to get spectral reflectance plot of a pixel in a hyperspectral image
Mostrar comentarios más antiguos
I want to get the reflectance profile of a pixel.how can the code be written for a hypeerion hyperspectral data
1 comentario
Shrutika Sawant
el 27 de Feb. de 2017
Editada: Walter Roberson
el 27 de Feb. de 2017
Use the following code
reflectance = squeeze(img(i, j,:));
reflectance = reflectance/max(reflectance(:));
plot(reflectance)
Respuestas (1)
Image Analyst
el 4 de En. de 2014
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 comentarios
ALINA
el 5 de En. de 2014
Image Analyst
el 5 de En. de 2014
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
el 13 de En. de 2014
Editada: Walter Roberson
el 27 de Feb. de 2016
Image Analyst
el 13 de En. de 2014
Well, what values does R have? Do they look like normal, regular numbers? R is not empty or complex or anything is it?
ALINA
el 14 de En. de 2014
Editada: Walter Roberson
el 27 de Feb. de 2016
yanjie qi
el 27 de Feb. de 2016
I tried it was right, and I also ploted it.
Image Analyst
el 8 de Mzo. de 2017
ALINA, I'm not sure how to answer. Please provide more info.
Categorías
Más información sobre Process Point Clouds en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!