Search
u1
u2
vp1
vp2
07_vp1.pdf
07_vp2.pdf
07_vp1_zoom.pdf
07_vp2_zoom.pdf
K
angle
C1
C2
R1
R2
07_box_wire1.pdf
07_box_wire2.pdf
07_box_wire3.pdf
07_seq_wire.avi
07_box_tx.png
07_seq_tx.avi
07_data.mat
K(3, 3) = 1
Let $R_1$, $C_1$ is the first camera pose and $R_2$, $C_2$ is the second camera pose. Let $\lambda$ be the interpolation parameter taking value from 0 (meaning the first camera) to 1 (meaning the second camera). Then use following
$C = (1-\lambda) C_1 + \lambda C_2$
$R = (R_2 R_1^\top)^\lambda R_1$
Note that we are using matrix power here. Due to numeric accuracy, it is necessary to take only the real part of the result.
C = C2 * lambda + C1 * (1 - lambda);
C = C2 * lambda + C1 * (1 - lambda)