function spot(movie_name,annotations)
addpath 'libsvm'
filetype=1;
npart=length(annotations);
% Get list of images and movie properties
Obj = VideoReader(movie_name);
nFrames = Obj.NumberOfFrames;
% Some parameters for the experiment
sbin = 8; % size of HOG block
num = 10; % number of frames for which we always add positive sample
for i=1:nFrames
tic
% i
% Read image
img = read(Obj, i);
if ~ismatrix(img)
img = rgb2gray(img);
end
% Set up some parameters for the first time
if i == 1
% Read ground truth location for first frame
locat = cell(1, npart);
for j=1:npart
load(annotations{j});
locat{j}=location; //显示这一行有错
end
墨色风雨
慕姐4208626