C++:
void triangulatePoints
(InputArray projMatr1, InputArray projMatr2, InputArray projPoints1, InputArray projPoints2, OutputArray points4D)
Python:
cv2.
triangulatePoints
(projMatr1, projMatr2, projPoints1, projPoints2[, points4D]) → points4D
C:
void cvTriangulatePoints
(CvMat* projMatr1, CvMat* projMatr2, CvMat* projPoints1, CvMat* projPoints2, CvMat* points4D)
Parameters: |
|
---|
The function reconstructs 3-dimensional points (in homogeneous coordinates) by using their observations with a stereo camera. Projections matrices can be obtained from stereoRectify()
.
与函数 reprojectImageTo3D() 不同,这里不需要视差。
triangulatePoints()仅需要内参数和外参数,讲匹配点的像素坐标转换到相机坐标(
projPoints1 ,projPoints2)。