You are here: Start » FIL.NET » Invoke.FitSegmentToRidges_Direct
Performs a series of 1D ridge detections and finds a segment that best matches the detected points.
Namespace: | Fil |
---|---|
Assembly: | FilNet.dll |
Syntax
C++
C#
public static void FitSegmentToRidges_Direct ( Fil.Image inImage, Fil.SegmentFittingField inFittingField, Optional<Fil.CoordinateSystem2D> inFittingFieldAlignment, int inScanCount, int inScanWidth, Fil.SamplingParams inSamplingParams, Fil.RidgeScanParams inRidgeScanParams, Fil.Selection inRidgeSelection, Optional<Fil.LocalBlindness> inLocalBlindness, float inMaxIncompleteness, Optional<Fil.LineMEstimator> inOutlierSuppression, Conditional<Fil.Segment2D> outSegment, Optional<List<Conditional<Fil.Ridge1D>>> outRidges, Optional<Conditional<Fil.Profile>> outDeviationProfile, Optional<Fil.SegmentFittingField> 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 | |
---|---|---|---|---|---|
![]() | inImage | Fil.Image | Image to fit segment to. | ||
![]() | inFittingField | Fil.SegmentFittingField | Segment fitting field. | ||
![]() | inFittingFieldAlignment | Ftl.Optional<Fil.CoordinateSystem2D> | Adjusts the fitting field to the position of the inspected object. Default value: ftl::NIL. | ||
![]() | inScanCount | int | <3, INF> | 10 | The number of points that will be searched to estimate the position of the segment. Default value: 10. |
![]() | inScanWidth | int | <1, INF> | 5 | The width of each scan field (in pixels). Default value: 5. |
![]() | inSamplingParams | Fil.SamplingParams | Parameters controlling the sampling process. | ||
![]() | inRidgeScanParams | Fil.RidgeScanParams | RidgeScanParams ( 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 ). | |
![]() | inRidgeSelection | Fil.Selection | Selection mode of ridges. | ||
![]() | inLocalBlindness | Ftl.Optional<Fil.LocalBlindness> | Defines conditions in which weaker ridges can be detected in the vicinity of stronger ridges. Default value: ftl::NIL. | ||
![]() | inMaxIncompleteness | float | <0.0f, 0.999f> | 0.1f | Maximal fraction of ridge points not found. Default value: 0.1f. |
![]() | inOutlierSuppression | Ftl.Optional<Fil.LineMEstimator> | Selects a method for ignoring incorrectly detected points. Default value: ftl::NIL. | ||
![]() | outSegment | Ftl.Conditional<Fil.Segment2D> | Fitted segment or nothing if the fitting fails. | ||
![]() | outRidges | Ftl.Optional<System.Collections.Generic.List<Ftl.Conditional<Fil.Ridge1D>>> | Found ridges. | ||
![]() | outDeviationProfile | Ftl.Optional<Ftl.Conditional<Fil.Profile>> | Profile of distances between the actual segment points and the corresponding reference segment points. | ||
![]() | outAlignedFittingField | Ftl.Optional<Fil.SegmentFittingField> | Fitting field used; in the image coordinate system. | ||
![]() | outInliers | Ftl.Optional<System.Collections.Generic.List<Fil.Point2D>> | Points matching the fitting segment. | ||
![]() | outBrightnessProfiles | Ftl.Optional<System.Collections.Generic.List<Fil.Profile>> | Extracted image profiles. | ||
![]() | outResponseProfiles | Ftl.Optional<System.Collections.Generic.List<Fil.Profile>> | Profiles of the ridge operator response. | ||
![]() | diagScanSegments | Fil.Diagnostic<System.Collections.Generic.List<Fil.Segment2D>> | Segments along which the scans were run. | ||
![]() | diagSamplingAreas | Fil.Diagnostic<System.Collections.Generic.List<Fil.Rectangle2D>> | Areas from which the input image is sampled. |