Back to Aurora Vision Library website

You are here: Start » Function Reference » Computer Vision » Shape Fitting 3D » FitPathToRidges3D

FitPathToRidges3D


Header: AVL.h
Namespace: avl
Module: Vision3DStandard

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

Applications: Tracing of a thin line, whose rough location is known beforehand.

Syntax

C++
C#
 
void avl::FitPathToRidges3D
(
	const avl::Surface& inSurface,
	const PathFittingMap& inFittingMap,
	const RidgeScanParams3D& inRidgeScanParams,
	avl::Selection::Type inRidgeSelection,
	atl::Optional<const avl::LocalBlindness&> inLocalBlindness,
	atl::Optional<int> inMaxProfileGapWidth,
	atl::Optional<int> inMaxPathInterpolationLength,
	atl::Optional<float> inMaxDeviationDelta,
	float inMaxIncompleteness,
	atl::Conditional<atl::Array<avl::Point3D> >& outPath,
	atl::Optional<atl::Array<atl::Conditional<avl::SurfaceRidge1D> >&> outRidges = atl::NIL,
	atl::Optional<atl::Conditional<avl::Profile>&> outDeviationProfile = atl::NIL,
	atl::Optional<atl::Array<avl::Profile>&> outHeightProfiles = atl::NIL,
	atl::Optional<atl::Array<avl::Profile>&> outResponseProfiles = atl::NIL,
	atl::Optional<atl::Conditional<atl::Array<avl::Segment3D>>&> outPathSegments = atl::NIL
)

Parameters

Name Type Range Default Description
Input value inSurface const Surface& Surface to fit the path to
Input value inFittingMap const PathFittingMap& Input fitting map
Input value inRidgeScanParams const RidgeScanParams3D& Parameters controlling the ridge extraction process
Input value inRidgeSelection Selection::Type SelectionBest Selection mode of ridges
Input value inLocalBlindness Optional<const LocalBlindness&> NIL Defines conditions in which weaker ridges can be detected in the vicinity of stronger ridges
Input value inMaxProfileGapWidth Optional<int> 0 - 1 Maximal number of consecutive not existing profile points
Input value inMaxPathInterpolationLength Optional<int> NIL Maximal number of consecutive points not found
Input value inMaxDeviationDelta Optional<float> 0.0 - NIL Maximal difference between deviations of consecutive path points
Input value inMaxIncompleteness float 0.0 - 0.999 0.1f Maximal fraction of ridge points not found
Output value outPath Conditional<Array<Point3D> >& Fitted path or nothing if the fitting failed
Output value outRidges Optional<Array<Conditional<SurfaceRidge1D> >&> NIL Found ridges
Output value outDeviationProfile Optional<Conditional<Profile>&> NIL Profile of distances between the actual path points and the corresponding reference path points
Output value outHeightProfiles Optional<Array<Profile>&> NIL Extracted surface height profiles
Output value outResponseProfiles Optional<Array<Profile>&> NIL Profiles of the ridge operator response
Output value outPathSegments Optional<Conditional<Array<Segment3D>>&> NIL Segments of the fitted path or nothing if the fitting failed

Optional Outputs

The computation of following outputs can be switched off by passing value atl::NIL to these parameters: outRidges, outDeviationProfile, outHeightProfiles, outResponseProfiles, outPathSegments.

Read more about Optional Outputs.

Hardware Acceleration

This operation supports automatic parallelization for multicore and multiprocessor systems.

Errors

List of possible exceptions:

Error type Description
DomainError Ridge operator parameters are too low in surface ridges detector in FitPathToRidges3D.