I want to detect existence of continuous or closed polygon in binary image. The image may contain polygon of variable number of edges and also there may be no polygon at all.
Here is the positive case:
And,
this one is negative case:
Is there any method in image processing or some algorithm to detect continuous polygon ?
Any kind of help is appreciated.

