资源简介

Kalman滤波在视频图像目标跟踪中的应用,MATLAB仿真应用

资源截图

代码片段和文件信息

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 程序说明:这是一个视频捕获并录制的程序
%  详细原理介绍及中文注释请参考:
%  《卡尔曼滤波原理及应用-MATLAB仿真》,电子工业出版社,黄小平著。
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function VideoCapture
aviobj = avifile(‘myAVI‘);
obj=videoinput(‘winvideo‘1‘YUY2_320x240‘);
preview(obj);                
T=100;
k=0;
while (k    frame=getsnapshot(obj);     
    subplot(121)
    imshow(frame);
    frameRGB=ycbcr2rgb(frame);     
    subplot(122);
    imshow(frameRGB);
    drawnow;
    aviobj=addframe(aviobjframeRGB);
    flushdata(obj)
    k=k+1
end
aviobj = close(aviobj); 
delete(obj); 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-03-14 21:20  3.6.1\
     目录           0  2018-03-14 21:20  3.6.1\1\
     文件         812  2015-06-25 16:26  3.6.1\1\VideoCapture.m
     目录           0  2018-03-14 21:20  3.6.1\2\
     文件         522  2015-06-25 16:28  3.6.1\2\ReadAndShowAVI.m
     文件      175616  2015-06-25 16:35  3.6.1\2\video.avi
     目录           0  2018-03-14 21:20  3.6.1\3\
     文件         752  2015-06-25 16:41  3.6.1\3\Processframe.m
     目录           0  2018-03-14 21:34  3.6.1\3\imageframe\
     文件      175616  2015-06-25 16:35  3.6.1\3\video.avi
     文件         188  2015-06-25 16:46  3.6.1\3\说明.txt
     目录           0  2018-03-14 21:20  3.6.1\4\
     文件         301  2013-07-21 16:06  3.6.1\4\1.png
     文件        1108  2015-06-25 16:51  3.6.1\4\ProcessPixel.m
     文件    30723468  2012-03-07 10:15  3.6.1\4\video.avi
     文件       27413  2015-06-25 16:53  3.6.1\4\使用说明.docx

评论

共有 条评论