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 中查找有关 Red 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!