I have an image that has various blobs and I want to get only blobs that do not have holes.
I tried using SuzukiContourProcessor.findContours
to accomplish that, but it returns Contour
s of types ContourType.HOLE
and ContourType.OUTER
. Is there a way to convert a ContourType.OUTER
to a list of ContourType.HOLE
somehow?
Or is there a better way to accomplish what I'm after?