Get list of points on the left and right edges of the blob.

Namespace:  AForge.Imaging
Assembly:  AForge.Imaging (in AForge.Imaging.dll) Version: 2.2.5.0 (2.2.5.0)

Syntax

C#
public void GetBlobsLeftAndRightEdges(
	Blob blob,
	out List<IntPoint> leftEdge,
	out List<IntPoint> rightEdge
)

Parameters

blob
Type: AForge.Imaging..::.Blob
Blob to collect edge points for.
leftEdge
Type: System.Collections.Generic..::.List<(Of <(IntPoint>)>) %
List of points on the left edge of the blob.
rightEdge
Type: System.Collections.Generic..::.List<(Of <(IntPoint>)>) %
List of points on the right edge of the blob.

Remarks

The method scans each line of the blob and finds the most left and the most right points for it adding them to appropriate lists. The method may be very useful in conjunction with different routines from AForge.Math.Geometry, which allow finding convex hull or quadrilateral's corners.

Note:Both lists of points are sorted by Y coordinate - points with smaller Y value go first.

Exceptions

ExceptionCondition
System..::.ApplicationExceptionNo image was processed before, so blob can not be extracted.

See Also