CameraCalibration2 problem

CameraCalibration2 problem

hi ! I have tow question

first : when I use CameraCalibration2 function in opencv I get exception tell me that opjects point must be 1xn or nx1 for 3 channel I write this code

CvMat * points3;

points3 = cvCreateMat(1,35,CV_32FC3);

CvMat * numPoints = cvCreateMat(1,1,CV_32SC1);

numPoints->data.fl[0] = 35.0f;

CvMat * points2 = cvCreateMat(1,35,CV_32FC2);

m_Intrinsic = cvCreateMat(3,3,CV_32FC1);

m_DitrorationCoeff = cvCreateMat(1,4,CV_32FC1);

m_Rotation = cvCreateMat(1,3,CV_32FC1);

m_Translation = cvCreateMat(1,3,CV_32FC1);

cvCalibrateCamera2(points2,points3,numPoints,imageSize,m_Intrinsic,m_DitrorationCoeff,m_Rotation,m_Translation,0);

if any one can tell me the problem I will be very thanks

second : did the opencv have function make 3d reconstruction be getting 2 2d image points

thandks

1 contribution / 0 nouveau(x)
Reportez-vous à notre Notice d'optimisation pour plus d'informations sur les choix et l'optimisation des performances dans les produits logiciels Intel.