A=imread('kytka256.jpg');
[AInd,map]=rgb2ind(A,7); % 7 colors
imshow(AInd, map); %Every row from map refers to one color in RGB format (3 columns)
- Author:
- tesar-tech
Something is wrong? Let us know right here
A=imread('kytka256.jpg');
[AInd,map]=rgb2ind(A,7); % 7 colors
imshow(AInd, map); %Every row from map refers to one color in RGB format (3 columns)