python projectPoints doesn't allow null or empty distCoeffs (Bug #1718)
Description
According to the documentation, setting distCoeffs to null or empty should cause distortion coefficients to be assumed. However, in python, using None raises an assertion error:
/OpenCV-2.3.1/modules/core/src/matrix.cpp:272: error: (-215) 0 <= colRange.start && colRange.start <= colRange.end && colRange.end <= m.cols in function Mat
and using array([]) complains that the distortion coefficients are the wrong shape:
OpenCV-2.3.1/modules/calib3d/src/calibration.cpp:882: error: (-5) Distortion coefficients must be 1x4, 4x1, 1x5, 5x1, 1x8 or 8x1 floating-point vector in function cvProjectPoints2
History
Updated by Vadim Pisarevsky over 12 years ago
- Target version deleted ()
Updated by Kirill Kornyakov over 12 years ago
- Target version set to Next Hackathon
Updated by Vadim Pisarevsky about 12 years ago
- Affected version set to 2.4.3
- Target version deleted (
Next Hackathon)
Updated by Vadim Pisarevsky about 12 years ago
- Assignee set to Vadim Pisarevsky
Updated by Kirill Kornyakov about 12 years ago
- Target version set to 2.4.4