Click or drag to resize
Accord.NET (logo)

BlobCounterBaseGetBlobsTopAndBottomEdges Method

Get list of points on the top and bottom edges of the blob.

Namespace:  Accord.Imaging
Assembly:  Accord.Imaging (in Accord.Imaging.dll) Version: 3.8.0
Syntax
public void GetBlobsTopAndBottomEdges(
	Blob blob,
	out List<IntPoint> topEdge,
	out List<IntPoint> bottomEdge
)
Request Example View Source

Parameters

blob
Type: Accord.ImagingBlob
Blob to collect edge points for.
topEdge
Type: System.Collections.GenericListIntPoint
List of points on the top edge of the blob.
bottomEdge
Type: System.Collections.GenericListIntPoint
List of points on the bottom edge of the blob.
Exceptions
ExceptionCondition
ApplicationExceptionNo image was processed before, so blob can not be extracted.
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 Accord.Math.Geometry, which allow finding convex hull or quadrilateral's corners.

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

See Also