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

📄 rotaxis_fun.m

📁 一个很好用的摄像机标定程序
💻 M
字号:
function [residua, point, normal] = ...rotaxis_fun(direction, points, normals, center, weights)%[residua, point, normal] = ...%ROTAXIS_FUN(direction, points, normals, center, weights)%%Function which is minimized in ROTAXIS/RROTAXIS via leastsq%%Radim Halir, Charles University Prague, halir@ms.mff.cuni.cz%Created: 21.3.1997%Last modified 23.9.1998normal = angle2dir(direction);vectors = vnorm(vcross(normal, normals));diffs = dot(points, vectors, 2);if (nargin < 5)  evectors = [vectors; normal];  ediffs = [diffs;  center * normal'];else  evectors = [mvop(vectors, weights, '.*'); normal];  ediffs = [diffs .* weights;  center * normal'];end  % the following computation is MUCH faster than point = evectors \ ediffs;point = (evectors' * evectors) \ (evectors' * ediffs);residua = vectors * point - diffs;point = point';

⌨️ 快捷键说明

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