Function opencv::sfm::projection_from_k_rt

source ·
pub fn projection_from_k_rt(
    k: &impl ToInputArray,
    r: &impl ToInputArray,
    t: &impl ToInputArray,
    p: &mut impl ToOutputArray
) -> Result<()>
Expand description

Get projection matrix P from K, R and t.

§Parameters

  • K: Input 3x3 camera matrix inline formula.
  • R: Input 3x3 rotation matrix.
  • t: Input 3x1 translation vector.
  • P: Output 3x4 projection matrix.

This function estimate the projection matrix by solving the following equation: inline formula