cvCalibrateCamera2 broken in python-opencv
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenCV |
Unknown
|
Unknown
|
|||
opencv (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: python-opencv
Using version 1.0.0-3ubuntu3 of python-opencv.
The documentation produced via "pydoc opencv.
cvCalibrateCame
As you can see it lists 8 arguments. However, when providing all 8, it raises the exception:
TypeError: cvCalibrateCame
Even when providing the bare minimum of arguments (5, according to pydoc) with all the matrices set up properly (in other words, exactly the same as a working version in C), it raises this error:
RuntimeError: openCV Error:
Status=Bad argument
function name=cvCalibrat
error message=the output array of rotation vectors must be 3-channel 1xn or nx1 array or 1-channel nx3 or nx9 array, where n is the number of views
file_name=
line=1324
I have noticed that in C, the function prototype of cvCalibrateCamera2 includes an extra argument "distortion_
void cvCalibrateCamera2( const CvMat* object_points, const CvMat* image_points, const CvMat* point_counts, CvSize image_size, CvMat* intrinsic_matrix, CvMat* distortion_coeffs, CvMat* rotation_
Could it be that the mapping from Python arguments to C arguments is ill-defined?
Is this symptom still reproducible in 8.10 or 9.04?