跳到主要内容

東京大学 情報理工学系研究科 創造情報学専攻 2009年8月実施 筆記試験 第2問

Author

itsuitsuki

Description

Answer the following questions.

(1) As Figure 1 shows, an orthogonal coordinate frame ΣC\Sigma_C of a camera with the lens axis CZCZ and the projection plane SS is placed at the point CC. The plane SS is orthogonal to the lens axis CZCZ and has the distance ff from CC. The point QQ is projected to the point PP on the plane SS with the coordinates PC=(PX,PY,f)t\mathbf{P}_C=(P_X,P_Y,f)^t in ΣC\Sigma_C. The coordinates of three orientation vectors CX,CY,CZCX,CY,CZ are described as XW=(XX,XY,XZ)t\mathbf{X}_\mathbf{W}=(X_X,X_Y,X_Z)^t, YW=(YX,YY,YZ)t\mathbf{Y}_\mathbf{W}=(Y_X,Y_Y,Y_Z)^t and ZW=(ZX,ZY,ZZ)t\mathbf{Z}_\mathbf{W}=(Z_X,Z_Y,Z_Z)^t, and the position vector of CC is CW=(CX,CY,CZ)t\mathbf{C}_\mathbf{W}=(C_X,C_Y,C_Z)^t in the coordinate frame ΣW\Sigma_W. The superscript tt indicates transpose.

Assume the distance from CC to QQ is dd, show the vector QC\mathbf{Q}_C from the point CC to the point QQ with PC\mathbf{P}_C and dd. When the vector QW\mathbf{Q}_\mathbf{W} is the position vector of QQ and the rotation matrix of ΣC\Sigma_C is RCR_C in ΣW\Sigma_W, we have QW=RCQC+CW\mathbf{Q}_\mathbf{W}=R_C\mathbf{Q}_C+\mathbf{C}_\mathbf{W}. Show the elements of the rotation matrix RCR_C.

(2) When we observe the point QQ from the camera placed at a point AA, the projection point is PA=(aX,aY,f)t\mathbf{P}_A=(a_X,a_Y,f)^t in the camera coordinate frame ΣA\Sigma_A. Then, we translate the camera with the distance \ell along the axis XX to a point BB and rotate it around the axis YY of the translated coordinate frame with the angle α\alpha. The rotated camera coordinate frame is ΣB\Sigma_B. The projection point becomes PB=(bX,bY,f)t\mathbf{P}_B=(b_X,b_Y,f)^t in ΣB\Sigma_B. Show the method to get the distance dAd_A from AA to QQ and the distance dBd_B from BB to QQ, when PA=PB\mathbf{P}_A=\mathbf{P}_B is obtained. Assume there is no error in the translation and rotation, and the XZXZ planes of ΣA\Sigma_A and ΣB\Sigma_B are aligned in the same plane.

(3) Two cameras are placed at the points MM and NN, respectively. Let the position vectors of MM and NN be MW\mathbf{M}_\mathbf{W} and NW\mathbf{N}_\mathbf{W} and the rotation matrices be RMR_M and RNR_N. The projection points of QQ on these two cameras become PM\mathbf{P}_M and PN\mathbf{P}_N. As the position vectors QM\mathbf{Q}_\mathbf{M} and QN\mathbf{Q}_\mathbf{N} of the point QQ are the same in the coordinate frame ΣW\Sigma_W. Denote the condition which the projection points PM\mathbf{P}_M and PN\mathbf{P}_N should satisfy.

(4) Assume the projection points are described in an array and the condition in (3) is not satisfied. Let the evaluation function be J=(RMQM+MW)(RNQN+NW)2J=|(R_M\mathbf{Q}_M+\mathbf{M}_\mathbf{W})-(R_N\mathbf{Q}_N+\mathbf{N}_\mathbf{W})|^2, and consider minimizing JJ to get QW\mathbf{Q}_\mathbf{W}. Let dMd_M and dNd_N be the distances from MM and NN to QQ, respectively, when JJ is minimized. Denote dMd_M and dNd_N. Then explain the method to get QW\mathbf{Q}_\mathbf{W} in ΣW\Sigma_W with dMd_M, dNd_N.

(5) Explain the best arrangement to minimize errors when we measure a three dimensional position by two cameras such as (3).

题目描述

回答以下相机投影与三维重建问题。

  1. 如图 1,在点 CC 建立相机正交坐标系 ΣC\Sigma_C,镜头轴为 CZCZ,投影平面 SSCZCZ 正交且距 CCff。空间点 QQ 投影到 SS 上的点 PP,其相机坐标为 PC=(PX,PY,f)t\mathbf P_C=(P_X,P_Y,f)^t。在世界坐标系 ΣW\Sigma_W 中,相机三轴方向向量分别为

    XW=(XX,XY,XZ)t,YW=(YX,YY,YZ)t,ZW=(ZX,ZY,ZZ)t,\mathbf X_W=(X_X,X_Y,X_Z)^t,\quad \mathbf Y_W=(Y_X,Y_Y,Y_Z)^t,\quad \mathbf Z_W=(Z_X,Z_Y,Z_Z)^t,

    光心位置为 CW=(CX,CY,CZ)t\mathbf C_W=(C_X,C_Y,C_Z)^t,上标 tt 表示转置。若 CCQQ 的距离为 dd,用 PC,d\mathbf P_C,d 表示从 CC 指向 QQ 的向量 QC\mathbf Q_C。又已知

    QW=RCQC+CW,\mathbf Q_W=R_C\mathbf Q_C+\mathbf C_W,

    写出旋转矩阵 RCR_C 的各元素。

  2. 相机位于 AA 时,QQ 的投影为 PA=(aX,aY,f)t\mathbf P_A=(a_X,a_Y,f)^t。随后相机沿 XX 轴平移距离 \ellBB,再绕平移后坐标系的 YY 轴旋转角 α\alpha,得到坐标系 ΣB\Sigma_B,投影为 PB=(bX,bY,f)t\mathbf P_B=(b_X,b_Y,f)^t。在观测到 PA=PB\mathbf P_A=\mathbf P_B 时,说明如何求 A,QA,Q 间距离 dAd_AB,QB,Q 间距离 dBd_B。假设平移、旋转无误差,且 ΣA,ΣB\Sigma_A,\Sigma_BXZXZ 平面共面。

  3. 两台相机分别位于 M,NM,N,世界坐标位置为 MW,NW\mathbf M_W,\mathbf N_W,旋转矩阵为 RM,RNR_M,R_N,对 QQ 的投影为 PM,PN\mathbf P_M,\mathbf P_N。因为由两台相机得到的 QQ 的世界坐标应相同,写出 PM,PN\mathbf P_M,\mathbf P_N 必须满足的条件。

  4. 若投影点以数组给出且不严格满足第 3 问条件,定义

    J=(RMQM+MW)(RNQN+NW)2.J=\left|(R_M\mathbf Q_M+\mathbf M_W)-(R_N\mathbf Q_N+\mathbf N_W)\right|^2.

    通过最小化 JJQW\mathbf Q_W。设最小时从 M,NM,NQQ 的距离分别为 dM,dNd_M,d_N,求 dM,dNd_M,d_N,并说明如何由二者得到世界坐标系中的 QW\mathbf Q_W

  5. 说明用第 3 问所述双目相机测量三维位置时,为减小误差应如何布置两台相机。