Function opencv::ccalib::undistort_points
source · pub fn undistort_points(
distorted: &impl ToInputArray,
undistorted: &mut impl ToOutputArray,
k: &impl ToInputArray,
d: &impl ToInputArray,
xi: &impl ToInputArray,
r: &impl ToInputArray,
) -> Result<()>
Expand description
Undistort 2D image points for omnidirectional camera using CMei’s model
§Parameters
- distorted: Array of distorted image points, vector of Vec2f or 1xN/Nx1 2-channel Mat of type CV_32F, 64F depth is also acceptable
- K: Camera matrix
.
- D: Distortion coefficients
.
- xi: The parameter xi for CMei’s model
- R: Rotation trainsform between the original and object space : 3x3 1-channel, or vector: 3x1/1x3 1-channel or 1x1 3-channel
- undistorted: array of normalized object points, vector of Vec2f/Vec2d or 1xN/Nx1 2-channel Mat with the same depth of distorted points.