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
Input value inImageFormat ImageFormat Information about dimensions, depth and pixel type of the scan image
Input value inScanField SegmentScanField Field in which scans will be performed
Input value inScanFieldAlignment CoordinateSystem2D | None None Adjusts the scan field to the position of the inspected object
Input value inScanCount int 2 - Number of scans to be performed
Input value inScanWidth int 1 - Width of the scan area
Input value inImageInterpolation InterpolationMethod Interpolation method used in extraction of image pixel values
Output value outMeasurementMap list[ScanMap]
Output value outAlignedScanField SegmentScanField | None None Field in which the scans will be performed
Diagnostic input diagScanSegments list[Segment2D] Array of scan segments