perspective
@ -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 二点透视
|
||||
 假设移动距离L=6,M=5,N=1,φ=40$^。$
|
||||
 假设移动距离L=3,M=3,N=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 三点透视
|
||||
 假设移动距离L=1,M=-3,N=4,φ=45$^。$,θ=30$^。$
|
||||
 假设移动距离L=3,M=-3,N=2,φ=60$^。$,θ=60$^。$
|
||||
<center>
|
||||
<img src="pic/Figure_6.png" width="400">
|
||||
|
||||
|
||||
@ -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)
|
||||
#转为笛卡尔坐标系
|
||||
|
||||
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 112 KiB After Width: | Height: | Size: 73 KiB |
|
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 34 KiB |
|
Before Width: | Height: | Size: 108 KiB After Width: | Height: | Size: 160 KiB |