How to remove small line segments from contour?
Is there a way to remove small line segments from a contour?
For example,in this image,largest contour is specified by green color and it's approximation is specified by blue color:
As contour is a set of Point
s,I guess we can do somethings to remove segments of contours that are in red circles.For example by detecting and removing small lines or small sub contour
s or another way.But I do not know how I can do it.Please remember I want to remove them after finding contour and not before that.Do you know how I can remove them?Or any idea?
@HasanGhaforian. Can you post original image?