(img);
ii=imresize(YCBCR, [128 128]);
s = strel('ball',2,2);
f = imclose(ii,s);
i1=rgb2gray(f);
th=graythresh...(i1);
i2=im2bw(i1,th);
i3=imcomplement(i2);
i3=imfill(i3,'holes');
i4=edge(i3,'prewitt');
%i5=imerode...(img);
ii=imresize(YCBCR, [128 128]);
s = strel('ball',2,2);
f = imclose(ii,s);
i1=rgb2gray(f);
th=graythresh...(i1);
i2=im2bw(i1,th);
i3=imcomplement(i2);
i3=imfill(i3,'holes');
i4=edge(i3,'prewitt');
%i5=imerode...(i1);
i2=im2bw(i1,th);
i3=imcomplement(i2);
i3=imfill(i3,'holes');
i4=edge(i3,'prewitt');
%i5=imerode