FitSegmentToStripe


Performs a series of 1D stripe detections and finds a segment that best matches the detected points.

Applications:Precise detection of a straight stripe, whose rough location is known beforehand.

Syntax

C++
C#
Python
 
def FitSegmentToStripe(
	inImage: Image,
	inFittingMap: SegmentFittingMap,
	inStripeScanParams: StripeScanParams,
	inStripeSelection: Selection,
	inMaxIncompleteness: float,
	/,
	*,
	inLocalBlindness: LocalBlindness | None = None,
	inOutlierSuppression: LineMEstimator | None = None
)
-> (
	outSegment: Segment2D | None,
	outLeftSegment: Segment2D | None,
	outRightSegment: Segment2D | None,
	outStripes: list[Stripe1D | None],
	outStripePoints: list[Point2D],
	outDeviationProfile: Profile | None,
	outBrightnessProfiles: list[Profile],
	outResponseProfiles: list[Profile]
)

Parameters

Name Type Range Default Description
Input value inImage Image Image to fit segment to
Input value inFittingMap SegmentFittingMap 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 inMaxIncompleteness float 0.0 - 0.999 Maximal fraction of stripe points not found
Input value inOutlierSuppression LineMEstimator | None None Selects a method for ignoring incorrectly detected points
Output value outSegment Segment2D | None Fitted segment in the middle of found stripe
Output value outLeftSegment Segment2D | None Fitted left segment
Output value outRightSegment Segment2D | None Fitted right segment
Output value outStripes list[Stripe1D | None] Found stripes
Output value outStripePoints list[Point2D] Extracted points of middle segment of an image stripe
Output value outDeviationProfile Profile | None Profile of distances between the actual segment points and the corresponding reference segment 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.