Sat Apr 09, 2011 10:06 pm
%% apply robert filter .
clc;
%% create a new figure to show the image .
newImg = imread('Water lilies.jpg');
figure(1);
%% convert RGB to gray scale.
grayImage= rgb2gray(newImg)
imshow(grayImage);
figure(2);
%% apply roberts filter.
robertsResult = edge(grayImage,'roberts')
imshow(robertsResult);
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.