Answer the question
In order to leave comments, you need to log in
How to determine the presence of a break in the picture?
There is a canvas on which the figure is drawn. We need an algorithm to determine whether there is one object or several in the figure. Where can one find such an algorithm?
Thanks
Answer the question
In order to leave comments, you need to log in
Breadth or depth traversal algorithm. It is also called the fill algorithm. Google it. If in one fill you painted over all the black pixels, then there is only one shape. Otherwise, if there is more than one component, there is a gap.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question