You are here: Start » AVL.NET » Invoke.ExtendSegmentFromPoint
Invoke.ExtendSegmentFromPoint
Builds a segment from a single point on a line by walking in both directions along the locally estimated line direction, one pixel at a time.
| Namespace: | Avl |
|---|---|
| Assembly: | AvlNet.dll |
Syntax
C++
C#
public static void ExtendSegmentFromPoint ( Avl.Image inImage, Avl.Point2D inPoint, float inEdgeThreshold, float inRelativeThreshold, Optional<Avl.Rectangle2D> inRoi, out Avl.Segment2D outSegment, List<Avl.Point2D> outTrackedPoints )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() | inImage | Avl.Image | Input image (gradient is computed in-place). | ||
![]() | inPoint | Avl.Point2D | Starting point, expected to lie on or near the line. | ||
![]() | inEdgeThreshold | float | <0.0f, INF> | 10.0f | Minimum Sobel gradient magnitude required to continue extending. Default value: 10.0f. |
![]() | inRelativeThreshold | float | <0.0f, 1.0f> | 0.1f | Candidate magnitude must be at least this fraction of the running average magnitude. Default value: 0.1f. |
![]() | inRoi | Atl.Optional<Avl.Rectangle2D> | Optional rectangle that limits pixel tracking to a specific area. Default value: atl::NIL. | ||
![]() | outSegment | Avl.Segment2D | Resulting segment spanning the detected line through inPoint. | ||
![]() | outTrackedPoints | System.Collections.Generic.List<Avl.Point2D> | Pixel centres visited during tracking, in processing order. |


