[−][src]Function opencv::ccalib::undistort_image
pub fn undistort_image(
distorted: &dyn ToInputArray,
undistorted: &mut dyn ToOutputArray,
k: &dyn ToInputArray,
d: &dyn ToInputArray,
xi: &dyn ToInputArray,
flags: i32,
knew: &dyn ToInputArray,
new_size: Size,
r: &dyn ToInputArray
) -> Result<()>
Undistort omnidirectional images to perspective images
Parameters
- distorted: The input omnidirectional image.
- undistorted: The output undistorted image.
- K: Camera matrix .
- D: Input vector of distortion coefficients .
- xi: The parameter xi for CMei's model.
- flags: Flags indicates the rectification type, RECTIFY_PERSPECTIVE, RECTIFY_CYLINDRICAL, RECTIFY_LONGLATI and RECTIFY_STEREOGRAPHIC
- Knew: Camera matrix of the distorted image. If it is not assigned, it is just K.
- new_size: The new image size. By default, it is the size of distorted.
- R: Rotation matrix between the input and output images. By default, it is identity matrix.
C++ default parameters
- knew: cv::noArray()
- new_size: Size()
- r: Mat::eye(3, 3, CV_64F)