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

AVS.AvsFilter_MeasureObjectWidth Method

Measures the width of an object using stripe detection.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void AvsFilter_MeasureObjectWidth
(
	AvlNet.ScanMapArrayState ioState,
	AvlNet.Image inImage,
	AvlNet.SegmentScanField inScanField,
	AvlNet.CoordinateSystem2D? inScanFieldAlignment,
	int inScanCount,
	int inScanWidth,
	AvlNet.InterpolationMethod inImageInterpolation,
	AvlNet.StripeScanParams inStripeScanParams,
	AvlNet.MeasureObjectMethod inMeasureMethod,
	AvlNet.Selection inStripeSelection,
	AvlNet.LocalBlindness? inLocalBlindness,
	AvlNet.MEstimator? inOutlierSuppression,
	int inOutlierCount,
	out float? outObjectWidth,
	out AvlNet.Segment2D? outSegment1,
	out AvlNet.Segment2D? outSegment2
)

Parameters

Name Type Range Default Description
ioStateAvlNet.ScanMapArrayState
inImageAvlNet.ImageInput image.
inScanFieldAvlNet.SegmentScanFieldField in which measurement scans are performed.
inScanFieldAlignmentAvlNet.CoordinateSystem2D?Adjusts the scan field to the position of the inspected object. Default value: atl::NIL.
inScanCountint<2, INF>5Number of scans to be performed. Default value: 5.
inScanWidthint<1, INF>5Width of each single scan. Default value: 5.
inImageInterpolationAvlNet.InterpolationMethodBilinearInterpolation method used in extraction of image pixel values. Default value: Bilinear.
inStripeScanParamsAvlNet.StripeScanParamsStripeScanParams ( ProfileInterpolation: Quadratic4 SmoothingStdDev: 0.6f MinMagnitude: 5.0f MaxInnerEdgeMagnitude: Nil StripePolarity: Dark MinStripeWidth: 0.0f MaxStripeWidth: Nil )Parameters controlling the object stripe extraction process. Default value: StripeScanParams ( ProfileInterpolation: Quadratic4 SmoothingStdDev: 0.6f MinMagnitude: 5.0f MaxInnerEdgeMagnitude: Nil StripePolarity: Dark MinStripeWidth: 0.0f MaxStripeWidth: Nil ).
inMeasureMethodAvlNet.MeasureObjectMethodMethod used to measure the object.
inStripeSelectionAvlNet.SelectionSelection mode of edges of the object.
inLocalBlindnessAvlNet.LocalBlindness?Defines conditions in which weaker edges can be detected in the vicinity of stronger edges. Default value: atl::NIL.
inOutlierSuppressionAvlNet.MEstimator?Selects a method for ignoring incorrectly detected points. Default value: atl::NIL.
inOutlierCountint<0, INF>Determines how many points are not count when object 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