hyperspectral pre processing (white reference, dark current)

I have white reference & dark current data.
I want to apply this data to analyze hypercube imaging.
It is my current code.
clc;clear;
hcube = hypercube('sample raw');
Unrecognized function or variable 'hypercube'.
endmembers = fippi(hcube,10);
newhcube = selectBands(hcube,endmembers,'NumberOfBands',20);
ragne = [min(hcube.Wavelength) max(hcube.Wavelength)];
wlrange = [500 600; 1000 1600];
newhcube = removeBands(hcube,'Wavelength', wlrange);
coloredImg = colorize(newhcube); % or coloredImg = colorize(hcube);
imshow(coloredImg);

2 Comments

In the code editor in MATLAB:
You might want to download the hyperspectral add-on from the Add-ons button on the Home tab of the tool ribbon.

Sign in to comment.

Answers (1)

I understand that you want make use of the ‘hypercube’ function in the MATLAB.
As a workaround, you may need to install the Image Processing Toolbox Hyperspectral Imaging Library toolbox for accessing the functionalities.
You can download and install the toolbox by referring link below.
link:

Asked:

on 24 Sep 2022

Answered:

on 17 Oct 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!