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