91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡(jiǎn)介

文章:Dense Structural Learning for Infrared Object Tracking at 200+ Frames Per Second. Pattern Recognition Letters, 2017. VOT-TIR2017紅外目標(biāo)跟蹤挑戰(zhàn)賽冠軍. Win10 x64下用Matlab R2016b編譯的mex文件,經(jīng)測(cè)試在Win7 x64下也可以使用。

資源截圖

代碼片段和文件信息

%%?Print?help?info.
mxTracker(1);

%%?Set?image?directory.
seqDir?=?pwd;?%?using?current?directory

seqDir(seqDir==‘\‘)?=?‘/‘;
seqs?=?dir(seqDir);
seqs(~[seqs.isdir])?=?[];
seqs(1:2)?=?[];?%?.?..
seqs?=?{seqs.name};

seq?=?listdlg(‘ListString‘seqs‘Name‘‘Choose?video‘‘SelectionMode‘‘single‘);
if?isempty(seq)?return;?end
seq?=?seqs{seq};

%%?Get?initial?target?position.
imgFmt?=?[seqDir?‘/‘?seq?‘/%08d.png‘];
nimgs?=?length(dir([seqDir?‘/‘?seq?‘/*.png‘]));
gtFile?=?[seqDir?‘/‘?seq?‘/groundtruth.txt‘];
gt?=?load(gtFile);
x?=?gt(11:2:end);?y?=?gt(12:2:end);
rect?=?[min(x)min(y)max(x)-min(x)+1max(y)-min(y)+1];?%?target?bounding?box

%%?Example?usage?1.
for?t?=?1:nimgs
????imgFile?=?sprintf(imgFmt?t);
????img?=?imread(imgFile);
????if(size(img3)==3)
????????img?=?rgb2gray(img);
????end
????if?t?==?1
????????padding?=?1.5;
????????updatePeriod?=?3;
????????useMotion?=?true;
????????logFile?=?‘D:/yuErrLog.txt‘;?%?save?error?log?to?local?file
????????mxTracker(img?rect?padding?updatePeriod?useMotion?logFile);
????else
????????rect?=?mxTracker(img?rect);
????end
????imshow(img)hold?onrectangle(‘position‘rect‘edgecolor‘‘r‘);?drawnow;
end
mxTracker;?%?release?memory
close

%%?Example?usage?2.
%?for?t?=?1:nimgs
%?????imgFile?=?sprintf(imgFmt?t);
%?????img?=?imread(imgFile);
%?????if(size(img3)==3)
%?????????img?=?rgb2gray(img);
%?????end
%?????if?t?==?1
%?????????padding?=?1.5;
%?????????updatePeriod?=?0;?%?do?not?update?by?itself
%?????????useMotion?=?true;
%?????????logFile?=?‘‘;?%?no?error?log
%?????????mxTracker(img?rect?padding?updatePeriod?useMotion?logFile);
%?????else
%?????????rect?=?mxTracker(img?rect);
%?????????if?mod(t3)?==?0
%?????????????mxTracker(img?rect);?%?manually?update?the?tracker
%?????????end
%?????end
%?????imshow(img)hold?onrectangle(‘position‘rect‘edgecolor‘‘r‘);?drawnow;
%?end
%?mxTracker;
%?close

評(píng)論

共有 條評(píng)論