Back to Adaptive Vision Library website

You are here: Start » Function Reference » Profile Basics » GetProfileElement_Interpolated

GetProfileElement_Interpolated


Returns linear interpolation between two consecutive values from a profile.

Syntax

C++
C#
 
void avl::GetProfileElement_Interpolated
(
	const avl::Profile& inProfile,
	bool inCyclic,
	bool inSmooth,
	atl::real inIndex,
	atl::real& outValue
)

Parameters

Name Type Range Default Description
inProfile const Profile& Input profile
inCyclic bool
inSmooth bool
inIndex real - - 0.0f
outValue real&

Errors

Error type Description
DomainError Empty profile on input in GetProfileElement_Interpolated.
DomainError Index out of range in GetProfileElement_Interpolated.