fix the indeterminant system in stereo case

release/4.3a0
lvzhaoyang 2015-01-22 15:35:28 -05:00
parent d47e4d4853
commit 34ae976f6a
1 changed files with 5 additions and 0 deletions

View File

@ -42,6 +42,11 @@ for i = 1:cylinderNum
continue;
end
% too small disparity may call indeterminant system exception
if Z.du < 0.6
continue;
end
% ignore points occluded
% use a simple math hack to check occlusion:
% 1. All points in front of cylinders' surfaces are visible