# 3D投影

**3D投影**是将三维物体表现在二维平面上的任何方法，其做法是沿确定的视线把物体的每一点映射到投影平面上。这类方法分为两大族：平行投影，其投影线永不相交；以及中心投影（透视投影），其所有投影线汇聚于单一投影中心。<sup>[1](https://www.iso.org/obp/ui?_escaped_fragment_=iso%3Astd%3Aiso%3A10209%3Aed-2%3Av1%3Aen)</sup> 同一套数学构成了技术制图、文艺复兴绘画、计算机图形渲染以及计算机视觉中所用针孔相机模型的基础。<sup>[2](https://visionbook.mit.edu/imaging.html)</sup>

| 关键事实 | 详情 |
|---|---|
| 两大族 | 平行投影（投影中心在无穷远处，投影线平行）与中心投影（投影中心位于有限距离处，投影线汇聚）<sup>[1](https://www.iso.org/obp/ui?_escaped_fragment_=iso%3Astd%3Aiso%3A10209%3Aed-2%3Av1%3Aen)</sup> |
| 透视方程 | 对于距像平面 \( f \) 处的针孔，\( x = f \cdot X/Z \)，\( y = f \cdot Y/Z \)；远处物体按深度的倒数缩小<sup>[2](https://visionbook.mit.edu/imaging.html)</sup> |
| 正交方程 | 垂直于平面的平行射线给出 \( x = k \cdot X \)，\( y = k \cdot Y \)；大小与距离无关<sup>[2](https://visionbook.mit.edu/imaging.html)</sup> |
| 相机模型 | OpenCV针孔模型：\( s \cdot p = A \begin{bmatrix} R \mid t \end{bmatrix} P_w \)，其中内参矩阵 \( A \) 包含焦距 \( f_x, f_y \) 与主点 \( (c_x, c_y) \)<sup>[3](https://docs.opencv.org/5.0/main_modules/d_projection.html)</sup> |
| 图形管线顺序 | \( \text{projectionMatrix} \cdot \text{viewMatrix} \cdot \text{modelMatrix} \cdot \text{vertex} \)；投影矩阵把相机空间映射到裁剪空间<sup>[4](https://docs.vulkan.org/tutorial/latest/Building_a_Simple_Engine/Camera_Transformations/02_math_foundations.html)</sup> |
| 标准化 | ISO 5456-2:1996涵盖技术制图的正交表示；ISO 10209:2022定义投影方法的词汇<sup>[5](https://www.iso.org/standard/11502.html)</sup><sup> • </sup><sup>[1](https://www.iso.org/obp/ui?_escaped_fragment_=iso%3Astd%3Aiso%3A10209%3Aed-2%3Av1%3Aen)</sup> |
| 历史坐标 | 布鲁内莱斯基在15世纪初的佛罗伦萨引入了线性透视；阿尔贝蒂在《论绘画》（1435）中首次写下其规则；蒙日于1795年将画法几何系统化<sup>[6](https://mathshistory.st-andrews.ac.uk//HistTopics/Art/)</sup><sup> • </sup><sup>[7](https://educa.fcc.org.br/scielo.php?lng=pt&nrm=iso&pid=S2526-61362025000100302&script=sci_arttext&tlng=en)</sup> |

## 投影的类型

**平行投影**把投影中心置于无穷远处，因此所有投影线彼此平行。ISO 10209按投影线与投影平面的夹角以及沿坐标轴的缩放比例来区分其子类型。<sup>[1](https://www.iso.org/obp/ui?_escaped_fragment_=iso%3Astd%3Aiso%3A10209%3Aed-2%3Av1%3Aen)</sup>

- *正投影（正交投影）*：所有投影线以直角与平面相交。当物体各面平行于投影平面时，只有两个维度可见，这是工程制图中立面图与剖面图的基础。<sup>[8](https://www.mcgill.ca/engineeringdesign/step-step-design-process/basics-graphics-communication/projections-and-views)</sup> 正交表示法围绕一个主视图安排若干这样的视图，按其他视图相对于主视图的位置，分为第一角法与第三角法两种布置。<sup>[1](https://www.iso.org/obp/ui?_escaped_fragment_=iso%3Astd%3Aiso%3A10209%3Aed-2%3Av1%3Aen)</sup>
- *轴测投影*：将倾斜放置的物体正交平行投影到单一平面上，因此三个维度可同时看到。等轴测是每条投影线与各坐标轴成三个相等夹角的情形；在等轴测图中，各轴以120度间隔绘出，三个缩放比例均相等，因此平行于轴的线段按真实长度绘制，而不平行于轴的线段一般不能按同一比例反映真实长度。<sup>[19](https://ocw.mit.edu/courses/2-007-design-and-manufacturing-i-spring-2009/pages/related-resources/drawing_and_sketching/)</sup> 二轴测与三轴测则分别在两根轴上使用相同比例，或在三根轴上使用不同比例。<sup>[1](https://www.iso.org/obp/ui?_escaped_fragment_=iso%3Astd%3Aiso%3A10209%3Aed-2%3Av1%3Aen)</sup><sup> • </sup><sup>[9](https://www.creativebloq.com/features/isometric-drawing)</sup>
- *斜投影*：投影线以同一非90度角与平面相交的平行投影。物体表面保持平行于投影平面，但非垂直的视线揭示出深度，这正是为什么斜二测与斜等测轴测图能在保持正面比例真实的同时显示物体的三个面。<sup>[1](https://www.iso.org/obp/ui?_escaped_fragment_=iso%3Astd%3Aiso%3A10209%3Aed-2%3Av1%3Aen)</sup><sup> • </sup><sup>[8](https://www.mcgill.ca/engineeringdesign/step-step-design-process/basics-graphics-communication/projections-and-views)</sup>

**中心（透视）投影**把投影中心置于有限距离处，因此所有投影线汇聚于该点。<sup>[1](https://www.iso.org/obp/ui?_escaped_fragment_=iso%3Astd%3Aiso%3A10209%3Aed-2%3Av1%3Aen)</sup> 在建筑实践中，一点透视使物体的一面平行于画面，带来正面的庄重感；两点透视更具动感；三点透视与所有线性透视一样，保持直线为直线，而不像鱼眼畸变那样使其弯曲。<sup>[15](https://people.csail.mit.edu/fredo/comp-photo-book/02-fundamentals-02-pinhole-image-formation-and-linear-perspective.html)</sup> 当观看距离趋向无穷远时，汇聚的射线变得平行，画面趋近于正交投影或轴测投影。<sup>[10](https://pages.uoregon.edu/design/HTML/424-11.html)</sup>

## 针孔相机模型

计算机视觉从针孔相机推导出透视投影：场景中每一点发出的光沿直线穿过单一孔径到达投影平面。三维点 \( \mathbf{P} = (X, Y, Z) \) 投影到距针孔 \( f \) 处平面上的点 \( \mathbf{p} \)，由相似三角形可得透视投影方程：

\[ x = f \cdot \frac{X}{Z}, \qquad y = f \cdot \frac{Y}{Z} \]

除以深度 \( Z \) 正是使远处物体变小的原因，而同一组方程不仅描述针孔，也描述大多数基于镜头的相机和人类视觉。<sup>[2](https://visionbook.mit.edu/imaging.html)</sup> 真实针孔产生倒立的像，因此文献常在相机前方使用虚拟像平面，以保持符号一致。<sup>[2](https://visionbook.mit.edu/imaging.html)</sup>

从世界点到像素的完整映射可分解为外参与内参两部分。外参 \( [R \mid t] \) 即旋转与平移，把点从世界坐标带入相机坐标系；内参 \( A \) 是以像素为单位的焦距 \( f_x, f_y \) 与主点 \( (c_x, c_y) \) 构成的3×3矩阵，随后把点映射到传感器上。OpenCV将无畸变模型写作

\[ s \cdot p = A \begin{bmatrix} R \mid t \end{bmatrix} P_w \]

其中 \( s \) 是任意比例因子，不属于相机模型的一部分。内参矩阵不依赖于场景，因此一旦标定，只要焦距保持不变便可重复使用。<sup>[3](https://docs.opencv.org/5.0/main_modules/d_projection.html)</sup> 伯克利EECS 106实验讲义为把像素剪切为平行四边形的镜头增加了一个轴倾斜参数 \( s \)，普通相机该参数为零，并把相机标定定义为估计这些参数的过程。<sup>[11](https://pages.github.berkeley.edu/EECS-106/fa21-site/assets/labs/Lab_6__Computer_Vision.pdf)</sup>

## 齐次坐标与投影矩阵

透视投影在普通欧几里得坐标中因除以深度而是非线性的，但在齐次坐标中成为线性映射：3×4相机矩阵 \( P \) 把齐次三维点 \( X \in \mathbb{P}^3 \) 映射为齐次图像点 \( x \in \mathbb{P}^2 \)，且仅在比例意义下相等。<sup>[12](https://wanghemath.github.io/Book-MathCV/chapters/chapter-12-cameras-as-maps.html)</sup><sup> • </sup><sup>[13](https://www.microsoft.com/en-us/research/wp-content/uploads/2016/02/Criminisi_PhDThesis.pdf)</sup> 齐次表示的做法是附加一个哑坐标，最后再除以它，这恰好就是针孔模型的除以深度。<sup>[11](https://pages.github.berkeley.edu/EECS-106/fa21-site/assets/labs/Lab_6__Computer_Vision.pdf)</sup>

实时图形管线使用同样的构造。一个顶点经过乘积

\[ \text{projectionMatrix} \cdot \text{viewMatrix} \cdot \text{modelMatrix} \cdot \text{vertex} \]

其中模型矩阵把物体放置到世界中，视图矩阵通过确定世界相对相机的位置把世界坐标变换到相机空间，投影矩阵把相机空间变换到裁剪空间，控制透视、视场以及近远平面。改变这一顺序会破坏管线。<sup>[4](https://docs.vulkan.org/tutorial/latest/Building_a_Simple_Engine/Camera_Transformations/02_math_foundations.html)</sup> 将视图矩阵与投影矩阵分离，使程序能够独立控制相机定位与透视特性。<sup>[14](https://docs.vulkan.org/tutorial/latest/Building_a_Simple_Engine/Camera_Transformations/04_camera_implementation.html)</sup>

## 投影保留与破坏什么

三维物体的每一个二维视图都既揭示又隐藏：角度、尺寸或视觉关系上必定发生某种变形。<sup>[10](https://pages.uoregon.edu/design/HTML/424-11.html)</sup> 正交视图仅在平行于投影平面的平面中保持真实角度与尺寸，在所有倾斜平面上都存在透视缩短。<sup>[10](https://pages.uoregon.edu/design/HTML/424-11.html)</sup> 透视保持直线与关联性，但破坏角度、长度与平行性，这正是平行线看似在灭点处相交的原因。<sup>[15](https://people.csail.mit.edu/fredo/comp-photo-book/02-fundamentals-02-pinhole-image-formation-and-linear-perspective.html)</sup> 这些取舍解释了各方法之间的分工：多视图正交制图用于制造，等轴测与斜投影图示用于可读的三维形体，透视用于写实描绘。<sup>[8](https://www.mcgill.ca/engineeringdesign/step-step-design-process/basics-graphics-communication/projections-and-views)</sup>

## 历史

线性透视于15世纪初在佛罗伦萨出现。菲利波·布鲁内莱斯基（Filippo Brunelleschi）用画板演示了其规则，通过窥孔与镜子控制观看者的位置，以保证几何正确，但他没有留下解释。莱昂·巴蒂斯塔·阿尔贝蒂（Leon Battista Alberti）在《论绘画》（*De pictura*，拉丁文，1435）与《论绘画》（*Della pittura*，意大利文，1436）中提供了最早的书面记述，把绘画定义为视觉金字塔与平面的交截，并展示了如何用中心点（今称灭点）构造透视中的铺砖地面。<sup>[6](https://mathshistory.st-andrews.ac.uk//HistTopics/Art/)</sup> 对透视规则背后数学概念的研究后来促成了射影几何作为数学分支的发展。<sup>[16](https://americanhistory.si.edu/it/collections/object/nmah_694622)</sup>

**画法几何**把多视图投影系统化为一门工程学科。加斯帕尔·蒙日（Gaspard Monge）于1795年在巴黎高等师范学校（École Normale de l'an III）讲授画法几何课程，该术语首次正式出现在他1794年为中央公共工程学院（École Centrale des Travaux Publics）编写的课程文件中，他在其中把这一学科描述为设计工程的工程师、指导施工的艺术家与执行施工的工人所共用的一种语言。<sup>[7](https://educa.fcc.org.br/scielo.php?lng=pt&nrm=iso&pid=S2526-61362025000100302&script=sci_arttext&tlng=en)</sup> 他的《画法几何教程》（*Leçons de géometrie descriptive*，1795）系统地处理了点、线、面、曲线与相交体的表示，他被视为该学科真正的创立者。<sup>[17](https://mathshistory.st-andrews.ac.uk/Strick/monge.pdf)</sup> 随着计算机的普及，该学科后来在课程中衰落，而计算机图形学在三维物体二维图形表示方面引发了一场画法几何的复兴。<sup>[18](https://encyclopediaofmath.org/wiki/Descriptive_geometry)</sup>

如今词汇已经标准化：ISO 10209:2022定义了从平行投影与中心投影到第一角法与第三角法布置的术语，ISO 5456-2:1996规定了技术制图的正交表示，该标准于1996年6月首次发布，并于2025年确认仍然现行有效。<sup>[1](https://www.iso.org/obp/ui?_escaped_fragment_=iso%3Astd%3Aiso%3A10209%3Aed-2%3Av1%3Aen)</sup><sup> • </sup><sup>[5](https://www.iso.org/standard/11502.html)</sup>

## References

1. [ISO 10209:2022, Technical product documentation — Vocabulary — Terms relating to technical drawings, ISO Online Browsing Platform](https://www.iso.org/obp/ui?_escaped_fragment_=iso%3Astd%3Aiso%3A10209%3Aed-2%3Av1%3Aen)
2. [Foundations of Computer Vision, Chapter 5: Imaging, MIT](https://visionbook.mit.edu/imaging.html)
3. [3D vision functionality, OpenCV Tutorials](https://docs.opencv.org/5.0/main_modules/d_projection.html)
4. [Camera & Transformations: Mathematical Foundations, Vulkan Documentation Project](https://docs.vulkan.org/tutorial/latest/Building_a_Simple_Engine/Camera_Transformations/02_math_foundations.html)
5. [ISO 5456-2:1996, Technical drawings — Projection methods — Part 2: Orthographic representations](https://www.iso.org/standard/11502.html)
6. [Mathematics and Art, MacTutor History of Mathematics, University of St Andrews](https://mathshistory.st-andrews.ac.uk//HistTopics/Art/)
7. [Origin and decline of the scientific discipline Descriptive Geometry, Educação e Pesquisa (SciELO)](https://educa.fcc.org.br/scielo.php?lng=pt&nrm=iso&pid=S2526-61362025000100302&script=sci_arttext&tlng=en)
8. [Projections and Views, Engineering Design Toolkit, McGill University](https://www.mcgill.ca/engineeringdesign/step-step-design-process/basics-graphics-communication/projections-and-views)
9. [Isometric drawing: a designer's guide, Creative Bloq](https://www.creativebloq.com/features/isometric-drawing)
10. [Session 11, Rendering I: Point of View, Arch 424/524, University of Oregon](https://pages.uoregon.edu/design/HTML/424-11.html)
11. [Projective Geometry and The Camera Matrix, EECS 106 Lab 6, UC Berkeley](https://pages.github.berkeley.edu/EECS-106/fa21-site/assets/labs/Lab_6__Computer_Vision.pdf)
12. [Cameras as Maps, The Mathematics of Modern Computer Vision](https://wanghemath.github.io/Book-MathCV/chapters/chapter-12-cameras-as-maps.html)
13. [A. Criminisi, PhD thesis, Camera models and perspective mappings, Microsoft Research](https://www.microsoft.com/en-us/research/wp-content/uploads/2016/02/Criminisi_PhDThesis.pdf)
14. [Camera & Transformations: Camera Implementation, Vulkan Documentation Project](https://docs.vulkan.org/tutorial/latest/Building_a_Simple_Engine/Camera_Transformations/04_camera_implementation.html)
15. [Pinhole Image Formation and Linear Perspective, Computational Photography, MIT CSAIL](https://people.csail.mit.edu/fredo/comp-photo-book/02-fundamentals-02-pinhole-image-formation-and-linear-perspective.html)
16. [Painting — Perspective (Alberti), National Museum of American History, Smithsonian](https://americanhistory.si.edu/it/collections/object/nmah_694622)
17. [Gaspard Monge, MacTutor History of Mathematics, University of St Andrews](https://mathshistory.st-andrews.ac.uk/Strick/monge.pdf)
18. [Descriptive geometry, Encyclopedia of Mathematics](https://encyclopediaofmath.org/wiki/Descriptive_geometry)
19. [Design Handbook: Engineering Drawing and Sketching, Design and Manufacturing I, Mechanical Engineering, MIT OpenCourseWare](https://ocw.mit.edu/courses/2-007-design-and-manufacturing-i-spring-2009/pages/related-resources/drawing_and_sketching/)

---
*Initially written Sep 17, 2026 · Reviewed: Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 几何学与拓扑学 › Projective and affine geometry

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/3d-projection

English original: https://www.edgepedia.org/3d-projection
