triangulatePoints function
Mat
triangulatePoints(
- InputArray projMatr1,
- InputArray projMatr2,
- InputArray projPoints1,
- InputArray projPoints2, {
- OutputArray? points4D,
This function reconstructs 3-dimensional points (in homogeneous coordinates) by using their observations with a stereo camera.
void cv::triangulatePoints (InputArray projMatr1, InputArray projMatr2, InputArray projPoints1, InputArray projPoints2, OutputArray points4D);
https://docs.opencv.org/4.11.0/d9/d0c/group__calib3d.html#gad3fc9a0c82b08df034234979960b778c
Implementation
Mat triangulatePoints(
InputArray projMatr1,
InputArray projMatr2,
InputArray projPoints1,
InputArray projPoints2, {
OutputArray? points4D,
}) {
points4D ??= Mat.empty();
cvRun(
() => ccalib3d.cv_triangulatePoints(
projMatr1.ref,
projMatr2.ref,
projPoints1.ref,
projPoints2.ref,
points4D!.ref,
ffi.nullptr,
),
);
return points4D;
}