Back to Adaptive Vision Library website
You are here: Start » Function Reference » Profile Local Transforms » DifferentiateProfile
DifferentiateProfile
Computes the derivative of a profile.
Header: | AVL.h |
---|
Syntax
C++
C#
void avl::DifferentiateProfile ( const avl::Profile& inProfile, const bool inCyclic, avl::DifferentiationMethod::Type inDifferentiationMethod, avl::Profile& outDerivative )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
inProfile | const Profile& | Input profile | ||
inCyclic | const bool | Defines whether to compute differences between first and last elements | ||
inDifferentiationMethod | DifferentiationMethod::Type | Central | ||
outDerivative | Profile& |
Description
Computes finite difference of profile using forward, backward or central difference method. If inCyclic is False then depending of chosen difference method values for first or last element of inProfile is undefined and thus outermost values are doubled when necessary.
For instance, in forward difference method, last element of derivative profile is always zero. In backward difference method, first element is always zero.