vdiff.m

来自「一个很好用的摄像机标定程序」· M 代码 · 共 22 行

M
22
字号
function diffs = vdiff(u, v)%diffs = VDIFF(u, v)%%Get angle differences between vectors%%Input:%  U, V  - vectors (matrices of the size N x M, where N is the number of%          vectors and M is their dimension)%%Output:%  DIFFS - angle differences between vectors in degrees (0-90)%%See also:%  VANGLE%%Radim Halir, Charles University Prague, halir@ms.mff.cuni.cz%Created: 2.7.1997%Last modified 2.7.1997cosangles = sum(u .* v, 2) ./ (vsize(u) .* vsize(v));diffs = acos(abs(cosangles)) / pi * 180;

⌨️ 快捷键说明

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