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



