clc
clear all
close all
%%
image=imread('1.jpg');
%%
image=image(:,:,1);
[row,col]=size(image);
figure;imshow(mat2gray(image));
%%
ee=edge(image,'canny',[0.1,0.9]);
figure;imshow(mat2gray(ee));
ee(end,
=1;
ff=imfill(ee,'holes');
ff(end,
=0;
figure;imshow(mat2gray(ff));
%%
اینم نتیجه بفرمایید..