Back to Adaptive Vision Library website

You are here: Start » Function Reference » Shape Adjustment » AdjustPathArrayToEdges

AdjustPathArrayToEdges


Translates, rotates and scales the given contour set to the edges of the input image.

Syntax

C++
C#
 
void avl::AdjustPathArrayToEdges
(
	const avl::Image& inImage,
	const atl::Array< avl::Path >& inPaths,
	float inAttractionRadius,
	int inIterationCount,
	float inBaseGradient,
	bool inRobust,
	float inDensity,
	atl::Array< avl::Path >& outAdjustedPaths,
	avl::Vector2D& outTranslation,
	float& outRotation,
	float& outScale,
	atl::Array< avl::Segment2D >& outAttractionVectors
)

Parameters

Name Type Range Default Description
inImage const Image& Input image
inPaths const ArrayPath >&
inAttractionRadius float 0.1 - 2.0f
inIterationCount int 0 - 100 10
inBaseGradient float 1.0 - 1.0f
inRobust bool
inDensity float 0.0 - 1.0 1.0f
outAdjustedPaths ArrayPath >&
outTranslation Vector2D&
outRotation float&
outScale float&
outAttractionVectors ArraySegment2D >&