clear all;close all;global I2;I1 = imread('imm2.jpg');I2 = imresize(I1,.5);img_gray=255-(0.3*I2(:,:,1)+0.6*I2(:,:,2)+0.11*I2(:,:,3));level=graythresh(I2);BW1=im2bw(I2,level);BW = imcomplement(BW1);se=strel('square',11);close_img=imclose(BW,se);
the image is:
Best Answer