SFMedu: A Matlab-based Structure-from-Motion System for Education
202
stars
59
forks
source link
Hello, in this paragraph of code there is a problem with the program crashing, I have re-mex the program, can you tell me, how to solve it? #4
Closed
yangninghua closed 5 years ago
Hello, in this paragraph of code there is a problem with the program crashing, I have re-mex the program, can you tell me, how to solve it?
match_pair = initial_match; for match_pair_size = 1:size(match_pair,1) %descriptor_i = ZNCCpatch(im_i, match_pair(match_pair_size,1:2), WinHalfSize); %descriptor_j = ZNCCpatch(im_j, match_pair(match_pair_size,3:4), WinHalfSize); %match_pair(match_pair_size,5) = sum(sum(descriptor_i{1} . descriptor_j{1})); match_pair(match_pair_size,5) = sum(zncc_i(match_pair(match_pair_size,1),match_pair(match_pair_size,2),:) ... . zncc_j(match_pair(match_pair_size,3),match_pair(match_pair_size,4),:)); pq_push(match_heap, match_pair_size, match_pair(match_pair_size,5)); end