MATLAB 帮助中心
本页采用了机器翻译。点击此处可查看英文原文。
将三维旋转向量转换为旋转矩阵
自 R2022b 起
rotationMatrix = rotvec2mat3d(rotationVector)
rotationMatrix = rotvec2mat3d(rotationVector) 返回一个与输入的轴-角旋转向量相对应的三维旋转矩阵。该函数使用罗德里格斯公式进行计算。
rotationMatrix
rotationVector
示例
全部折叠
创建一个表示绕*Z*轴旋转 90 度的向量。
rotationVector = pi/2 * [0 0 1];
求出等效的旋转矩阵。
rotationMatrix = 3×3 0.0000 -1.0000 0 1.0000 0.0000 0 0 0 1.0000
旋转向量,指定为一个包含三个元素的向量。该向量表示三维空间中的旋转轴,其大小对应于以弧度为单位的旋转角。
数据类型: single | double
single
double
相机的旋转,以一个 3×3 矩阵的形式返回,该矩阵对应于输入的轴-角旋转向量。
[1] Trucco, Emanuele, and Alessandro Verri. Introductory Techniques for 3-D Computer Vision. Upper Saddle River, NJ: Prentice Hall, 1998.
全部展开
rotationVectorToMatrix
从 R2022b 开始,大多数 Computer Vision Toolbox™ 函数都使用前乘约定来创建和执行几何变换。不过,rotationVectorToMatrix 函数采用后乘约定。虽然当前没有删除 rotationVectorToMatrix 的计划,但您可以通过切换到支持前乘约定的 rotvec2mat3d 函数来简化几何变换工作流。有关详细信息,请参阅Migrate Geometric Transformations to Premultiply Convention。
rotvec2mat3d
rotmat2vec3d | estrelpose | estworldpose | estimateExtrinsics | cameraParameters
rotmat2vec3d
estrelpose
estworldpose
estimateExtrinsics
cameraParameters
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处