You are here: Start » FIL.NET » FIL.DetectLines
Finds lines in an image.
Namespace: | FilNet |
---|---|
Assembly: | FIL.NET.dll |
Syntax
public static void DetectLines ( FilNet.Image inImage, NullableRef<FilNet.Region> inRoi, float inAngleResolution, float inMinAngleDelta, float inMinDistance, float inMinScore, float inEdgeThreshold, IList<FilNet.Line2D> outLines, IList<float> outScores, FilNet.Image diagGradientMagnitudeImage, FilNet.Image diagScoreImage )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inImage | FilNet.Image | Input image. | ||
![]() | inRoi | FilNet.NullableRef<FilNet.Region> | Input region of interest. Default value: ftl::NIL. | ||
![]() | inAngleResolution | float | <0.1f, 180.0f> | 1.0f | Resolution of lines' orientation. Default value: 1.0f. |
![]() | inMinAngleDelta | float | <0.0f, INF> | 20.0f | Minimum angle between two lines. Default value: 20.0f. |
![]() | inMinDistance | float | <0.0f, INF> | 20.0f | Minimum distance between two lines. Default value: 20.0f. |
![]() | inMinScore | float | <0.0f, INF> | 20.0f | Minimum matching score. Default value: 20.0f. |
![]() | inEdgeThreshold | float | 10.0f | Minimum accepted edge magnitude. Default value: 10.0f. | |
![]() | outLines | System.Collections.Generic.IList<FilNet.Line2D> | Output lines. | ||
![]() | outScores | System.Collections.Generic.IList<float> | Output scores. | ||
![]() | diagGradientMagnitudeImage | FilNet.Image | Visualized gradients magnitude of an input image. | ||
![]() | diagScoreImage | FilNet.Image | Calculated score for each pixel of an input image. |
Description
The operation detects straight edges in the inImage using the Hough Transform approach and treats them as infinite lines. The output array is ordered from best matching to worst matching results.
The parameter inAngleResolution specifies the precision of detected lines' orientations. Value of n means the filter will be able to reliably distinguish lines in n-degree increments.
Parameters inMinAngleDelta and inMinDistance are used for neighbouring results suppression. inMinAngleDelta specifies the minimum angle between two lines while inMinDistance specifies the minimum distance between two parallel lines.
Examples
![]() |
![]() |
DetectLines performed on the sample image with inMinScore = 0.3.
Remarks
Low values of inAngleResolution (under 0.5) may cause high memory consumption and decrease in performance.
Function Overrides
- DetectLines(Image, Single, Single, Single, Single, Single, IList<Line2D>, IList<Single>)
- DetectLines(Image, NullableRef<Region>, Single, Single, Single, Single, Single, IList<Line2D>, IList<Single>)
- DetectLines(Image, Single, Single, Single, Single, Single, IList<Line2D>, IList<Single>, Image, Image)