Sun Mar 27, 2011 9:32 pm
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 prewitt filter.
afterFilter = edge(grayImage,'prewitt')
imshow(afterFilter);
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.