Write a MATLAB program for convert image color RGB to Gray color



Code:

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


Output:


No comments

Powered by Blogger.