91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 4KB
    文件類型: .gz
    金幣: 1
    下載: 0 次
    發布日期: 2021-05-06
  • 語言: 其他
  • 標簽:

資源簡介

代碼是關于正交迭代算法求位姿的,可以運行成功,是不錯的求位姿方法~

資源截圖

代碼片段和文件信息

function?[R?t]?=?abspose(P?Q)
%?ABSPOSE?-?Absolute?orientation?
%
%???INPUTS:
%?????P?-?the?reference?point?set?arranged?as?a?3xn?matrix
%?????Q?-?the?point?set?obtained?by?transforming?P?with
%?????????some?pose?estimate?(typically?the?last?estimate)
%
%???OUTPUTS:
%?????R?-?estimated?rotation?matrix
%?????t?-?estimated?translation?vector

n?=?size(P2);

%?compute?means?of?P?and?Q
pbar?=?sum(P2)/n;
qbar?=?sum(Q2)/n;

for?i?=?1:n
??PP(:i)?=?P(:i)-pbar;
??QQ(:i)?=?Q(:i)-qbar;
end

%?compute?M?matrix
M(1:31:3)?=?0;
for?i?=?1:n
??M?=?M+PP(:i)*QQ(:i).‘;
end

%?calculate?SVD?of?M
[USV]?=?svd(M);

%?compose?the?optimal?estimate?of?R
R?=?V*(U.‘);
t?=?qbar?-?R*pbar;

評論

共有 條評論

相關資源