Answer the question
In order to leave comments, you need to log in
How to decide on the type of shape (square or circle) in a binary image?
Greetings. There is an array of zeros and ones representing a binary image. It can show geometric shapes. Example
:
000000000000000
000111111000000
000111111000000
000111111000000
000111111000000
000111111000000
000111111000000
00000000
At the moment, the markup of figures and the collection of parameters characterizing a geometric figure have been implemented:
Answer the question
In order to leave comments, you need to log in
The neural network will give you a probability and is great for these inputs. Smoke articles on them, starting with the simplest ones where numbers are recognized - that's your case right there.
I really like your (especially) second and third characteristics. I would propose to build a two-dimensional space from their values, calculate the probability function on it, and as a result solve the problem of a curve separating areas that are more characteristic of squares and more characteristic of circles.
The Image Processing toolbox (MatLab) has a regionprops function. Example .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question