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

AVL.GroupRegionsByLines Method

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

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void GroupRegionsByLines(
	AvlNet.Region[] inRegions,
	AvlNet.Rectangle2D inRoi,
	AvlNet.CoordinateSystem2D? inRoiAlignment,
	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.RegionInput regions (parts of characters).
inRoiAvlNet.Rectangle2DRange of character classification.
inRoiAlignmentAvlNet.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.
outLinesAvlNet.RegionLines in single Array.
outLine0AvlNet.Region
outLine1AvlNet.Region
outLine2AvlNet.Region
outLine3AvlNet.Region
outAlignedRoiAvlNet.Rectangle2D
diagLinesAvlNet.Segment2DSegments which indicates the position of lines.
diagLineRangesAvlNet.Rectangle2DRectangles represents range of lines which are included if inRemoveOutliers is set.
diagRegionPointsAvlNet.Point2DPoint which indicates region position.

See also