The readhyperspec function imports hyperspectral image matrices created with LUMOS.
Usage:
IM = readhyperspec(file)
Where:
Parameter | Description |
IM | Is the return struct containing the fields: – lambda : containing the wavelengths– image : containing the 3D image matrix with wavelengths in 3rd dim |
file | Specifies the filename. |
Example
Read hyperspectal LUMOS image and plot RGB image:
IM = readhyperspec('hyperspec.mat'); RGB = hyperspec2srgb(IM); imshow(RGB,[])
See also: hyperspec2srgb
Result:
Reference