I am interested in generating a color bar from a colored image.
1 回表示 (過去 30 日間)
古いコメントを表示
I have attached the image. What I would like is a color bar that displays all the colors on the figure. The figure represents elevation data.
0 件のコメント
回答 (1 件)
Image Analyst
2019 年 3 月 24 日
If you don't know the colormap, then you will need the indexed image, not the RGB one.
4 件のコメント
Image Analyst
2019 年 3 月 25 日
You can't but you mgiht be able to get roughly close if you have a gray scale image, and you map the gray scaled from 0-255 basically along the centroid of that colored snake-like gamut. Sorry, I don't have any code to automatically do that. Can you ask the image originator for the original gray scale image and the color map they used?
参考
カテゴリ
Help Center および File Exchange で Red についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!