Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Find the distortion coefficient and camera matrix : cvCalibrateCamera 2 error!

Hi, I was trying to find out the camera matrix and distortion coefficients using cvCalibrateCamera2. There were no compilation errors, but when I am trying to execute the program it gives : OpenCV error: Sizes of input arguments do not match( both matrices must have the same number of points) in cvConvertPointsHomogenous, file /build/buildd/opencv-2.3.1/modules/calib3d/src/fundam.cpp

But the object point matrix and image point matrix should have different sizes . My object point matrix is a 4 X 3 matrix and image point matrix is a 4 X 2 matrix. What could be wrong? :-/

Find Finding the distortion coefficient and camera matrix : cvCalibrateCamera 2 error!

Hi, I was trying to find out the camera matrix and distortion coefficients using cvCalibrateCamera2. There were no compilation errors, but when I am trying to execute the program it gives : OpenCV error: Sizes of input arguments do not match( both matrices must have the same number of points) in cvConvertPointsHomogenous, file /build/buildd/opencv-2.3.1/modules/calib3d/src/fundam.cpp

But the object point matrix and image point matrix should have different sizes . My object point matrix is a 4 X 3 matrix and image point matrix is a 4 X 2 matrix. What could be wrong? :-/

Finding the distortion coefficient and camera matrix : cvCalibrateCamera 2 error!

Hi, I was trying to find out the camera matrix and distortion coefficients using cvCalibrateCamera2. There were no compilation errors, but when I am trying to execute the program it gives : :

OpenCV error: Sizes of input arguments do not match( both matrices must have the same number of points) in cvConvertPointsHomogenous, file /build/buildd/opencv-2.3.1/modules/calib3d/src/fundam.cpp

But I was using the object point following piece of code to print out the camera matrix and image point distortion matrix should have different sizes . My object point matrix is a 4 X 3 matrix and image point matrix is a 4 X 2 matrix. What :

for(int i=0; i<3;i++) { for(int j=0;j<3;j++) {printf("%f", cvmGet(intrinsic,i,j);} } for(int k=0;k<5;k++) printf("%f",cvmGet(coef_distortion,k,0));

On debugging , I found that the error flashes in the above lines during execution of my program, what could be wrong? :-/wrong?

Finding the distortion coefficient and camera matrix : cvCalibrateCamera 2 error!

Hi, I was trying to find out the camera matrix and distortion coefficients using cvCalibrateCamera2. There were no compilation errors, but when I am trying to execute the program it gives :

OpenCV error: Sizes of input arguments do not match( both matrices must have the same number of points) in cvConvertPointsHomogenous, file /build/buildd/opencv-2.3.1/modules/calib3d/src/fundam.cpp

I was using the following piece of code to print out the camera matrix and distortion matrix :

for(int i=0; i<3;i++)
{
 for(int j=0;j<3;j++)
{printf("%f", cvmGet(intrinsic,i,j);}
 {
printf("%f", cvmGet(intrinsic,i,j);
}
}
for(int k=0;k<5;k++)
printf("%f",cvmGet(coef_distortion,k,0));

printf("%f",cvmGet(coef_distortion,k,0));

On debugging , I found that the error flashes in the above lines during execution of my program, what could be wrong?

Finding the distortion coefficient and camera matrix : cvCalibrateCamera 2 error!

Hi, Hi,

I was trying to find out the camera matrix and distortion coefficients using cvCalibrateCamera2. cvCalibrateCamera2. There were no compilation errors, but when I am trying to execute the program it gives :

OpenCV error: Sizes of input arguments do not match( both matrices must have the same number of points) in cvConvertPointsHomogenous, file /build/buildd/opencv-2.3.1/modules/calib3d/src/fundam.cpp

I was using size of the following piece matrix storing object points in 4 x 3 and that of code to print out the camera matrix and distortion matrix :

for(int i=0; i<3;i++)
{
  for(int j=0;j<3;j++)
  {
    printf("%f", cvmGet(intrinsic,i,j);
  }
}
for(int k=0;k<5;k++)
printf("%f",cvmGet(coef_distortion,k,0));

On debugging storing image points in 4 X2 , I found that the error flashes in the above lines during execution of my program, what could be wrong?