You are here: Start » AVL.NET » AVL.MeasureObjectWidth(AvlNet.Image, AvlNet.ScanMap[], AvlNet.StripeScanParams, AvlNet.MeasureObjectMethod, AvlNet.Selection, int, float?, AvlNet.Segment2D?, AvlNet.Segment2D?, AvlNet.Point2D[], AvlNet.Point2D[])

AVL.MeasureObjectWidth(AvlNet.Image, AvlNet.ScanMap[], AvlNet.StripeScanParams, AvlNet.MeasureObjectMethod, AvlNet.Selection, int, float?, AvlNet.Segment2D?, AvlNet.Segment2D?, AvlNet.Point2D[], AvlNet.Point2D[])

Measures the width of an object using stripe detection.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax


public static void MeasureObjectWidth(
	AvlNet.Image inImage,
	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,
	out AvlNet.Point2D[] diagPoints1,
	out AvlNet.Point2D[] diagPoints2
)

Parameters

inImage
Type: AvlNet.Image
Input image
inMeasurementMap
Type: AvlNet.ScanMap
Input measurement map
inStripeScanParams
Type: AvlNet.StripeScanParams
Parameters controlling the object stripe extraction process
inMeasureMethod
Type: AvlNet.MeasureObjectMethod
Method used to measure the object
inStripeSelection
Type: AvlNet.Selection
Selection mode of edges of the object
inOutlierCount
Type: System.Int32
Determines how many outlying points are rejected before the width is measured
outObjectWidth
Type: System.Nullable<System.Single>
Width of the object
outSegment1
Type: System.Nullable<AvlNet.Segment2D>
First edge of the object
outSegment2
Type: System.Nullable<AvlNet.Segment2D>
Second edge of the object
diagPoints1
Type: AvlNet.Point2D
Detected edge points on the first side
diagPoints2
Type: AvlNet.Point2D
Detected edge points on the second side

See also