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
您好,假設(shè)未定義函數(shù)或變量 'location'.?這個該怎么解決?
函數(shù)式編程
2021-07-07 11:11:50