Sat Apr 09, 2011 10:11 pm
%% apply canny 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 canny filter.
cannyResult = edge(grayImage,'canny')
imshow(cannyResult);
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.