How to plot a hyperspectral spectrum (Wavelength to reflectance) for a pixel or image segment in MATLAB?
3 views (last 30 days)
Show older comments
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:
Data to be converted to
Image Spectrum
0 Comments
Answers (1)
Abhishek Tripathi
on 28 Nov 2023
Edited: Abhishek Tripathi
on 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.
For more info. see the documentation here
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!