-
大小: 3.57MB文件类型: .7z金币: 1下载: 0 次发布日期: 2023-09-13
- 语言: Matlab
- 标签: Visual Tracker VOT-TIR2017 winner
资源简介
文章:Dense Structural Learning for Infrared Object Tracking at 200+ Frames Per Second. Pattern Recognition Letters, 2017. VOT-TIR2017红外目标跟踪挑战赛冠军. Win10 x64下用Matlab R2016b编译的mex文件,经测试在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
相关资源
- Matlab的两种编译器MinGW-w64和Visual Stu
- 数字图像处理与机器视觉VisualC与Mat
- Visual Studio 2017 support for Matlab 2016b
- matlab2017a/b与visual studio2017编译器关联
- Itti经典的视觉显著性检测代码
- MATLAB R2017a 支持Microsoft Visual Studio 2
- VisualSVN-Server-3.3.1-x64.msi(Windows可视化
- Visual FoxPro ODBC Driver
- matlab2013(a) mex -setup 找不到visual s
- PAMI2015 基于核的相关滤波跟踪方法
- HC-visual-detection-by-matlab 本资源是清华
- matlab 四维图实现 源码\\Visualization_4
- Visual Studio 2017/2015/2013 support for Matla
评论
共有 条评论