MeasureObjectWidth3D


Measures the width of an object using stripe detection.

Applications:Easy and precise measurement of distances between to straight parallel edges.

Syntax

C++
C#
Python
 
def MeasureObjectWidth3D(
	inSurface: Surface,
	inMeasurementMap: list[ScanMap],
	inStripeScanParams: StripeScanParams3D,
	inMeasureMethod: MeasureObjectMethod,
	inStripeSelection: Selection,
	inOutlierCount: int,
	/,
	*,
	inLocalBlindness: LocalBlindness | None = None,
	inMaxProfileGapWidth: int | None = 1,
	inOutlierSuppression: MEstimator | None = None
)
-> (
	outObjectWidth: float | None,
	outSegment1: Segment2D | None,
	outSegment2: Segment2D | None,
	outStripes: list[SurfaceStripe1D | None],
	outHeightProfiles: list[Profile],
	outResponseProfiles: list[Profile]
)

Parameters

Name Type Range Default Description
Input value inSurface Surface Input surface
Input value inMeasurementMap list[ScanMap] Input measurement map
Input value inStripeScanParams StripeScanParams3D Parameters controlling the object stripe extraction process
Input value inMeasureMethod MeasureObjectMethod Method used to measure the object
Input value inStripeSelection Selection Selection mode of edges of the object
Input value inLocalBlindness LocalBlindness | None None Defines conditions in which weaker edges can be detected in the vicinity of stronger edges
Input value inMaxProfileGapWidth int | None 0 - 1 Maximal number of consecutive not existing profile points
Input value inOutlierSuppression MEstimator | None None Selects a method for ignoring incorrectly detected points
Input value inOutlierCount int 0 - Determines how many outlying points are rejected before the width is measured
Output value outObjectWidth float | None Width of the object
Output value outSegment1 Segment2D | None First edge of the object
Output value outSegment2 Segment2D | None Second edge of the object
Output value outStripes list[SurfaceStripe1D | None] Detected stripes
Output value outHeightProfiles list[Profile] Extracted surface height profiles
Output value outResponseProfiles list[Profile] Profiles of the edge (derivative) operator response