frudawski

readhyperspec

The readhyperspec function imports hyperspectral image matrices created with LUMOS.

Usage:

IM = readhyperspec(file)

Where:

ParameterDescription
IMIs the return struct containing the fields:
lambda: containing the wavelengths
image: containing the 3D image matrix with wavelengths in 3rd dim
fileSpecifies 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

Frederic Rudawski: The spectral simulation tool LUMOS. 2022.

Leave a comment

* I accept the use of cookies as well as the terms in the privacy policy. I accept that data provided by me is processed and saved. I know that comments are saved and published after review.