rotation matrix &reflection matrix

文章目录

  • [1. rotation matrix](#1. rotation matrix)
    • [1.1 结论](#1.1 结论)
  • [2. reflection matrix](#2. reflection matrix)
    • [2.1 结论](#2.1 结论)

1. rotation matrix

图像逆时针旋转 θ \theta θ的矩阵
Q r o t a t e = cos ⁡ θ − sin ⁡ θ sin ⁡ θ cos ⁡ θ (1) Q_{rotate}=\begin{bmatrix}\cos\theta&-\sin\theta\\\sin\theta&\cos\theta\end{bmatrix}\tag1 Qrotate=cosθsinθ−sinθcosθ(1)

  • 为了方便计算和表达,我们用 I I I单位矩阵进行分析
    I = 1 0 0 1 (2) I=\begin{bmatrix}1&0\\0&1\end{bmatrix}\tag2 I=1001(2)
    可以得到两个点 Q=(1 , 0);Q=( 0, 1),我们将两个向量逆时针旋转 θ \theta θ角度后,可以得到此时的角度
    Q ′ 1 , 0 = cos ⁡ θ sin ⁡ θ (3) Q'1,0=\begin{bmatrix}\cos\theta\\\sin\theta\end{bmatrix}\tag3 Q′1,0=cosθsinθ(3)
    Q ′ 0 , 1 = − sin ⁡ θ cos ⁡ θ (4) Q'0,1=\begin{bmatrix}-\sin\theta\\\cos\theta\end{bmatrix}\tag4 Q′0,1=−sinθcosθ(4)
    所以可以得到 I I I单位向量在逆时针旋转 θ \theta θ后的旋转矩阵如下

1.1 结论

Q r o t a t e = cos ⁡ θ − sin ⁡ θ sin ⁡ θ cos ⁡ θ (5) Q_{rotate}=\begin{bmatrix}\cos\theta&-\sin\theta\\\sin\theta&\cos\theta\end{bmatrix}\tag5 Qrotate=cosθsinθ−sinθcosθ(5)

2. reflection matrix

Q r o t a t e = cos ⁡ θ − sin ⁡ θ sin ⁡ θ cos ⁡ θ (6) Q_{rotate}=\begin{bmatrix}\cos\theta&-\sin\theta\\\sin\theta&\cos\theta\end{bmatrix}\tag6 Qrotate=cosθsinθ−sinθcosθ(6)

图像沿着直线 1 2 θ \frac{1}{2}\theta 21θ对称矩阵,反射矩阵

  • 为了方便计算和表达,我们用 I I I单位矩阵进行分析
    I = 1 0 0 1 (7) I=\begin{bmatrix}1&0\\0&1\end{bmatrix}\tag7 I=1001(7)
    可以得到两个点 Q=(1 , 0);Q=( 0, 1),我们将两个向量关于 1 2 θ \frac{1}{2}\theta 21θ直线对称后,可以得到此时的坐标

    Q ′ 1 , 0 = cos ⁡ θ sin ⁡ θ (8) Q'1,0=\begin{bmatrix}\cos\theta\\\sin\theta\end{bmatrix}\tag8 Q′1,0=cosθsinθ(8)

    Q ′ 0 , 1 = sin ⁡ θ − cos ⁡ θ (9) Q'0,1=\begin{bmatrix}\sin\theta\\-\cos\theta\end{bmatrix}\tag9 Q′0,1=sinθ−cosθ(9)

2.1 结论

Q r e f l e c t i o n = cos ⁡ θ sin ⁡ θ sin ⁡ θ − cos ⁡ θ (10) Q_{reflection}=\begin{bmatrix}\cos\theta&\sin\theta\\\sin\theta&-\cos\theta\end{bmatrix}\tag{10} Qreflection=cosθsinθsinθ−cosθ(10)

相关推荐
待磨的钝刨12 小时前
深入理解主成分分析(PCA)
人工智能·线性代数·算法·机器学习
yurenshi16682 天前
20 账号以内矩阵怎么选?聚媒通、融媒宝、新榜小豆芽、矩阵通功能、价格实测对比
线性代数·矩阵
FakeOccupational2 天前
【数学 场论数学基础】微分算子:度量张量(Metric tensor) + 雅可比矩阵+度量张量g_{ij}+平直空间范数
线性代数·矩阵
CYB35323 天前
罗德与施瓦茨 R&S ZN-Z84多端口可配置射频开关矩阵
线性代数·矩阵
棒球1号位3 天前
全球赋能:中国棒球联盟矩阵的国际化人才培养路径·棒球1号位
线性代数·矩阵
郝学胜-神的一滴4 天前
中级OpenGL教程 022:探秘三维世界的血脉传承——物体父子关系与矩阵递归奥义
c++·线性代数·unity·矩阵·游戏引擎·unreal engine·opengl
luoganttcc6 天前
指数分布的完整推导
线性代数·机器学习·概率论
爱刷碗的苏泓舒6 天前
平方根信息滤波:矩阵推导及 GNSS 参数估计应用
线性代数·算法·矩阵·gnss·参数估计·测量平差·平方根信息滤波
AI科技星7 天前
光速螺旋时空曲率挠率拓扑统一场论——四大力全域闭环求导、精算验证与第一性原理完备证明
线性代数·算法·决策树·机器学习·常温超导·ai科技星
noipp7 天前
推荐题目:洛谷 B2099 矩阵交换行
线性代数·算法·矩阵