零、准备工作
0.1 资料及环境
0.2 下载标准跟踪序列
可直接用作者提供的download_videos.m,运行即可自动下载并保存到当前工程目录下,大小约1.1GB。可以删除videos={...}中的参数来选择性下载。
也可下载其他的跟踪序列,但必须有groundtruth信息并符合所需的格式,稍后再写,如有需要请私信。
一、函数版本适配
由于KCF发布时间较早(2014),而Matlab的函数库在多次更新中发生了多多少少的变化,需要修改一些函数使用的细节。
1.1 figure.set入口参数
show_video.m和precision_plot.m中各有
%create window
[fig_h, axes_h, unused, scroll] = videofig(num_frames, @redraw, [], [], @on_key_press); %#ok, unused outputs
set(fig_h, 'Number','off','Name', ['Tracker - ' video_path])
if show == 1,
figure('Number','off' ,'Name',['Precisions - ' title])
plot(precisions, 'k-', 'LineWidth',2)
xlabel('Threshold'), ylabel('Precision')
end
将其中的'Number