Code: clear; clc; I = imread('d:/matimage/arithmetic/baby1.jpg'); J = rgb2gray(I); figure, imshow(I), figure, imshow(J); Output:
Leave a Comment