Back to Aurora Vision Library website

You are here: Start » Function Reference » Profile » Profile Features » ProfileEdges

ProfileEdges


Header: AVL.h
Namespace: avl
Module: FoundationPro

Finds the locations at which the profile values raise or fall quickly.

Applications: Can be used for 1D edge detection when the brightness profile is extracted from an image in a non-standard way.

Syntax

C++
C#
 
void avl::ProfileEdges
(
	const avl::Profile& inProfile,
	atl::Optional<const avl::Range&> inRange,
	bool inCyclic,
	const avl::EdgeScanParams& inEdgeScanParams,
	float inMinDistance,
	atl::Optional<float> inMaxDistance,
	atl::Optional<const avl::LocalBlindness&> inLocalBlindness,
	atl::Array<avl::ProfileEdge>& outEdges,
	atl::Optional<atl::Array<float>&> outDistances = atl::NIL,
	atl::Optional<avl::Profile&> outResponseProfile = atl::NIL
)

Parameters

Name Type Range Default Description
Input value inProfile const Profile& Input profile
Input value inRange Optional<const Range&> NIL
Input value inCyclic bool
Input value inEdgeScanParams const EdgeScanParams& EdgeScanParams ( ProfileInterpolation: Quadratic4 SmoothingStdDev: 0.6f MinMagnitude: 5.0f EdgeTransition: BrightToDark ) Parameters controlling the edge extraction process
Input value inMinDistance float 0.0 - 0.0f Minimal distance between consecutive edges
Input value inMaxDistance Optional<float> 0.0 - NIL Maximal distance between consecutive edges
Input value inLocalBlindness Optional<const LocalBlindness&> NIL Defines conditions in which weaker edges can be detected in the vicinity of stronger edges
Output value outEdges Array<ProfileEdge>& Found edges
Output value outDistances Optional<Array<float>&> NIL Output distances between consecutive edges
Output value outResponseProfile Optional<Profile&> NIL Profile of the edge (derivative) operator response

Optional Outputs

The computation of following outputs can be switched off by passing value atl::NIL to these parameters: outDistances, outResponseProfile.

Read more about Optional Outputs.

Errors

List of possible exceptions:

Error type Description
DomainError Range exceeds the input profile in ProfileEdges.