分享

GEI MATLAB 失败

 木俊 2018-05-23

close all;

clear all;
char name ;
name = '001';
char nm ;
nm = 'nm-01';
a=cell(1,200);
c=0;
for i=47:102
  
   b= num2str(i);% num2str将x转为字符
   if i<100
       p1 =(strcat('G:\GaitDatasetB-silh\silhouettes\',name,'\',name,'\',nm,'\090\',name,'-',nm,'-',...
    '090-0',b,'.png'));
   else
       p1 =(strcat('G:\GaitDatasetB-silh\silhouettes\',name,'\',name,'\',nm,'\090\',name,'-',nm,'-',...
    '090-',b,'.png'));
  
   end
c=c+1;
a{1,c}=edge(imread(p1));
end
[height,width]=size(a{1,1});
sum=zeros(height,width);
total=c;
for i=1:c
    for j=1:height
        for y=1:width
            sum(j,y)=a{1,i}(j,y)+sum(j,y);
        end
    end
end
figure();imshow(sum);title('sum');
for j=1:height
        for y=1:width
            gei(j,y)=sum(j,y)/total;
        end
end

figure();imshow(gei);title('gei');

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约