Skip to content

Indices from convexHull not monotonic #4539

@opencv-pushbot

Description

@opencv-pushbot

Transferred from http://code.opencv.org/issues/2922

|| Kirt Lillywhite on 2013-03-26 20:47
|| Priority: Normal
|| Affected: 2.4.4
|| Category: imgproc, video
|| Tracker: Bug
|| Difficulty: None
|| PR: 
|| Platform: None / None

Indices from convexHull not monotonic

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.

History

Kirt Lillywhite on 2013-03-26 20:56
-   File mask.png added

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions