資源簡介
MATLAB 目標追蹤
單目標:實現對人物追蹤(視頻背景不動)
多目標:實現對汽車追蹤
將追蹤目標用矩形框標志出來
程序使用GUI界面形式 先添加視頻,然后單擊“單目標追蹤”或“多目標追蹤”即可實現,需要注意的是:選擇“單目標”視頻時,必須單擊“單目標追蹤按鈕”,同理選擇“多目標”視頻時,必須單擊“多目標追蹤按鈕”,否則報錯!!!

代碼片段和文件信息
function?varargout?=?design(varargin)
%?DESIGN?M-file?for?design.fig
%??????DESIGN?by?itself?creates?a?new?DESIGN?or?raises?the?existing
%??????singleton*.
%
%??????H?=?DESIGN?returns?the?handle?to?a?new?DESIGN?or?the?handle?to
%??????the?existing?singleton*.
%
%??????DESIGN(‘CALLBACK‘hobjecteventDatahandles...)?calls?the?local
%??????function?named?CALLBACK?in?DESIGN.M?with?the?given?input?arguments.
%
%??????DESIGN(‘Property‘‘Value‘...)?creates?a?new?DESIGN?or?raises?the
%??????existing?singleton*.??Starting?from?the?left?property?value?pairs?are
%??????applied?to?the?GUI?before?design_OpeningFunction?gets?called.??An
%??????unrecognized?property?name?or?invalid?value?makes?property?application
%??????stop.??All?inputs?are?passed?to?design_OpeningFcn?via?varargin.
%
%??????*See?GUI?Options?on?GUIDE‘s?Tools?menu.??Choose?“GUI?allows?only?one
%??????instance?to?run?(singleton)“.
%
%?See?also:?GUIDE?GUIDATA?GUIHANDLES
%?Copyright?2002-2003?The?MathWorks?Inc.
%?Edit?the?above?text?to?modify?the?response?to?help?design
%?Last?Modified?by?GUIDE?v2.5?24-Jun-2011?19:18:45
%?Begin?initialization?code?-?DO?NOT?EDIT
gui_Singleton?=?1;
gui_State?=?struct(‘gui_Name‘???????mfilename?...
???????????????????‘gui_Singleton‘??gui_Singleton?...
???????????????????‘gui_OpeningFcn‘?@design_OpeningFcn?...
???????????????????‘gui_OutputFcn‘??@design_OutputFcn?...
???????????????????‘gui_LayoutFcn‘??[]??...
???????????????????‘gui_Callback‘???[]);
if?nargin?&&?ischar(varargin{1})
????gui_State.gui_Callback?=?str2func(varargin{1});
end
if?nargout
????[varargout{1:nargout}]?=?gui_mainfcn(gui_State?varargin{:});
else
????gui_mainfcn(gui_State?varargin{:});
end
%?End?initialization?code?-?DO?NOT?EDIT
%?---?Executes?just?before?design?is?made?visible.
function?design_OpeningFcn(hobject?eventdata?handles?varargin)
%?This?function?has?no?output?args?see?OutputFcn.
%?hobject????handle?to?figure
%?eventdata??reserved?-?to?be?defined?in?a?future?version?of?MATLAB
%?handles????structure?with?handles?and?user?data?(see?GUIDATA)
%?varargin???command?line?arguments?to?design?(see?VARARGIN)
%?Choose?default?command?line?output?for?design
handles.output?=?hobject;
%?Update?handles?structure
guidata(hobject?handles);
%?UIWAIT?makes?design?wait?for?user?response?(see?UIRESUME)
%?uiwait(handles.figure1);
%?---?Outputs?from?this?function?are?returned?to?the?command?line.
function?varargout?=?design_OutputFcn(hobject?eventdata?handles)?
%?varargout??cell?array?for?returning?output?args?(see?VARARGOUT);
%?hobject????handle?to?figure
%?eventdata??reserved?-?to?be?defined?in?a?future?version?of?MATLAB
%?handles????structure?with?handles?and?user?data?(see?GUIDATA)
%?Get?default?command?line?output?from?handles?structure
varargout{1}?=?handles.output;
%?---?Executes?on?button?press?in?pushbutton1.
function?pushbutton1_Callback(hobject?eventdata?handles)
%?hobject????
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????3093??2011-06-24?19:19??MATLAB目標追蹤(單目標、多目標)\design.fig
?????文件???????9377??2011-07-06?12:44??MATLAB目標追蹤(單目標、多目標)\design.m
?????文件?????638976??2005-03-14?13:59??MATLAB目標追蹤(單目標、多目標)\單目標.avi
?????文件?????778564??2011-06-25?13:27??MATLAB目標追蹤(單目標、多目標)\多目標.AVI
?????文件????????586??2011-07-06?12:43??MATLAB目標追蹤(單目標、多目標)\程序說明.txt
?????目錄??????????0??2011-07-06?12:42??MATLAB目標追蹤(單目標、多目標)
-----------?---------??----------?-----??----
??????????????1430596????????????????????6
評論
共有 條評論