Score the Hyperspectral image pixel value 0 to 100
Ältere Kommentare anzeigen
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.
Akzeptierte Antwort
Weitere Antworten (1)
Abhishek Tripathi
am 23 Mär. 2023
Bearbeitet: Abhishek Tripathi
am 23 Mär. 2023
1 Stimme
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:
Kategorien
Mehr zu Color and Styling finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!