Fri Mar 25, 2011 8:16 pm
%% create a new figure to show the image .
A = imread('snowflakes.png');
figure(1);
%% show the loaded image.
imshow(A);
%% dilation affect.
B = ordfilt2(A,25,true(5));
figure(2),imshow(B)
%% erosion affect.
B = ordfilt2(A,1,true(5));
figure(3),imshow(B)
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.