Indices from convexHull not monotonic (Bug #2922)
Description
From a segmented image I find the contour and then try to find the convexity defects from that contour. The largest convexity defect is wrong. Looking through the opencv code I think the reason is the indices from convexHull are in decreasing order except in one spot. This causes the convexityDefects function to mess up. The attached code shows the problem. I'm using 2.4.4 compiled from source on Archlinux x86-64. During compilation I turned off CUDA and enable QT, everything else is set to the default options.
Associated revisions
Merge pull request #2922 from ilya-lavrenov:mac_fix
History
Updated by Kirt Lillywhite almost 12 years ago
- File mask.png added
Updated by Maksim Shabunin over 9 years ago
Issue has been transferred to GitHub: https://github.com/Itseez/opencv/issues/4539