FitPathToStripe


Performs a series of 1D stripe detections and creates a path from the detected points.

Applications:Tracing of a stripe, whose rough location and shape is known beforehand.

Syntax

C++
C#
Python
 
def FitPathToStripe(
	inImage: Image,
	inFittingMap: PathFittingMap,
	inStripeScanParams: StripeScanParams,
	inStripeSelection: Selection,
	inMaxIncompleteness: float,
	/,
	*,
	inLocalBlindness: LocalBlindness | None = None,
	inMaxInterpolationLength: int | None = None,
	inMaxDeviationDelta: float | None = None
)
-> (
	outPath: Path | None,
	outLeftPath: Path | None,
	outRightPath: Path | None,
	outStripes: list[Stripe1D | None],
	outDeviationProfile: Profile | None,
	outBrightnessProfiles: list[Profile],
	outResponseProfiles: list[Profile]
)

Parameters

Name Type Range Default Description
Input value inImage Image Image to fit the path to
Input value inFittingMap PathFittingMap Input fitting map
Input value inStripeScanParams StripeScanParams Parameters controlling the stripe extraction process
Input value inStripeSelection Selection Selection mode of stripe
Input value inLocalBlindness LocalBlindness | None None Defines conditions in which weaker edges can be detected in the vicinity of stronger edges
Input value inMaxInterpolationLength int | None 0 - None Maximal number of consecutive points not found
Input value inMaxDeviationDelta float | None 0.0 - None Maximal difference between deviations of consecutive path points
Input value inMaxIncompleteness float 0.0 - 0.999 Maximal fraction of stripe points not found
Output value outPath Path | None Fitted path in the middle of found stripe
Output value outLeftPath Path | None Fitted left path
Output value outRightPath Path | None Fitted right path
Output value outStripes list[Stripe1D | None] Found stripes
Output value outDeviationProfile Profile | None Profile of distances between the actual path points and the corresponding reference path points
Output value outBrightnessProfiles list[Profile] Extracted image profiles
Output value outResponseProfiles list[Profile] Profiles of the edge (derivative) operator response

Hardware Acceleration

This operation supports automatic parallelization for multicore and multiprocessor systems.