DetectLines
Finds lines in an image using Hough Transform.
Syntax
C++
C#
Python
def DetectLines( inImage: Image, /, *, inRoi: Region | None = None, inAngleResolution: float = 1.0, inMinAngleDelta: float = 20.0, inMinDistance: float = 20.0, inMinScore: float = 20.0, inEdgeThreshold: float = 10.0, diagGradientMagnitudeImage: Image | None = None, diagScoreImage: Image | None = None ) -> ( outLines: list[Line2D], outScores: list[float] )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
inImage | Image | Input image | ||
![]() |
inRoi | Region | None | None | Input region of interest | |
![]() |
inAngleResolution | float | 0.1 - 180.0 | 1.0 | Resolution of lines' orientation |
![]() |
inMinAngleDelta | float | 0.0 - ![]() |
20.0 | Minimum angle between two lines |
![]() |
inMinDistance | float | 0.0 - ![]() |
20.0 | Minimum distance between two lines |
![]() |
inMinScore | float | 0.0 - ![]() |
20.0 | Minimum matching score |
![]() |
inEdgeThreshold | float | 10.0 | Minimum accepted edge magnitude | |
![]() |
outLines | list[Line2D] | Output lines | ||
![]() |
outScores | list[float] | Output scores | ||
![]() |
diagGradientMagnitudeImage | Image | None | None | Visualized gradients magnitude of an input image | |
![]() |
diagScoreImage | Image | None | None | Calculated score for each pixel of an input image |




