CreateSegmentFittingMap3D
Precomputes a data object that is required for fast segment fitting on surfaces.
Applications:Used together with segment fitting, but can be moved before the loop.
Syntax
C++
C#
Python
def CreateSegmentFittingMap3D( inSurfaceFormat: SurfaceFormat, inFittingField: SegmentFittingField, inScanCount: int, inScanWidth: int, inSurfaceInterpolation: InterpolationMethod, outFittingMap: SegmentFittingMap, /, *, inFittingFieldAlignment: CoordinateSystem2D | None = None, inSamplingStep: float | None = None ) -> ( diagScanSegments: list[Segment2D], diagSamplingAreas: list[Rectangle2D] )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
inSurfaceFormat | SurfaceFormat | Dimensions, depth image pixel type, coordinate offsets and scales of a surface on which segment fitting will be performed | ||
![]() |
inFittingField | SegmentFittingField | Defines a rectangle in which scan segments will be created | ||
![]() |
inFittingFieldAlignment | CoordinateSystem2D | None | None | Adjusts the fitting field to the position of the inspected object | |
![]() |
inScanCount | int | 3 - ![]() |
The number of points that will be searched to estimate the position of the segment | |
![]() |
inSamplingStep | float | None | None | Desired distance between consecutive sampling points on the scan segments; if Nil, the bigger of surface X and Y scales is chosen | |
![]() |
inScanWidth | int | 1 - ![]() |
The width of each scan field in pixels of the surface depth image | |
![]() |
inSurfaceInterpolation | InterpolationMethod | Interpolation method used for extraction of depth image pixel values | ||
![]() |
outFittingMap | SegmentFittingMap | Optimized data required for segment fitting | ||
![]() |
diagScanSegments | list[Segment2D] | Segments along which the scans will be run | ||
![]() |
diagSamplingAreas | list[Rectangle2D] | Scan fields created for point detection |




