You are here: Start » AVL.NET » Function Reference » Computer Vision » Shape Fitting 3D » AVL.FitSegmentToStripe3D_Direct
Performs a series of 1D edge detections in 3D and finds a segment that best matches the detected points.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
C++
C#
public static void FitSegmentToStripe3D_Direct ( AvlNet.Surface inSurface, AvlNet.SegmentFittingField inFittingField, int inScanCount, int inScanWidth, AvlNet.InterpolationMethod inSurfaceInterpolation, AvlNet.StripeScanParams3D inStripeScanParams, AvlNet.Selection inStripeSelection, float inMaxIncompleteness, INullable<AvlNet.Segment3D> outSegment, INullable<AvlNet.Segment3D> outLeftSegment, INullable<AvlNet.Segment3D> outRightSegment )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inSurface | AvlNet.Surface | Surface to fit segment to. | |||
inFittingField | AvlNet.SegmentFittingField | Segment fitting field. | |||
inScanCount | int | <3, INF> | 10 | The number of points that will be searched to estimate the position of the segment. Default value: 10. | |
inScanWidth | int | <1, INF> | 5 | The width of each scan field (in pixels). Default value: 5. | |
inSurfaceInterpolation | AvlNet.InterpolationMethod | Bilinear | Interpolation method used for extraction of surface points. Default value: Bilinear. | ||
inStripeScanParams | AvlNet.StripeScanParams3D | StripeScanParams3D ( ProfileInterpolation: Quadratic4 SmoothingStdDev: 1.0f MinMagnitude: 5.0f MaxInnerEdgeMagnitude: Nil MinStripeWidth: 0.0f MaxStripeWidth: Nil StripePolarity: High ) | Parameters controlling the stripe extraction process. Default value: StripeScanParams3D ( ProfileInterpolation: Quadratic4 SmoothingStdDev: 1.0f MinMagnitude: 5.0f MaxInnerEdgeMagnitude: Nil MinStripeWidth: 0.0f MaxStripeWidth: Nil StripePolarity: High ). | ||
inStripeSelection | AvlNet.Selection | Selection mode of stripe. | |||
inMaxIncompleteness | float | <0.0f, 0.999f> | 0.1f | Maximal fraction of stripe points not found. Default value: 0.1f. | |
outSegment | AvlNet.INullable<AvlNet.Segment3D> | Fitted segment or nothing if the fitting fails. This parameter cannot be null. | |||
outLeftSegment | AvlNet.INullable<AvlNet.Segment3D> | Fitted left segment. This parameter cannot be null. | |||
outRightSegment | AvlNet.INullable<AvlNet.Segment3D> | Fitted right segment. This parameter cannot be null. |
Hardware Acceleration
This operation supports automatic parallelization for multicore and multiprocessor systems.
Hardware acceleration settings may be manipulated with Settings class.
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Sampling step set to zero in FitSegmentToStripe3D. |
Function Overrides
- FitSegmentToStripe3D_Direct(Surface, SegmentFittingField, Nullable<CoordinateSystem2D>, Int32, Nullable<Single>, Int32, InterpolationMethod, StripeScanParams3D, Selection, Nullable<LocalBlindness>, Nullable<Int32>, Single, Nullable<MEstimator>, INullable<Segment3D>, INullable<Segment3D>, INullable<Segment3D>)
- FitSegmentToStripe3D_Direct(Surface, SegmentFittingField, Nullable<CoordinateSystem2D>, Int32, Nullable<Single>, Int32, InterpolationMethod, StripeScanParams3D, Selection, Nullable<LocalBlindness>, Nullable<Int32>, Single, Nullable<MEstimator>, INullable<Segment3D>, INullable<Segment3D>, INullable<Segment3D>, NullableRef<List<NullableRef<SurfaceStripe1D>>>, NullableRef<List<Point3D>>, NullableRef<NullableRef<Profile>>, NullableValue<SegmentFittingField>, NullableRef<SafeList<Profile>>, NullableRef<SafeList<Profile>>)
- FitSegmentToStripe3D_Direct(Surface, SegmentFittingField, Nullable<CoordinateSystem2D>, Int32, Nullable<Single>, Int32, InterpolationMethod, StripeScanParams3D, Selection, Nullable<LocalBlindness>, Nullable<Int32>, Single, Nullable<MEstimator>, INullable<Segment3D>, INullable<Segment3D>, INullable<Segment3D>, IList<NullableRef<SurfaceStripe1D>>, IList<Point3D>, INullable<Profile>, SegmentFittingField, IList<Profile>, IList<Profile>, IList<Segment2D>, IList<Rectangle2D>)
- FitSegmentToStripe3D_Direct(Surface, SegmentFittingField, Nullable<CoordinateSystem2D>, Int32, Nullable<Single>, Int32, InterpolationMethod, StripeScanParams3D, Selection, Nullable<LocalBlindness>, Nullable<Int32>, Single, Nullable<MEstimator>, INullable<Segment3D>, INullable<Segment3D>, INullable<Segment3D>, NullableRef<List<NullableRef<SurfaceStripe1D>>>, NullableRef<List<Point3D>>, NullableRef<NullableRef<Profile>>, NullableValue<SegmentFittingField>, NullableRef<SafeList<Profile>>, NullableRef<SafeList<Profile>>, IList<Segment2D>, IList<Rectangle2D>)