You are here: Start » FIL.NET » Function Reference » Computer Vision » Optical Character Recognition » FIL.GroupRegionsByLines

FIL.GroupRegionsByLines

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

Namespace:FilNet
Assembly:FIL.NET.dll

Syntax

C++
C#
 
public static void GroupRegionsByLines
(
	IList<FilNet.Region> inRegions,
	FilNet.Rectangle2D inRoi,
	int inLinesCount,
	float inLineWidth,
	bool inRemoveOutliers,
	IList<SafeList<FilNet.Region>> outLines,
	IList<FilNet.Region> outLine0,
	IList<FilNet.Region> outLine1,
	IList<FilNet.Region> outLine2,
	IList<FilNet.Region> outLine3,
	out FilNet.Rectangle2D outAlignedRoi
)

Parameters

Name Type Range Default Description
inRegionsSystem.Collections.Generic.IList<FilNet.Region>Input regions (parts of characters).
inRoiFilNet.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.
outLinesSystem.Collections.Generic.IList<FilNet.SafeList<FilNet.Region>>Lines in single Array.
outLine0System.Collections.Generic.IList<FilNet.Region>
outLine1System.Collections.Generic.IList<FilNet.Region>
outLine2System.Collections.Generic.IList<FilNet.Region>
outLine3System.Collections.Generic.IList<FilNet.Region>
outAlignedRoiFilNet.Rectangle2D

Examples

As you can see in the below picture, the filter's task is to divide the input region into several sub-regions by its placement in a line. As a result, each line represents a separate region.

Exemplary result of the filter's usage.

Function Overrides

See also