Get list of points on the top and bottom 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 GetBlobsTopAndBottomEdges(
	Blob blob,
	out List<IntPoint> topEdge,
	out List<IntPoint> bottomEdge
)

Parameters

blob
Type: AForge.Imaging..::.Blob
Blob to collect edge points for.
topEdge
Type: System.Collections.Generic..::.List<(Of <(IntPoint>)>) %
List of points on the top edge of the blob.
bottomEdge
Type: System.Collections.Generic..::.List<(Of <(IntPoint>)>) %
List of points on the bottom edge of the blob.

Remarks

The method scans each column of the blob and finds the most top and the most bottom 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 X coordinate - points with smaller X value go first.

Exceptions

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

See Also