Sunday, April 9, 2017

ind2gray in MATLAB: code and output

Code:


load trees
I = ind2gray(X,map);
subplot(2,1,1);
imshow(X,map);
title('original image');
subplot(2,1,2);
imshow(I);

title('grayscale image');

Output:



No comments:

Post a Comment