⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 torr_robust_chieral.m

📁 matlab三维重建程序
💻 M
字号:
%	By Philip Torr 2002
%	copyright Microsoft Corp.
%this is code to remove outliers via chieral constraint


function inlier_index = torr_robust_chieral(X,P1,P2)

%next reproject and compare with the images
%the chieral constraint is sign(det M) * sign (third homog coord of reprojected image) * sign (fourth homog coord X)
% to make sure we dont get any outliers we average the inequalities over all the points, ones with a bad sign
% can later be removed as outleirs.
%we want chieral for both cameras to be positive

ax1 = P1 * X;

bx1 = P2 * X;

chieral = (sign(ax1(3,:) ) .* sign (X(4,:))) +  (sign(bx1(3,:) ) .* sign (X(4,:)));

inlier_index = find(chieral == 2);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -