You are here: Start » AVL.NET » AVS.MeasureObjectWidth Method

AVS.MeasureObjectWidth Method

Measures the width of an object using stripe detection.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void MeasureObjectWidth
(
	AvlNet.Image inImage,
	IList<AvlNet.ScanMap> inMeasurementMap,
	AvlNet.StripeScanParams inStripeScanParams,
	AvlNet.MeasureObjectMethod inMeasureMethod,
	AvlNet.Selection inStripeSelection,
	int inOutlierCount,
	out float? outObjectWidth,
	out AvlNet.Segment2D? outSegment1,
	out AvlNet.Segment2D? outSegment2
)

Parameters

Name Type Range Default Description
inImageAvlNet.ImageInput image.
inMeasurementMapSystem.Collections.Generic.IList<AvlNet.ScanMap>Input measurement map.
inStripeScanParamsAvlNet.StripeScanParamsParameters controlling the object stripe extraction process.
inMeasureMethodAvlNet.MeasureObjectMethodMethod used to measure the object.
inStripeSelectionAvlNet.Selectionavl::Selection::BestSelection mode of edges of the object. Default value: avl::Selection::Best.
inOutlierCountintDetermines how many outlying points are rejected before the width is measured.
outObjectWidthfloat?Width of the object.
outSegment1AvlNet.Segment2D?First edge of the object.
outSegment2AvlNet.Segment2D?Second edge of the object.

Function Overrides

See also