Sun Mar 27, 2011 9:18 pm
clc;
%% create a new figure to show the image .
newImg = imread('Water lilies.jpg');
figure(1);
%% show the loaded image.
imshow(newImg);
figure(2);
%% convert RGB to gray scale.
I = rgb2gray(newImg)
imshow(I);
%% apply sobel filter.
size(I)
BW = edge(I,'sobel',0.1) ;
imshow(BW);
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.