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!