Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
function deepMatching( sequence, densematch_dir)
% Generate deepmatching commands that are submitted to the clusters
if ~exist(densematch_dir)
mkdir(densematch_dir);
end
file_name = [densematch_dir 'command_pose.txt'];
fid = fopen(file_name,'w');
img_list = {sequence.image};
num_frames = length(img_list);
for s = 1:num_frames-1
fprintf('frames %d \n',s);
im_1 = img_list{s}; [~,name_1,~] = fileparts(im_1);
im_2 = img_list{s+1}; [~,name_2,~] = fileparts(im_2);
out_name = [densematch_dir name_1 '-DM-' name_2 '.txt'];
cmd = ['/BS/siyu-project2/work/3rd/deepmatching_1.2.2_c++/deepmatching ' im_1 ' ' im_2 ' -nt 16 -downscale ' num2str(1) ' -out ' out_name];
fprintf(fid,[cmd '\n']);
end
fclose(fid);
end