How to rearrange colormap according to color similarity?
조회 수: 1 (최근 30일)
이전 댓글 표시
I have a jpeg image which I would like to extract the colormap from it, I have try the rgb2ind() but the result colormap is randomly placed. Anyone know how to rearrange the colormap?
img = imread('2.jpg'); [X,map] = rgb2ind(img,256);
%% this is the colormap i created

%% this is the actual colormap

Anyone please help, thank you in advance.
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Color and Styling에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!