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
inImageAvl.ImageInput image (gradient is computed in-place).
inSegmentAvl.Segment2DSegment to extend.
inEdgeThresholdfloat<0.0f, INF>10.0fMinimum Sobel gradient magnitude required to continue extending. Default value: 10.0f.
inInterpolationAvl.InterpolationMethodBilinearNearestNeighbour snaps the walking position to the integer grid; Bilinear samples all Sobel neighbours at real-valued coordinates. Default value: Bilinear.
outSegmentAvl.Segment2DExtended segment.

See also