Perform the task, which consists in the following:
there is a reference circle of a certain radius;
3 user draw a circle by hand, and the program needs to determine which circle is more consistent with the reference.
Each will be circular arbitrary figure.
These figures compare algorithmically or mathematically?
Alexandria_Schmitt answered on July 2nd 19 at 14:00
To calculate the average value of the radius from 0 to 2 PI the standard deviation from this average. Can I have the frequency deviations to include in the analysis, i.e. how many times a drawn circle crosses the reference, the average (the lower the better).
roger.Rice9 answered on July 2nd 19 at 14:02
The easiest option is to cut a circle from the shapes by aligning the centers and to calculate the area of the module. Where the area there is less figure and more "similar".
The centre pieces you can find different ways it is best stupid to split it in half by area "top" and "bottom" and "left" and "right".
If the space is difficult - you can use a simple mechanism:
Cut along the X-axis,Y on an even number of equal segments (for example 4). Coordinate between middle segments (end of 2nd and beginning of 3rd) and will be conditional center. If the figure is not quite curve (i.e. a circle similar to circle or ellipse) the center almost get to the center of the area.
halle answered on July 2nd 19 at 14:04
Before comparing the drawn circles with a reference, you need to determine the measure on which you compare. Possible options:
3. The location of the center
About the location of the center you have already written.
Area you can calculate the points located inside the drawn shape (Loop for x and y verify the identity of the points drawn in the figure).
To calculate radius, you need to choose the number of partitions of the circle, 360, 100, 50, and calculate the deviation (linear, quadratic, or any suitable) radius in these areas. In the simplest case you can just calculate the maximum and minimum radius of the drawn circle and compare them.