|
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
)
Public Sub GetBlobsTopAndBottomEdges (
blob As Blob,
<OutAttribute> ByRef topEdge As List(Of IntPoint),
<OutAttribute> ByRef bottomEdge As List(Of IntPoint)
)
Request Example
View SourceParameters
- 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 Exception | Condition |
---|
ApplicationException | No 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 |
---|
Both lists of points are sorted by X coordinate - points with smaller X
value go first. |
See Also