OpenCV- 使用 cvProjectPoints2 时的"Homogeneous coordinates are not supported"

OpenCV-"Homogeneous coordinates are not supported" when using cvProjectPoints2

本文关键字:are not supported coordinates Homogeneous cvProjectPoints2 时的 OpenCV- 使用      更新时间:2023-10-16

"OpenCV错误:未知函数中的错误参数(不支持同质坐标),文件......modulescalib3dsrccalibration.cpp,第826行"

我想我得到这个错误时,将以下矩阵传递到cvProjectPoints2()函数

CvMat *dstPoints2D = cvCreateMat (4, 1, CV_32FC3);
cvProjectPoints2(srcPoints3D,rotation,translation,intrinsic_matrix,NULL,dstPoints2D);

我正在使用OpenCV 2.3.0

完整代码:http://pastebin.com/TYthn6Nt

输出需要是两个通道。将声明更改为CvMat *dstPoints2D = cvCreateMat (4, 1, CV_32FC2);,您将不会得到错误。