Back to Adaptive Vision Library website
You are here: Start » Function Reference » Profile Spatial Transforms » ShrinkProfileNTimes
ShrinkProfileNTimes
Reduces the length of the profile by averaging its elements.
Syntax
C++
C#
void avl::ShrinkProfileNTimes ( const avl::Profile& inProfile, const int inN, avl::Profile& outProfile )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inProfile | const Profile& | Input profile | |||
inN | const int | 1 - | 2 | The scaling coefficient | |
outProfile | Profile& | Output profile |
Errors
Error type | Description |
---|---|
DomainError | Input profile size must be greater then 2 in ShrinkProfileNTimes! |