CreateMeasurementMap
(Pre)computes image sampling locations used by MeasureObjectWidth function.
Syntax
C++
C#
Python
def CreateMeasurementMap( inImageFormat: ImageFormat, inScanField: SegmentScanField, inScanCount: int, inScanWidth: int, inImageInterpolation: InterpolationMethod, /, *, inScanFieldAlignment: CoordinateSystem2D | None = None, outAlignedScanField: SegmentScanField | None = None ) -> ( outMeasurementMap: list[ScanMap], diagScanSegments: list[Segment2D] )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
inImageFormat | ImageFormat | Information about dimensions, depth and pixel type of the scan image | ||
![]() |
inScanField | SegmentScanField | Field in which scans will be performed | ||
![]() |
inScanFieldAlignment | CoordinateSystem2D | None | None | Adjusts the scan field to the position of the inspected object | |
![]() |
inScanCount | int | 2 - ![]() |
Number of scans to be performed | |
![]() |
inScanWidth | int | 1 - ![]() |
Width of the scan area | |
![]() |
inImageInterpolation | InterpolationMethod | Interpolation method used in extraction of image pixel values | ||
![]() |
outMeasurementMap | list[ScanMap] | |||
![]() |
outAlignedScanField | SegmentScanField | None | None | Field in which the scans will be performed | |
![]() |
diagScanSegments | list[Segment2D] | Array of scan segments |




