Sunday, April 9, 2017

rgb2ind in MATLAB: code and output

Code:

RGB = imread('ngc6543a.jpg');
[IND,map] = rgb2ind(RGB,32);
figure
imagesc(IND)
colormap(map)
axis image

zoom(4)

Output:


No comments:

Post a Comment