stereoRectifyUncalibrated outliers filtering is broken (including fix) (Bug #2367)
Description
The threshold parameter of stereoRectifyUncalibrated can be used to ignore outliers. But there is a bug that prevent this from working (except if the outliers are all at the end of the points array).
The problem is in calibration.cpp:2696. Instead of "j > i", it should read "j < i". When there is an outlier, j will lag behind and the next inlier should overwrite the outlier in the point array.
I attached a python script that triggers the bug on a sample. I also include the (easy) patch.
Associated revisions
fixed outlier filtering in cvStereoRectifyUncalibrated (bug #2367)
Merge pull request #2367 from jet47:fix-3544
History
Updated by Andrey Pavlenko over 12 years ago
- Assignee set to Ilya Lysenkov
- Start date deleted (
2012-09-19)
Updated by Vadim Pisarevsky over 12 years ago
thanks! your patch was applied in c3c49a3
- Target version set to 2.4.3
- Assignee changed from Ilya Lysenkov to Vadim Pisarevsky
Updated by Vadim Pisarevsky over 12 years ago
- Status changed from Open to Done