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

📄 orthoestmirrordistratio.m

📁 Matlab程序
💻 M
📖 第 1 页 / 共 3 页
字号:
function wSolnVec = OrthoEstMirrorDistRatio( polyBoundaryVecCell, normalAngle, RR_Rec, allViews )

%This function uses the silhouettes 2 and 3 to approximate the ratio of
%distances from the camera centres to the mirrors. 
%
%In principle, one could combine estimates from other pairs of silhouettes
%too -- but this would be a lot of coding for little benefit in increased
%accuracy, as Levenberg Marquardt easily turns the approximate solution
%into a very good solution.

numImages = length(polyBoundaryVecCell);

R = [cos(normalAngle) -sin(normalAngle) 0; sin(normalAngle) cos(normalAngle) 0; 0 0 1]; %rotate about Z-axis

m1Base =     [1;0;0];
m2Base = R * [1;0;0];

for imgLoop = 1:numImages,    
    RR = RR_Rec{imgLoop};
    m1Hat = RR * m1Base;       
    m2Hat = RR * m2Base;
    
    M1_pos = -m1Hat;    
    M2_pos = -m2Hat;
    
    poseGreen = ReflectionMatrixFromVecPoint( m1Hat, M1_pos );
    poseBlue = ReflectionMatrixFromVec( m2Hat );

⌨️ 快捷键说明

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