DetectPaths
Finds a specified shape in an image using Hough Transform.
Applications:This is an old algorithm for template matching. Quite slow.
Syntax
C++
C#
Python
def DetectPaths( inImage: Image, inPath: Path, /, *, inRoi: Region | None = None, inMinScore: float = 20.0, inEdgeThreshold: float = 10.0, diagGradientMagnitudeImage: Image | None = None, diagScoreImage: Image | None = None ) -> ( outPaths: list[Path], outScores: list[float] )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
inImage | Image | Input image | ||
![]() |
inRoi | Region | None | None | Input region of interest | |
![]() |
inPath | Path | Input path | ||
![]() |
inMinScore | float | 0.0 - ![]() |
20.0 | Minimum matching score |
![]() |
inEdgeThreshold | float | 10.0 | Minimum accepted edge magnitude | |
![]() |
outPaths | list[Path] | Output paths | ||
![]() |
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 |




