I'm using OpenCV (Canny + findCountours) to find external contours of objects. The curve drawn is typically almost, but not entirely, closed. I'd like to close it - to find the region it bounds.
How do I do this?
Things considered:
- Dilation - the examples I've seen show this after Canny, although it would seem to me it makes more sense to do this after findContours
- Convex hull - might work, though I'm really trying to complete a curve
- Shape simplification - related, but not exactly what I want