|
见hw10补充题五
3) 一个三角形区域的像,一定还是一个三角形区域吗?
Planar Homography
正方形区域$\{(x,y):\abs x\le1,\abs y\le1\}$经过射影变换$\left(
\begin{array}{cc|c}
1 & 0 & 0 \\
0 & 1 & 0 \\\hline
0 & -2 & 1 \\
\end{array}
\right)$变成什么?
根据定义写出$\begin{cases}x'=\frac{x}{1-2 y}\\
y'=\frac{y}{1-2 y}\end{cases}\implies\begin{cases}x=\frac{x'}{1+2y'}\\y=\frac{y'}{1+2y'}\end{cases}$
\begin{align*}
\abs x\le1&\iff \abs{x'}\le\abs{1+2y'}\\
\abs y\le1&\iff y'>-\frac13\vee y'<-1\end{align*}
把三角形$\{(x,y):x\le y,\abs x\le1,\abs y\le1\}$变成什么?
\[x\le y\iff(y'-x')(1+2y')\ge0\]
- RegionPlot[(y > -(1/3) || y < -1) && Abs[x] < Abs[1 + 2 y], {x, -5, 5}, {y, -3, 2}]
Copy the Code |
| - RegionPlot[(y > -(1/3) || y < -1) && Abs[x] < Abs[1 + 2 y] && (y - x) (1 + 2 y) > 0, {x, -5, 5}, {y, -3, 2}]
Copy the Code |
|
|
|