Click or drag to resize
Accord.NET (logo)

SimpleShapeCheckerLengthError Property

Maximum allowed difference in sides' length (relative to shapes' size), [0, 1].

Namespace:  Accord.Math.Geometry
Assembly:  Accord.Math (in Accord.Math.dll) Version: 3.8.0
public float LengthError { get; set; }
Request Example View Source

Property Value

Type: Single

The values sets maximum allowed difference between two sides' length to treat them as equal. The error value is set relative to shapes size and measured in [0, 1] range, which corresponds to [0%, 100%] range. Absolute length error in pixels is calculated as:

LengthError * ( width + height ) / 2
, where width and height is the size of bounding rectangle for the specified shape.

Default value is set to 0.1 (10%).

See Also