Sunday, April 9, 2017

gray2ind in MATLAB: code and output

Code:


I = imread('cameraman.tif');
[X, map] = gray2ind(I, 16);

imshow(X, map);

Output:



No comments:

Post a Comment