You are here: Start » FIL.NET » Invoke.FitArcToRidges_Direct

Invoke.FitArcToRidges_Direct

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

Namespace:Fil
Assembly:FilNet.dll

Syntax

C++
C#
 
public static void FitArcToRidges_Direct
(
	Fil.Image inImage,
	Fil.ArcFittingField inFittingField,
	Optional<Fil.CoordinateSystem2D> inFittingFieldAlignment,
	int inScanCount,
	int inScanWidth,
	Fil.SamplingParams inSamplingParams,
	Fil.RidgeScanParams inRidgeScanParams,
	Fil.Selection inRidgeSelection,
	Optional<Fil.LocalBlindness> inLocalBlindness,
	float inMaxIncompleteness,
	Fil.CircleFittingMethod inFittingMethod,
	Optional<Fil.MEstimator> inOutlierSuppression,
	Conditional<Fil.Arc2D> outArc,
	Optional<List<Conditional<Fil.Ridge1D>>> outRidges,
	Optional<Conditional<Fil.Profile>> outDeviationProfile,
	Optional<Fil.ArcFittingField> outAlignedFittingField,
	Optional<List<Fil.Point2D>> outInliers,
	Optional<List<Fil.Profile>> outBrightnessProfiles,
	Optional<List<Fil.Profile>> outResponseProfiles,
	Diagnostic<List<Fil.Segment2D>> diagScanSegments,
	Diagnostic<List<Fil.Rectangle2D>> diagSamplingAreas
)

Parameters

Name Type Range Default Description
inImageFil.ImageInput image to fit arc to.
inFittingFieldFil.ArcFittingFieldArc fitting field.
inFittingFieldAlignmentFtl.Optional<Fil.CoordinateSystem2D>Adjusts the fitting field to the position of the inspected object. Default value: ftl::NIL.
inScanCountint<3, INF>10The number of points that will be searched to estimate the position of the arc. Default value: 10.
inScanWidthint<1, INF>5The width of each scan field (in pixels). Default value: 5.
inSamplingParamsFil.SamplingParamsParameters controlling the sampling process.
inRidgeScanParamsFil.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 ).
inRidgeSelectionFil.SelectionSelection mode of ridges.
inLocalBlindnessFtl.Optional<Fil.LocalBlindness>Defines conditions in which weaker ridges can be detected in the vicinity of stronger ridges. Default value: ftl::NIL.
inMaxIncompletenessfloat<0.0f, 0.999f>0.1fMaximal fraction of ridge points not found. Default value: 0.1f.
inFittingMethodFil.CircleFittingMethodAlgebraicTaubinMethod used to fit an arc. Default value: AlgebraicTaubin.
inOutlierSuppressionFtl.Optional<Fil.MEstimator>Selects a method for ignoring incorrectly detected points. Default value: ftl::NIL.
outArcFtl.Conditional<Fil.Arc2D>Fitted arc or nothing if the fitting fails.
outRidgesFtl.Optional<System.Collections.Generic.List<Ftl.Conditional<Fil.Ridge1D>>>Found ridges.
outDeviationProfileFtl.Optional<Ftl.Conditional<Fil.Profile>>Profile of distances between the actual arc points and the corresponding reference arc points.
outAlignedFittingFieldFtl.Optional<Fil.ArcFittingField>Fitting field used; in the image coordinate system.
outInliersFtl.Optional<System.Collections.Generic.List<Fil.Point2D>>Points matching the fitting Arc.
outBrightnessProfilesFtl.Optional<System.Collections.Generic.List<Fil.Profile>>Extracted image profiles.
outResponseProfilesFtl.Optional<System.Collections.Generic.List<Fil.Profile>>Profiles of the ridge operator response.
diagScanSegmentsFil.Diagnostic<System.Collections.Generic.List<Fil.Segment2D>>Segments along which the scans were run.
diagSamplingAreasFil.Diagnostic<System.Collections.Generic.List<Fil.Rectangle2D>>Areas from which the input image is sampled.

See also