[][src]Function opencv::calib3d::fisheye_init_undistort_rectify_map

pub fn fisheye_init_undistort_rectify_map(
    k: &dyn ToInputArray,
    d: &dyn ToInputArray,
    r: &dyn ToInputArray,
    p: &dyn ToInputArray,
    size: Size,
    m1type: i32,
    map1: &mut dyn ToOutputArray,
    map2: &mut dyn ToOutputArray
) -> Result<()>

Computes undistortion and rectification maps for image transform by cv::remap(). If D is empty zero distortion is used, if R or P is empty identity matrixes are used.

Parameters

  • K: Camera intrinsic matrix inline formula.
  • D: Input vector of distortion coefficients inline formula.
  • R: Rectification transformation in the object space: 3x3 1-channel, or vector: 3x1/1x3 1-channel or 1x1 3-channel
  • P: New camera intrinsic matrix (3x3) or new projection matrix (3x4)
  • size: Undistorted image size.
  • m1type: Type of the first output map that can be CV_32FC1 or CV_16SC2 . See convertMaps() for details.
  • map1: The first output map.
  • map2: The second output map.