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, 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 | |
---|---|---|---|---|---|
inRegions | AvlNet.Region | Input regions (parts of characters). | |||
inRoi | AvlNet.Rectangle2D | Range of character classification. | |||
inLinesCount | int | <0, INF> | 1 | ROI is divided into inLinesCount lines. Default value: 1. | |
inLineWidth | float | <0.0f, INF> | 1.0f | Value of line range used if inRemoveOutliers is set to TRUE. Default value: 1.0f. | |
inRemoveOutliers | bool | False | If this flag is set blobs with distance greater than inLineWidth are removed. Default value: False. | ||
outLines | AvlNet.Region | Lines in single Array. | |||
outLine0 | AvlNet.Region | ||||
outLine1 | AvlNet.Region | ||||
outLine2 | AvlNet.Region | ||||
outLine3 | AvlNet.Region | ||||
outAlignedRoi | AvlNet.Rectangle2D | ||||
diagLines | AvlNet.Segment2D | Segments which indicates the position of lines. | |||
diagLineRanges | AvlNet.Rectangle2D | Rectangles represents range of lines which are included if inRemoveOutliers is set. | |||
diagRegionPoints | AvlNet.Point2D | Point which indicates region position. |