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
)

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

See also