Professional Documents
Culture Documents
load mandrill figure('color','k') image(X) colormap(map) axis off % Remove axis ticks and numbers axis image % Set aspect ratio to obtain square pixels
RGB TO GRAY
clear A=imread('images.jpg'); imshow(A) b=rgb2gray(A); % Convert to gray scale figure,imshow(b)
CHECKER BOARD
J = checkerboard(100,4,4); K = (J > 0.5); figure, imshow(K)