Score the Hyperspectral image pixel value 0 to 100
古いコメントを表示
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.
採用された回答
その他の回答 (1 件)
Abhishek Tripathi
2023 年 3 月 23 日
編集済み: Abhishek Tripathi
2023 年 3 月 23 日
1 投票
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:
カテゴリ
ヘルプ センター および File Exchange で Color and Styling についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!