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
inImageAvl.ImageInput image (gradient is computed in-place).
inPointAvl.Point2DStarting point, expected to lie on or near the line.
inEdgeThresholdfloat<0.0f, INF>10.0fMinimum Sobel gradient magnitude required to continue extending. Default value: 10.0f.
inRelativeThresholdfloat<0.0f, 1.0f>0.1fCandidate magnitude must be at least this fraction of the running average magnitude. Default value: 0.1f.
inRoiAtl.Optional<Avl.Rectangle2D>Optional rectangle that limits pixel tracking to a specific area. Default value: atl::NIL.
outSegmentAvl.Segment2DResulting segment spanning the detected line through inPoint.
outTrackedPointsSystem.Collections.Generic.List<Avl.Point2D>Pixel centres visited during tracking, in processing order.

See also