You are here: Start » AVL.NET » Invoke.ExtendSegment
Invoke.ExtendSegment
Extends a segment at both endpoints by walking 1 pixel at a time along the segment direction, stopping when the in-place Sobel gradient magnitude at the next position drops below threshold or the image boundary is reached.
| Namespace: | Avl |
|---|---|
| Assembly: | AvlNet.dll |
Syntax
C++
C#
public static void ExtendSegment ( Avl.Image inImage, Avl.Segment2D inSegment, float inEdgeThreshold, Avl.InterpolationMethod inInterpolation, out Avl.Segment2D outSegment )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() | inImage | Avl.Image | Input image (gradient is computed in-place). | ||
![]() | inSegment | Avl.Segment2D | Segment to extend. | ||
![]() | inEdgeThreshold | float | <0.0f, INF> | 10.0f | Minimum Sobel gradient magnitude required to continue extending. Default value: 10.0f. |
![]() | inInterpolation | Avl.InterpolationMethod | Bilinear | NearestNeighbour snaps the walking position to the integer grid; Bilinear samples all Sobel neighbours at real-valued coordinates. Default value: Bilinear. | |
![]() | outSegment | Avl.Segment2D | Extended segment. |


