Click or drag to resize
Accord.NET (logo)

BlobCounterBaseGetBlobsLeftAndRightEdges Method

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

Namespace:  Accord.Imaging
Assembly:  Accord.Imaging (in Accord.Imaging.dll) Version: 3.7.0
Syntax
public void GetBlobsLeftAndRightEdges(
	Blob blob,
	out List<IntPoint> leftEdge,
	out List<IntPoint> rightEdge
)
Request Example View Source

Parameters

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

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

See Also