图 31 The difference between computer graphics and computer vision
3.1 向量的运算
3.1.1 点乘
Dot Product/inner product
点乘结果是向量
A*B表示A在B方向上的投影,方向与A的夹角为锐角(≤90°)
3.1.2 叉乘
cross product
叉乘的方向性
右手法则
判断点在三角形内
3.2 二维变换(2D transformations)
Representing transformations using matrices
3.2.1 缩放(Scale)
图 32 缩放
缩放变换的公式表示:
缩放变换的矩阵表示:
图 33 Scale (Non-Uniform)
不同比例缩放的公式表示:
不同比例缩放变换的矩阵表示:
3.2.2 镜像翻转(Reflection)
Reflection
图 3 4 Horizontal reflection
水平翻转的公式表示:
水平翻转的矩阵表示:
3.2.3 裁剪与剪切(Shear)
图 35 Shear transformations
裁剪变换的公式表示:
裁剪变换的矩阵表示:
3.2.4 旋转(Rotate)
图 36 Rotate thet
裁剪变换的公式表示:
裁剪变换的矩阵表示:
3.2.5 平移(Translation)
图 37 Translation
平移变换的公式表示:
平移变换的矩阵形式表示为:
参考
刘欢;基于深度学习的发票图像文本检测与识别[D];华中科技大学;2019年
https://sites.cs.ucsb.edu/~lingqi/teaching/resources/GAMES101_Lecture_03.pdf
https://sites.cs.ucsb.edu/~lingqi/teaching/resources/GAMES101_Lecture_04.pdf
Fundamentals of Computer Graphics, Fourth Edition
M. Paschali, W. Simson, A. G. Roy, M. F. Naeem, R. Gbl, C. Wachinger, and N. Navab. Data augmentation with manifold exploring geometric transformations for increased performance and robustness. arXiv preprint arXiv:1901.04420, 2019.