📄 torr_etort.m
字号:
% By Philip Torr 2002
% copyright Microsoft Corp.
%this function will convert an essential matrix to a rotation and translation martix
%as set out in Hartley and Zisserman.
%note there are 4 solutions in all, two (for sign of translation) times 2 for 2 different rotation matrices,
%note E + T_x R
function [Tx,R1,R2] = torr_EtoRt(E)
[U,S,V] = svd(E);
%use Hartley matrices:
W = [0 -1 0; 1 0 0; 0 0 1];
Z = [0 1 0; -1 0 0; 0 0 0];
Tx = U * Z * U';
R1 = U * W * V';
R2 = U * W' * V';
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -