CreatePathFittingMap


Precomputes a data object that is required for fast path fitting on images.

Applications:Used together with path fitting, but can be moved before the loop.

Syntax

C++
C#
Python
 
def CreatePathFittingMap(
	inImageFormat: ImageFormat,
	inFittingField: PathFittingField,
	inScanWidth: int,
	inSamplingParams: SamplingParams,
	outFittingMap: PathFittingMap,
	/,
	*,
	inFittingFieldAlignment: CoordinateSystem2D | None = None,
	inScanStep: float | None = None
)
-> (
	diagScanSegments: list[Segment2D],
	diagSamplingAreas: list[Rectangle2D]
)

Parameters

Name Type Range Default Description
Input value inImageFormat ImageFormat Dimensions, depth and pixel type of the images on which fitting will be performed
Input value inFittingField PathFittingField Defines a stripe in which scan segments will be created
Input value inFittingFieldAlignment CoordinateSystem2D | None None Adjusts the fitting field to the position of the inspected object
Input value inScanStep float | None 0.0 - None Optional implicit conversion of the input path to an equidistant one
Input value inScanWidth int 1 - The width of each scan field (in pixels)
Input value inSamplingParams SamplingParams Parameters controlling the sampling process
Output value outFittingMap PathFittingMap Optimized data required for path fitting
Diagnostic input diagScanSegments list[Segment2D] Segments along which the scans will be run
Diagnostic input diagSamplingAreas list[Rectangle2D] Scan fields created for point detection