You are here: Start » AVL.NET » Invoke.GroupRegionsByLines
Splits an array of blobs by distance to computed base lines.
Namespace: | Avl |
---|---|
Assembly: | AvlNet.dll |
Syntax
C++
C#
public static void GroupRegionsByLines ( List<Avl.Region> inRegions, Avl.Rectangle2D inRoi, Optional<Avl.CoordinateSystem2D> inRoiAlignment, int inLinesCount, float inLineWidth, bool inRemoveOutliers, List<List<Avl.Region>> outLines, List<Avl.Region> outLine0, List<Avl.Region> outLine1, List<Avl.Region> outLine2, List<Avl.Region> outLine3, out Avl.Rectangle2D outAlignedRoi, Diagnostic<List<Avl.Segment2D>> diagLines, Diagnostic<List<Avl.Rectangle2D>> diagLineRanges, Diagnostic<List<Avl.Point2D>> diagRegionPoints )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inRegions | System.Collections.Generic.List<Avl.Region> | Input regions (parts of characters). | ||
![]() | inRoi | Avl.Rectangle2D | Range of character classification. | ||
![]() | inRoiAlignment | Atl.Optional<Avl.CoordinateSystem2D> | |||
![]() | 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 | System.Collections.Generic.List<System.Collections.Generic.List<Avl.Region>> | Lines in single Array. | ||
![]() | outLine0 | System.Collections.Generic.List<Avl.Region> | |||
![]() | outLine1 | System.Collections.Generic.List<Avl.Region> | |||
![]() | outLine2 | System.Collections.Generic.List<Avl.Region> | |||
![]() | outLine3 | System.Collections.Generic.List<Avl.Region> | |||
![]() | outAlignedRoi | Avl.Rectangle2D | |||
![]() | diagLines | Avl.Diagnostic<System.Collections.Generic.List<Avl.Segment2D>> | Segments which indicates the position of lines. | ||
![]() | diagLineRanges | Avl.Diagnostic<System.Collections.Generic.List<Avl.Rectangle2D>> | Rectangles represents range of lines which are included if inRemoveOutliers is set. | ||
![]() | diagRegionPoints | Avl.Diagnostic<System.Collections.Generic.List<Avl.Point2D>> | Point which indicates region position. |