![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1554207/image.png)
How to plot a hyperspectral spectrum (Wavelength to reflectance) for a pixel or image segment in MATLAB?
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Can it be possible to get the wavelength vs reflectance plot using any image in MATLAB?
If yes, then what code one should use for this?
Use any image plot the spectrum which may look like this:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1553392/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1553397/image.jpeg)
Image Spectrum
0 commentaires
Réponses (1)
Abhishek Tripathi
le 28 Nov 2023
Modifié(e) : Abhishek Tripathi
le 28 Nov 2023
The Hyperspectral Viewer app visualizes hyperspectral data and enables you to create spectral profiles of points and regions in the data.
You can plot points or small regions of the data along the spectral dimension to create spectral profiles. You can plot a single pixel or a region up to 10-by-10 pixels square. Use the Neighborhood Size parameter to specify the region size. When you select a region, the app uses the mean of all the pixels in the region to plot the data. Plotting a region, rather than an individual pixel, can smooth out spectral profiles.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1554207/image.png)
For more info. see the documentation here
0 commentaires
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!