Click or drag to resize
Accord.NET (logo)

SimpleShapeCheckerIsCircle Method (ListIntPoint, Point, Single)

Check if the specified set of points form a circle shape.

Namespace:  Accord.Math.Geometry
Assembly:  Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax
public bool IsCircle(
	List<IntPoint> edgePoints,
	out Point center,
	out float radius
)
Request Example View Source

Parameters

edgePoints
Type: System.Collections.GenericListIntPoint
Shape's points to check.
center
Type: AccordPoint
Receives circle's center on successful return.
radius
Type: SystemSingle
Receives circle's radius on successful return.

Return Value

Type: Boolean
Returns if the specified set of points form a circle shape or otherwise.
Remarks

Note Note
Circle shape must contain at least 8 points to be recognized. The method returns always, of number of points in the specified shape is less than 8.

See Also