大佬们,为什么会这样,初学。



function feature = feature_lattice(img)
for i=1:length(img);
bw2=im2bw(img{1,i},graythresh(img{1,i}));
bw_7050=imresize(bw2,[50,50]);
for cnt=1:5
for cnt2=1:5
Atemp=sum(bw_7050(((cnt*10-9):(cnt*10)),((cnt2*10-9):(cnt2*10))));%10*10box
lett((cnt-1)*5+cnt2)=sum(Atemp);
end
end
lett=((100-lett)/100);
lett=lett';
feature(:,i)=lett;
end


5536

被折叠的 条评论
为什么被折叠?



