cv::projectPoints crashes when distortion coefficients array is empty (Bug #1700)
Description
The current implementation of cv::projectPoints does not check if given distortion coefficients array is empty. As a result it passes a non-NULL coefficient matrix to cvProjectPoints2 even if there are no distortion coefficients.
On the other hand, cvProjectPoints2 performs some assertions on distCoeffs matrix when it is not NULL (specifically it checks the number of matrix elements and does not allow 0 elements).
See cvProjectPoints2 call in cv::projectPoints in trunk:
This is a copy of #1685 with corrected title and description.
History
Updated by Marina Kolpakova almost 13 years ago
Thanks for reporting! Fixed now (r7558).
- Status changed from Open to Done