MeasureObjectWidth


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 MeasureObjectWidth(
	inImage: Image,
	inMeasurementMap: list[ScanMap],
	inStripeScanParams: StripeScanParams,
	inMeasureMethod: MeasureObjectMethod,
	inStripeSelection: Selection,
	inOutlierCount: int,
	/,
	*,
	inLocalBlindness: LocalBlindness | None = None,
	inOutlierSuppression: MEstimator | None = None
)
-> (
	outObjectWidth: float | None,
	outSegment1: Segment2D | None,
	outSegment2: Segment2D | None,
	outStripes: list[Stripe1D | None],
	outBrightnessProfiles: list[Profile],
	outResponseProfiles: list[Profile]
)

Parameters

Name Type Default Description
Input value inImage Image Input image
Input value inMeasurementMap list[ScanMap] Input measurement map
Input value inStripeScanParams StripeScanParams 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 inOutlierSuppression MEstimator | None None Selects a method for ignoring incorrectly detected points
Input value inOutlierCount int 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[Stripe1D | None] Detected stripes
Output value outBrightnessProfiles list[Profile] Extracted image profiles
Output value outResponseProfiles list[Profile] Profiles of the edge (derivative) operator response