精选优质文档-倾情为你奉上运行效果图:% Reading of a RGB imagei=imread(face9.jpg);I=rgb2gray(i);BW=im2bw(I);figure,imshow(BW)% minimisation of background portionn1 n2=size(BW);r=floor(n1/10);c=floor(n2/10);x1=1;x2=r;s=r*c;for i=1:10 y1=1;y2=c; for j=1:10 if (y2=9*c) | (x1=1 | x2=r*10) loc=find(BW(x1:x2, y1:y2)=0); o p=size(loc); pr=o*1