gramianz.m

来自「Recovering 3-D structure from motion in 」· M 代码 · 共 18 行

M
18
字号
function zt = gramianZ(a,b)

% "Linear and Incremental Acquisition of Invariant Shape Models from
%  Image Sequences", Daphna Weinshall and Carlo Tomasi
% Function specified in the computation of the Gramian used in
% nonlinear least squares solution C matrix.
% usage: zt = gramianZ(a,b)
% input:
%       a: 1st 3-vector
%       b: 2nd 3-vector
% output:
%        zt: output of the transposed Z operator.
% history:
%         04/29/04 SLB initial revision
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

zt = [a(1)*b(1) (a(1)*b(2) + a(2)*b(1)) (a(1)*b(3) + a(3)*b(1))...
      a(2)*b(2) (a(2)*b(3) + a(3)*b(2)) a(3)*b(3)];

⌨️ 快捷键说明

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