%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Compute SIFT features % % Hao Jiang, Oct, 2007 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% function compfeature(start_frame_num, end_frame_num) for vframe = start_frame_num : end_frame_num vframe filename1 = sprintf('./video/%d.jpg', vframe); cmd = sprintf('convert %s image1.pgm', filename1); system(cmd); image1 = 'image1.pgm'; [im1, des, loc] = sift(image1); cmd = sprintf('save ./data/des_%d.mat des', vframe); eval(cmd); cmd = sprintf('save ./data/loc_%d.mat loc', vframe); eval(cmd); end