|
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.8.0
Syntax public void GetBlobsLeftAndRightEdges(
Blob blob,
out List<IntPoint> leftEdge,
out List<IntPoint> rightEdge
)
Public Sub GetBlobsLeftAndRightEdges (
blob As Blob,
<OutAttribute> ByRef leftEdge As List(Of IntPoint),
<OutAttribute> ByRef rightEdge As List(Of IntPoint)
)
Request Example
View SourceParameters
- 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 Exception | Condition |
---|
ApplicationException | No 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 |
---|
Both lists of points are sorted by Y coordinate - points with smaller Y
value go first. |
See Also