GRIP icon indicating copy to clipboard operation
GRIP copied to clipboard

"Find Blobs" doesn't expose convexity or inertia parameters

Open fixermark opened this issue 6 years ago • 1 comments

The "Find Blobs" operation lacks attachment for convexity or inertia parameters, and therefore uses the defaults from OpenCV (filterByInertia=true, minInertiaRatio=0.1f, maxInertiaRatio = MAX_FLOAT ; filterByConvexity = true; minConvexity = 0.95f; maxConvexity= MAX_FLOAT). As a result, the blob detector is biased for very smooth, closed blobs, making shapes like the attached very difficult to detect.

Exposing these options would make it easier to tune for oddly-shaped shapes.

nocontour

fixermark avatar Jan 23 '18 03:01 fixermark

Would you be willing to open a PR with this change. I think you can add it to the bottom of the list of parameters without breaking the backwards compatibility of the save files.

JLLeitschuh avatar Jan 23 '18 16:01 JLLeitschuh