How to rearrange colormap according to color similarity?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu Color and Styling finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!