资 源 简 介
%Reading RGB 图像
i=imread("face8.jpg") ;
I=rgb2gray(i) ;
BW=im2bw(I) ;
figure,imshow(BW)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%减少消耗的背景部分
[n1 n2]=size(BW) ;
r=floor(n1/10) ;
c=floor(n2/10) ;
x 1 = 1 ; x 2 = r ;
s = r * c;
请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报