Table of Contents

Method InitUndistortRectifyMap

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

InitUndistortRectifyMap(InputArray, InputArray, InputArray, InputArray, Size, int, OutputArray, OutputArray)

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.

public static void InitUndistortRectifyMap(InputArray k, InputArray d, InputArray r, InputArray p, Size size, int m1type, OutputArray map1, OutputArray map2)

Parameters

k InputArray

Camera matrix

d InputArray

Input vector of distortion coefficients (k_1, k_2, k_3, k_4).

r InputArray

Rectification transformation in the object space: 3x3 1-channel, or vector: 3x1/1x3 1-channel or 1x1 3-channel

p InputArray

New camera matrix (3x3) or new projection matrix (3x4)

size Size

Undistorted image size.

m1type int

Type of the first output map that can be CV_32FC1 or CV_16SC2 . See convertMaps() for details.

map1 OutputArray

The first output map.

map2 OutputArray

The second output map.