Get list of object's edge points.

Namespace:  AForge.Imaging
Assembly:  AForge.Imaging (in AForge.Imaging.dll) Version: 2.2.5.0 (2.2.5.0)

Syntax

C#
public List<IntPoint> GetBlobsEdgePoints(
	Blob blob
)

Parameters

blob
Type: AForge.Imaging..::.Blob
Blob to collect edge points for.

Return Value

Returns unsorted list of blob's edge points.

Remarks

The method scans each row and column of the blob and finds the most top/bottom/left/right points. The method returns similar result as if results of both GetBlobsLeftAndRightEdges(Blob, List<(Of <(IntPoint>)>)%, List<(Of <(IntPoint>)>)%) and GetBlobsTopAndBottomEdges(Blob, List<(Of <(IntPoint>)>)%, List<(Of <(IntPoint>)>)%) methods were combined, but each edge point occurs only once in the list.

Note:Edge points in the returned list are not ordered. This makes the list unusable for visualization with methods, which draw polygon or poly-line. But the returned list can be used with such algorithms, like convex hull search, shape analyzer, etc.

Exceptions

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

See Also