You are here: Start » AVL.NET » Invoke.GroupRegionsByLines

Invoke.GroupRegionsByLines

Splits an array of blobs by distance to computed base lines.

Namespace:Avl
Assembly:AvlNet.dll

Syntax

C++
C#
 
public static void GroupRegionsByLines
(
	List<Avl.Region> inRegions,
	Avl.Rectangle2D inRoi,
	Optional<Avl.CoordinateSystem2D> inRoiAlignment,
	int inLinesCount,
	float inLineWidth,
	bool inRemoveOutliers,
	List<List<Avl.Region>> outLines,
	List<Avl.Region> outLine0,
	List<Avl.Region> outLine1,
	List<Avl.Region> outLine2,
	List<Avl.Region> outLine3,
	out Avl.Rectangle2D outAlignedRoi,
	Diagnostic<List<Avl.Segment2D>> diagLines,
	Diagnostic<List<Avl.Rectangle2D>> diagLineRanges,
	Diagnostic<List<Avl.Point2D>> diagRegionPoints
)

Parameters

Name Type Range Default Description
inRegionsSystem.Collections.Generic.List<Avl.Region>Input regions (parts of characters).
inRoiAvl.Rectangle2DRange of character classification.
inRoiAlignmentAtl.Optional<Avl.CoordinateSystem2D>
inLinesCountint<0, INF>1ROI is divided into inLinesCount lines. Default value: 1.
inLineWidthfloat<0.0f, INF>1.0fValue of line range used if inRemoveOutliers is set to TRUE. Default value: 1.0f.
inRemoveOutliersboolFalseIf this flag is set blobs with distance greater than inLineWidth are removed. Default value: False.
outLinesSystem.Collections.Generic.List<System.Collections.Generic.List<Avl.Region>>Lines in single Array.
outLine0System.Collections.Generic.List<Avl.Region>
outLine1System.Collections.Generic.List<Avl.Region>
outLine2System.Collections.Generic.List<Avl.Region>
outLine3System.Collections.Generic.List<Avl.Region>
outAlignedRoiAvl.Rectangle2D
diagLinesAvl.Diagnostic<System.Collections.Generic.List<Avl.Segment2D>>Segments which indicates the position of lines.
diagLineRangesAvl.Diagnostic<System.Collections.Generic.List<Avl.Rectangle2D>>Rectangles represents range of lines which are included if inRemoveOutliers is set.
diagRegionPointsAvl.Diagnostic<System.Collections.Generic.List<Avl.Point2D>>Point which indicates region position.

See also