Score the Hyperspectral image pixel value 0 to 100
Show older comments
I'm wondering if i could score the hyperspectral image.
I found out that hyperspectral image is based on visual light colors.
What i want to make is making visual light colors to color map. And i click certain pixel in the image it shows the score based on visual light colormap.
Here's the drawing what i thought.

I know how to score the pixel value by comparing it with colormap.
But I have no idea how could make an colormap with visual light color spectrum basesd on Hyperspectral image.
Hope to get some advice.
Thanks.
Accepted Answer
More Answers (1)
Abhishek Tripathi
on 23 Mar 2023
Edited: Abhishek Tripathi
on 23 Mar 2023
1 vote
With our hyperspectral support package, you can generate false color and RGB image of a hyperspectral image. Use below code
% Read a hyperspectral data into the workspace.
hcube = hypercube('paviaU.dat');
% Estimate an RGB image of the hyperspectral data. Increase the image contrast by applying contrast stretching.
coloredImg = colorize(hcube,"Method","rgb","ContrastStretching",true);
% Display the contrast-stretched RGB image.
imshow(coloredImg)
For better visualization of hyperspectral images, I recommend to use hyperspectral Viewer app. Hyperspectral Viewer app enables you to read hyperspectral data, visualize individual band images and their histograms, create a spectrum plot for a pixel or region in a hyperspectral data cube, generate color or false-color representations of hyperspectral images, and display metadata.
% Load Hyperspectral Data into Workspace
hcube = hypercube('jasperRidge2_R198.img');
% View Hyperspectral Data in Hyperspectral Viewer
hyperspectralViewer(hcube)
If you would like to explore more about the hyperspectral domain, kindly go through this:
Categories
Find more on Hyperspectral Image Processing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!