You are here: Start » AVL.NET » Function Reference » Computer Vision » Shape Fitting 3D » AVL.MeasureObjectWidth3D
AVL.MeasureObjectWidth3D
Measures the width of an object using stripe detection.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
C++
C#
public static void MeasureObjectWidth3D ( AvlNet.Surface inSurface, IList<AvlNet.ScanMap> inMeasurementMap, AvlNet.StripeScanParams3D inStripeScanParams, AvlNet.MeasureObjectMethod inMeasureMethod, AvlNet.Selection inStripeSelection, AvlNet.LocalBlindness? inLocalBlindness, int? inMaxProfileGapWidth, AvlNet.MEstimator? inOutlierSuppression, int inOutlierCount, out float? outObjectWidth, out AvlNet.Segment2D? outSegment1, out AvlNet.Segment2D? outSegment2, NullableRef<List<NullableRef<AvlNet.SurfaceStripe1D>>> outStripes, NullableRef<SafeList<AvlNet.Profile>> outHeightProfiles, NullableRef<SafeList<AvlNet.Profile>> outResponseProfiles )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inSurface | AvlNet.Surface | Input surface. | |||
inMeasurementMap | System.Collections.Generic.IList<AvlNet.ScanMap> | Input measurement map. | |||
inStripeScanParams | AvlNet.StripeScanParams3D | Parameters controlling the object stripe extraction process. | |||
inMeasureMethod | AvlNet.MeasureObjectMethod | Method used to measure the object. | |||
inStripeSelection | AvlNet.Selection | avl::Selection::Best | Selection mode of edges of the object. Default value: avl::Selection::Best. | ||
inLocalBlindness | AvlNet.LocalBlindness? | Defines conditions in which weaker edges can be detected in the vicinity of stronger edges. Default value: atl::NIL. | |||
inMaxProfileGapWidth | int? | <0, INF> | 1 | Maximal number of consecutive not existing profile points. Default value: 1. | |
inOutlierSuppression | AvlNet.MEstimator? | Selects a method for ignoring incorrectly detected points. Default value: atl::NIL. | |||
inOutlierCount | int | <0, INF> | Determines how many outlying points are rejected before the width is measured. | ||
outObjectWidth | float? | Width of the object. | |||
outSegment1 | AvlNet.Segment2D? | First edge of the object. | |||
outSegment2 | AvlNet.Segment2D? | Second edge of the object. | |||
outStripes | AvlNet.NullableRef<System.Collections.Generic.List<AvlNet.NullableRef<AvlNet.SurfaceStripe1D>>> | Detected stripes. Can be null to skip this parameter calculation. | |||
outHeightProfiles | AvlNet.NullableRef<AvlNet.SafeList<AvlNet.Profile>> | Extracted surface height profiles. Can be null to skip this parameter calculation. | |||
outResponseProfiles | AvlNet.NullableRef<AvlNet.SafeList<AvlNet.Profile>> | Profiles of the edge (derivative) operator response. Can be null to skip this parameter calculation. |
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Invalid MeasurementMap in MeasureObjectWidth3D function. Use CreateSurfaceMeasurementMap function to create it properly. |
Function Overrides
- MeasureObjectWidth3D(Surface, IList<ScanMap>, StripeScanParams3D, MeasureObjectMethod, Selection, Int32, Nullable<Single>, Nullable<Segment2D>, Nullable<Segment2D>)
- MeasureObjectWidth3D(Surface, IList<ScanMap>, StripeScanParams3D, MeasureObjectMethod, Selection, Nullable<LocalBlindness>, Nullable<Int32>, Nullable<MEstimator>, Int32, Nullable<Single>, Nullable<Segment2D>, Nullable<Segment2D>)