CreateArcFittingMap
Precomputes a data object that is required for fast arc fitting on images.
Applications:Used together with arc fitting, but can be moved before the loop.
Syntax
C++
C#
Python
def CreateArcFittingMap( inImageFormat: ImageFormat, inFittingField: ArcFittingField, inScanCount: int, inScanWidth: int, inSamplingParams: SamplingParams, outFittingMap: ArcFittingMap, /, *, inFittingFieldAlignment: CoordinateSystem2D | None = None ) -> ( diagScanSegments: list[Segment2D], diagSamplingAreas: list[Rectangle2D] )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
inImageFormat | ImageFormat | Dimensions, depth and pixel type of the images on which fitting will be performed | ||
![]() |
inFittingField | ArcFittingField | Defines a ring section 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 arc | |
![]() |
inScanWidth | int | 1 - ![]() |
The width of each scan field (in pixels) | |
![]() |
inSamplingParams | SamplingParams | Parameters controlling the sampling process | ||
![]() |
outFittingMap | ArcFittingMap | Optimized data required for arc fitting | ||
![]() |
diagScanSegments | list[Segment2D] | Segments along which the scans will be run | ||
![]() |
diagSamplingAreas | list[Rectangle2D] | Scan fields created for point detection |




