cv::projectFeatures crashes when distortion coefficients array is empty (Bug #1685)
Description
The current implementation of cv::projectFeatures 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).
History
Updated by Marina Kolpakova almost 13 years ago
cv::projectFeatures is not a part of OpenCV library.
Please, report the bug to its authors of this function.
- Status changed from Open to Cancelled
- Target version set to 2.4.0
- Assignee set to Marina Kolpakova
Updated by Miron Moderau almost 13 years ago
Marina Kolpakova wrote:
cv::projectPoints is not a part of OpenCV library.
Please, report the bug to its authors of this function.
I'm confused. The function is clearly declared in one of OpenCV headers:
http://code.opencv.org/projects/opencv/repository/entry/trunk/opencv/modules/calib3d/include/opencv2/calib3d/calib3d.hpp#L489
How come it is not part of OpenCV library?
Updated by Andrey Kamaev almost 13 years ago
What function this ticked is about?
If it is about cv::projectFeatures
then resolution is fully correct.
If you have found a bug in cv::projectPoints
then, please, write a correct title and description.
Thanks,
Andrey
Updated by Miron Moderau almost 13 years ago
I issued a new bug report (#1700) with correct title and description.
I'm sorry for the confusion.
Thank you,
Miron