function spot(movie_name,annotations)addpath 'libsvm'filetype=1;npart=length(annotations);% Get list of images and movie propertiesObj = VideoReader(movie_name);nFrames = Obj.NumberOfFrames;% Some parameters for the experimentsbin = 8; % size of HOG blocknum = 10; % number of frames for which we always add positive samplefor i=1:nFramestic % i% Read imageimg = read(Obj, i);if ~ismatrix(img)img = rgb2gray(img);end% Set up some parameters for the first timeif i == 1% Read ground truth location for first framelocat = cell(1, npart);for j=1:npartload(annotations{j});locat{j}=location; //显示这一行有错end
添加回答
举报
0/150
提交
取消