找回密码
 立即注册
查看: 335|回复: 0

图像数据增强中的图形学理论 | 图形学表示之二维变换

[复制链接]
发表于 2022-3-7 12:56 | 显示全部楼层 |阅读模式
Theoretical basis of computer graphics for image data augmentation
本篇是第二篇, 介绍二维变换
[2]作者认为,图形学主要研究建模、模拟仿真,计算机视觉主要研究图像处理、图像理解,如图 31所示。



图 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.
本文使用 Zhihu On VSCode 创作并发布

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
懒得打字嘛,点击右侧快捷回复 【右侧内容,后台自定义】
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Unity开发者联盟 ( 粤ICP备20003399号 )

GMT+8, 2025-5-10 04:25 , Processed in 0.137463 second(s), 26 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表