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

AVL.GroupRegionsByLines

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

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void GroupRegionsByLines
(
	AvlNet.Region[] inRegions,
	AvlNet.Rectangle2D inRoi,
	int inLinesCount,
	float inLineWidth,
	bool inRemoveOutliers,
	out AvlNet.Region[][] outLines,
	out AvlNet.Region[] outLine0,
	out AvlNet.Region[] outLine1,
	out AvlNet.Region[] outLine2,
	out AvlNet.Region[] outLine3,
	out AvlNet.Rectangle2D outAlignedRoi,
	out AvlNet.Segment2D[] diagLines,
	out AvlNet.Rectangle2D[] diagLineRanges,
	out AvlNet.Point2D[] diagRegionPoints
)

Parameters

Name Type Range Default Description
inRegionsAvlNet.Region[]Input regions (parts of characters).
inRoiAvlNet.Rectangle2DRange of character classification.
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.
outLinesAvlNet.Region[][]Lines in single Array.
outLine0AvlNet.Region[]
outLine1AvlNet.Region[]
outLine2AvlNet.Region[]
outLine3AvlNet.Region[]
outAlignedRoiAvlNet.Rectangle2D
diagLinesAvlNet.Segment2D[]Segments which indicates the position of lines.
diagLineRangesAvlNet.Rectangle2D[]Rectangles represents range of lines which are included if inRemoveOutliers is set.
diagRegionPointsAvlNet.Point2D[]Point which indicates region position.

See also