You are here: Start » AVL.NET » Invoke.FitSegmentToRidges_Direct

Invoke.FitSegmentToRidges_Direct

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

Namespace:Avl
Assembly:AvlNet.dll

Syntax

C++
C#
 
public static void FitSegmentToRidges_Direct
(
	Avl.Image inImage,
	Avl.SegmentFittingField inFittingField,
	Optional<Avl.CoordinateSystem2D> inFittingFieldAlignment,
	int inScanCount,
	int inScanWidth,
	Avl.SamplingParams inSamplingParams,
	Avl.RidgeScanParams inRidgeScanParams,
	Avl.Selection inRidgeSelection,
	Optional<Avl.LocalBlindness> inLocalBlindness,
	float inMaxIncompleteness,
	Optional<Avl.LineMEstimator> inOutlierSuppression,
	Conditional<Avl.Segment2D> outSegment,
	Optional<List<Conditional<Avl.Ridge1D>>> outRidges,
	Optional<Conditional<Avl.Profile>> outDeviationProfile,
	Optional<Avl.SegmentFittingField> outAlignedFittingField,
	Optional<List<Avl.Point2D>> outInliers,
	Optional<List<Avl.Profile>> outBrightnessProfiles,
	Optional<List<Avl.Profile>> outResponseProfiles,
	Diagnostic<List<Avl.Segment2D>> diagScanSegments,
	Diagnostic<List<Avl.Rectangle2D>> diagSamplingAreas
)

Parameters

Name Type Range Default Description
inImageAvl.ImageImage to fit segment to.
inFittingFieldAvl.SegmentFittingFieldSegment fitting field.
inFittingFieldAlignmentAtl.Optional<Avl.CoordinateSystem2D>Adjusts the fitting field to the position of the inspected object. Default value: atl::NIL.
inScanCountint<3, INF>10The number of points that will be searched to estimate the position of the segment. Default value: 10.
inScanWidthint<1, INF>5The width of each scan field (in pixels). Default value: 5.
inSamplingParamsAvl.SamplingParamsParameters controlling the sampling process.
inRidgeScanParamsAvl.RidgeScanParamsRidgeScanParams ( ProfileInterpolation: Quadratic4 SmoothingStdDev: 1.0f RidgeWidth: 5 RidgeMargin: 2 MinMagnitude: 5.0f RidgePolarity: Dark )Parameters controlling the ridge extraction process. Default value: RidgeScanParams ( ProfileInterpolation: Quadratic4 SmoothingStdDev: 1.0f RidgeWidth: 5 RidgeMargin: 2 MinMagnitude: 5.0f RidgePolarity: Dark ).
inRidgeSelectionAvl.SelectionSelection mode of ridges.
inLocalBlindnessAtl.Optional<Avl.LocalBlindness>Defines conditions in which weaker ridges can be detected in the vicinity of stronger ridges. Default value: atl::NIL.
inMaxIncompletenessfloat<0.0f, 0.999f>0.1fMaximal fraction of ridge points not found. Default value: 0.1f.
inOutlierSuppressionAtl.Optional<Avl.LineMEstimator>Selects a method for ignoring incorrectly detected points. Default value: atl::NIL.
outSegmentAtl.Conditional<Avl.Segment2D>Fitted segment or nothing if the fitting fails.
outRidgesAtl.Optional<System.Collections.Generic.List<Atl.Conditional<Avl.Ridge1D>>>Found ridges.
outDeviationProfileAtl.Optional<Atl.Conditional<Avl.Profile>>Profile of distances between the actual segment points and the corresponding reference segment points.
outAlignedFittingFieldAtl.Optional<Avl.SegmentFittingField>Fitting field used; in the image coordinate system.
outInliersAtl.Optional<System.Collections.Generic.List<Avl.Point2D>>Points matching the fitting segment.
outBrightnessProfilesAtl.Optional<System.Collections.Generic.List<Avl.Profile>>Extracted image profiles.
outResponseProfilesAtl.Optional<System.Collections.Generic.List<Avl.Profile>>Profiles of the ridge operator response.
diagScanSegmentsAvl.Diagnostic<System.Collections.Generic.List<Avl.Segment2D>>Segments along which the scans were run.
diagSamplingAreasAvl.Diagnostic<System.Collections.Generic.List<Avl.Rectangle2D>>Areas from which the input image is sampled.

See also