cv::projectPoints crashes when distortion coefficients array is empty (Bug #1700)


Added by Miron Moderau almost 13 years ago. Updated almost 13 years ago.


Status:Done Start date:2012-03-14
Priority:Normal Due date:
Assignee:Marina Kolpakova % Done:

0%

Category:calibration, 3d
Target version:2.4.0
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

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:

http://code.opencv.org/projects/opencv/repository/entry/trunk/opencv/modules/calib3d/src/calibration.cpp#L3365

This is a copy of #1685 with corrected title and description.


Associated revisions

Revision 4eaced12
Added by Marina Kolpakova almost 13 years ago

fixed bug #1700

Revision 106d5eda
Added by Andrey Pavlenko over 11 years ago

Merge pull request #1700 from ilya-lavrenov:ocl_bitwise_perf

History

Updated by Marina Kolpakova almost 13 years ago

Thanks for reporting! Fixed now (r7558).

  • Status changed from Open to Done

Also available in: Atom PDF