[][src]Function opencv::sfm::compute_orientation

pub fn compute_orientation(
    x1: &dyn ToInputArray,
    x2: &dyn ToInputArray,
    r: &mut dyn ToOutputArray,
    t: &mut dyn ToOutputArray,
    s: f64
) -> Result<()>

Computes Absolute or Exterior Orientation (Pose Estimation) between 2 sets of 3D point.

Parameters

  • x1: Input first 3xN or 2xN array of points.
  • x2: Input second 3xN or 2xN array of points.
  • R: Output 3x3 computed rotation matrix.
  • t: Output 3x1 computed translation vector.
  • s: Output computed scale factor.

Find the best transformation such that xp=projection*(sRx+t) (same as Pose Estimation, ePNP). The routines below are only for the orthographic case for now.