资源简介

运动目标识别,采用背景差分方法。背景图像由均值法获得。里面的视频换成前几帧换成纯背景效果能更好一点

资源截图

代码片段和文件信息

avi=aviread(‘temp4.avi‘);

%Seting Parameters

T=20;

[N]=size(avi2);
 im_mean=double(avi(1).cdata);
 for k=1:N
 avi(k).cdata=rgb2gray(avi(k).cdata);
 end
% figure;
% colormap(gray);

% %Defferitial image between coutinous two images
% for k=2:N    
%     imagesc((avi(k-1).cdata-avi(k).cdata)>T);
%     pause(.2)
% end


% %Accumulating deffertial image.......
% int_img=0;
% figure;
% colormap(gray);
% for k=2:N    
%     int_img=int_img+double((avi(1).cdata-avi(k).cdata)>T);
%     imagesc(int_img>1);
%     pause(.2)
% end

%Deferitial image with a reference images
im_mean=double(avi(1).cdata);
colormap(gray);
for k=2:N
    im_mean=im_mean+double(avi(k).cdata);
end

im_mean=uint8(im_mean/N);%计算平均图像作为背景图像
imagesc(im_mean);
figure;
colormap(gray

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       1111  2010-04-09 14:06  yudongguji\main.asv

     文件       1111  2010-04-09 14:09  yudongguji\main.m

     文件       4335  2010-04-09 15:37  yudongguji\slprj\grt\vipmotion_win\tmwinternal\binfo.mat

     文件       1066  2010-04-09 15:37  yudongguji\slprj\grt\vipmotion_win\tmwinternal\minfo.mat

     文件        305  2005-05-31 12:39  yudongguji\slprj\modeladvisor\vipmotion__win\Info\folder.png

     文件       3257  2006-11-19 16:52  yudongguji\slprj\modeladvisor\vipmotion__win\Info\folder_failed.png

     文件       3217  2006-11-19 16:52  yudongguji\slprj\modeladvisor\vipmotion__win\Info\folder_pass.png

     文件       3250  2006-11-19 16:52  yudongguji\slprj\modeladvisor\vipmotion__win\Info\folder_warning.png

     文件        498  2010-04-09 15:36  yudongguji\slprj\modeladvisor\vipmotion__win\Info\geninfo.mat

     文件       3115  2006-11-19 16:52  yudongguji\slprj\modeladvisor\vipmotion__win\Info\icon_folder.png

     文件       3295  2007-11-17 18:35  yudongguji\slprj\modeladvisor\vipmotion__win\Info\icon_procedure.png

     文件       3040  2007-06-18 19:38  yudongguji\slprj\modeladvisor\vipmotion__win\Info\icon_task.png

     文件       3318  2007-02-21 19:18  yudongguji\slprj\modeladvisor\vipmotion__win\Info\icon_task_disabled.png

     文件       3350  2007-02-21 19:18  yudongguji\slprj\modeladvisor\vipmotion__win\Info\icon_task_pselected.png

     文件       3243  2007-06-18 19:38  yudongguji\slprj\modeladvisor\vipmotion__win\Info\icon_task_required.png

     文件       3394  2007-12-10 17:49  yudongguji\slprj\modeladvisor\vipmotion__win\Info\info_icon.png

     文件      28988  2010-04-09 15:39  yudongguji\slprj\modeladvisor\vipmotion__win\Info\mdladvinfo.mat

     文件        272  2005-05-31 12:39  yudongguji\slprj\modeladvisor\vipmotion__win\Info\minus.png

     文件        376  2010-04-09 15:36  yudongguji\slprj\modeladvisor\vipmotion__win\Info\model_diagnose.html

     文件      54852  2010-04-09 15:36  yudongguji\slprj\modeladvisor\vipmotion__win\Info\model_diagnose_custom.html

     文件      59094  2010-04-09 15:36  yudongguji\slprj\modeladvisor\vipmotion__win\Info\model_diagnose_left.html

     文件      59336  2010-04-09 15:36  yudongguji\slprj\modeladvisor\vipmotion__win\Info\model_diagnose_task.html

     文件        717  2010-04-09 15:36  yudongguji\slprj\modeladvisor\vipmotion__win\Info\model_diagnose_top.html

     文件        283  2005-05-31 12:39  yudongguji\slprj\modeladvisor\vipmotion__win\Info\plus.png

     文件       3372  2007-11-17 18:35  yudongguji\slprj\modeladvisor\vipmotion__win\Info\procedure_failed.png

     文件       3305  2007-11-17 18:35  yudongguji\slprj\modeladvisor\vipmotion__win\Info\procedure_passed.png

     文件       3304  2007-11-17 18:35  yudongguji\slprj\modeladvisor\vipmotion__win\Info\procedure_warning.png

     文件       7085  2010-04-09 15:36  yudongguji\slprj\modeladvisor\vipmotion__win\Info\report.html

     文件       3209  2006-11-19 16:52  yudongguji\slprj\modeladvisor\vipmotion__win\Info\task_failed.png

     文件       3479  2006-11-19 16:52  yudongguji\slprj\modeladvisor\vipmotion__win\Info\task_forcepass.png

............此处省略63个文件信息

评论

共有 条评论