/** @brief Reconstructs points by triangulation.
@param projMatr1 3x4 projection matrix of the first camera.
@param projMatr2 3x4 projection matrix of the second camera.
@param projPoints1 2xN array of feature points in the first image. In case of c++ version it can
be also a vector of feature points or two-channel matrix of size 1xN or Nx1.
@param projPoints2 2xN array of corresponding points in the second image. In case of c++ version
it can be also a vector of feature points or two-channel matrix of size 1xN or Nx1.
@param points4D 4xN array of reconstructed points in homogeneous coordinates.
The function reconstructs 3-dimensional points (in homogeneous coordinates) by using their
observations with a stereo camera. Projections matrices can be obtained from stereoRectify.
@note
Keep in mind that all input data should be of float type in order for this function to work.
@sa
reprojectImageTo3D
*/
opencv已有但不知道的函数
最新推荐文章于 2023-10-26 11:53:29 发布
本文介绍了OpenCV中不常被注意到的几个关键函数,包括`triangulatePoints`用于三角化点,`convertPointsFromHomogeneous`用于从齐次坐标转换点,以及`projectPoints`用于投影点到图像平面上。通过实例展示了如何使用这些函数进行三维重建,如从两幅图像的投影点计算3D点,并将3D点转换为齐次坐标。此外,还提到了获取3x3子矩阵的方法和点类型转换为关键点的技巧。
摘要由CSDN通过智能技术生成