Ask Your Question

bazz-dee's profile - activity

2017-03-06 05:34:20 -0600 commented question cvCalibrateCamera2 assertion

I do use the old c-api, as it would be a lot of work to change it.

2017-03-06 05:24:08 -0600 asked a question cvCalibrateCamera2 assertion

Hello,

after using OpenCV 2.4.4 for long time now i decides to take the step to upgrade to OpenCV 3.2.0 but i have some troubles bringing the distortion correction back to work.

The cvCalibrateCamera2 function tries to convert the points to homogeneous coordinates but always runs into an assertion in convertPointsHomogeneous: CV_Assert( _dst.fixedType() );

As the assertion handles a Mat that is defined in cvCalibrateCamera2 it seems like this is an internal error of OpenCV.

OpenCV Error: Assertion failed (_dst.fixedType()) in cv::convertPointsHomogeneous, file D:\Repositories\OpenCV\modules\calib3d\src\fundam.cpp, line 1029

2013-10-07 07:36:51 -0600 asked a question Intrinsic initialisation

Hello,

i just came around a problem, that i was not able to calibrate a camera when using normalized points and there an image size of 1x1. The reason is found in the cvInitIntrinsicParams2D function where the principal point is initialized to:

a[2] = (imageSize.width - 1)*0.5;

a[5] = (imageSize.height - 1)*0.5;

So the principal point will be initialized to zero which is leading to wrong results. When i manually set the principal point to 0.5/0.5 after this point in the code, the calibration will give me good results.

So is there any reason why normalized coordinates are not allowed for calibration? Just wanted to ask for a reason before submitting a patch.

Bastian