You are here: Start » FIL.NET » Function Reference » Computer Vision » Shape Fitting 3D » FIL.FitSegmentToRidges3D
Performs a series of 1D ridge detections and finds a segment that best matches the detected points.
Namespace: | FilNet |
---|---|
Assembly: | FIL.NET.dll |
Syntax
C++
C#
public static void FitSegmentToRidges3D ( FilNet.Surface inSurface, FilNet.SegmentFittingMap inFittingMap, FilNet.RidgeScanParams3D inRidgeScanParams, FilNet.Selection inRidgeSelection, FilNet.LocalBlindness? inLocalBlindness, int? inMaxProfileGapWidth, float inMaxIncompleteness, FilNet.MEstimator? inOutlierSuppression, INullable<FilNet.Segment3D> outSegment, NullableRef<List<FilNet.SurfaceRidge1D?>> outRidges, NullableRef<NullableRef<FilNet.Profile>> outDeviationProfile, NullableRef<List<FilNet.Point3D>> outInliers, NullableRef<SafeList<FilNet.Profile>> outHeightProfiles, NullableRef<SafeList<FilNet.Profile>> outResponseProfiles )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inSurface | FilNet.Surface | Surface to fit the segment to. | ||
![]() | inFittingMap | FilNet.SegmentFittingMap | Input fitting map. | ||
![]() | inRidgeScanParams | FilNet.RidgeScanParams3D | Parameters controlling the ridge extraction process. | ||
![]() | inRidgeSelection | FilNet.Selection | fil::SelectionBest | Selection mode of ridges. Default value: fil::SelectionBest. | |
![]() | inLocalBlindness | FilNet.LocalBlindness? | Defines conditions in which weaker ridges can be detected in the vicinity of stronger ridges. Default value: ftl::NIL. | ||
![]() | inMaxProfileGapWidth | int? | <0, INF> | 1 | Maximal number of consecutive not existing profile points. Default value: 1. |
![]() | inMaxIncompleteness | float | <0.0f, 0.999f> | 0.1f | Maximal fraction of ridge points not found. Default value: 0.1f. |
![]() | inOutlierSuppression | FilNet.MEstimator? | Selects a method for ignoring incorrectly detected points. Default value: ftl::NIL. | ||
![]() | outSegment | FilNet.INullable<FilNet.Segment3D> | Fitted segment or nothing if the fitting fails. This parameter cannot be null. | ||
![]() | outRidges | FilNet.NullableRef<System.Collections.Generic.List<FilNet.SurfaceRidge1D?>> | Found ridges. Can be null to skip this parameter calculation. | ||
![]() | outDeviationProfile | FilNet.NullableRef<FilNet.NullableRef<FilNet.Profile>> | Profile of distances between the actual segment points and the corresponding reference segment points. Can be null to skip this parameter calculation. | ||
![]() | outInliers | FilNet.NullableRef<System.Collections.Generic.List<FilNet.Point3D>> | Points matching the fitting segment. Can be null to skip this parameter calculation. | ||
![]() | outHeightProfiles | FilNet.NullableRef<FilNet.SafeList<FilNet.Profile>> | Extracted surface height profiles. Can be null to skip this parameter calculation. | ||
![]() | outResponseProfiles | FilNet.NullableRef<FilNet.SafeList<FilNet.Profile>> | Profiles of the ridge operator response. Can be null to skip this parameter calculation. |
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 | Ridge operator parameters are too low in surface ridges detector in FitSegmentToRidges3D. |
Function Overrides
- FitSegmentToRidges3D(Surface, SegmentFittingMap, RidgeScanParams3D, Selection, Single, INullable<Segment3D>)
- FitSegmentToRidges3D(Surface, SegmentFittingMap, RidgeScanParams3D, Selection, Nullable<LocalBlindness>, Nullable<Int32>, Single, Nullable<MEstimator>, INullable<Segment3D>)
- FitSegmentToRidges3D(Surface, SegmentFittingMap, RidgeScanParams3D, Selection, Nullable<LocalBlindness>, Nullable<Int32>, Single, Nullable<MEstimator>, INullable<Segment3D>, IList<Nullable<SurfaceRidge1D>>, INullable<Profile>, IList<Point3D>, IList<Profile>, IList<Profile>)