perspective

This commit is contained in:
CalebChen 2022-10-11 08:38:01 +08:00
parent bd4247e28f
commit 54c0eae072
6 changed files with 4 additions and 4 deletions

View File

@ -116,7 +116,7 @@ $P_{投影}=\begin{bmatrix} 1&0&0&0\\0&1&0&0\\0&0&1&0 \\ -x_0&-y_0&0&1 \\ \end{b
</center>
## 3.2 二点透视
&emsp;假设移动距离L=6M=5N=1φ=40$^。$
&emsp;假设移动距离L=3M=3N=2φ=60$^。$
<center>
<img src="pic/Figure_4.png" width="400">
@ -127,7 +127,7 @@ $P_{投影}=\begin{bmatrix} 1&0&0&0\\0&1&0&0\\0&0&1&0 \\ -x_0&-y_0&0&1 \\ \end{b
</center>
## 3.3 三点透视
&emsp;假设移动距离L=1M=-3N=4φ=45$^。$,θ=30$^。$
&emsp;假设移动距离L=3M=-3N=2φ=60$^。$,θ=60$^。$
<center>
<img src="pic/Figure_6.png" width="400">

View File

@ -138,9 +138,9 @@ points= np.array([[0,0,0,1],
#获得透视移动后的点和投影后的点
#per_points=one_point_perspective(6,5,1,view_point,points)
#per_points=two_point_perspective(6,5,1,40,view_point,points)
#per_points=two_point_perspective(3,3,2,60,view_point,points)
#透视移动后的点
per_points=three_point_perspective(1,-3,3,45,30,view_point,points)
per_points=three_point_perspective(3,3,2,60,60,view_point,points)
#投影后的点
pro_points=projection_trans(view_point,per_points)
#转为笛卡尔坐标系

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 112 KiB

After

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 108 KiB

After

Width:  |  Height:  |  Size: 160 KiB