Back to Aurora Vision Library website
You are here: Start » Function Reference » Profile » Profile Features » ProfileSections
![](../../img/icon/ProfileAnalysis.png)
ProfileSections
Header: | AVL.h |
---|---|
Namespace: | avl |
Module: | FoundationPro |
Finds subprofiles whose values fall into the specified range.
Applications: It may also be considered profile thresholding.
Syntax
C++
C#
void avl::ProfileSections ( const avl::Profile& inProfile, atl::Optional<const avl::Range&> inRange, atl::Optional<float> inMinValue, atl::Optional<float> inMaxValue, const float inMinSectionWidth, atl::Optional<float> inMaxSectionWidth, float inMinGapWidth, atl::Optional<float> inMaxGapWidth, atl::Optional<float> inMaxInnerGapWidth, atl::Array<avl::ProfileSection>& outSections, atl::Conditional<avl::ProfileSection>& outBoundingSection )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() |
inProfile | const Profile& | Input profile | ||
![]() |
inRange | Optional<const Range&> | NIL | ||
![]() |
inMinValue | Optional<float> | 5.0f | Lower bound for profile values | |
![]() |
inMaxValue | Optional<float> | NIL | Upper bound for profile values | |
![]() |
inMinSectionWidth | const float | 0.0 - ![]() |
0.0f | Minimal width of the found section |
![]() |
inMaxSectionWidth | Optional<float> | 0.0 - ![]() |
NIL | Maximal width of the found section |
![]() |
inMinGapWidth | float | 0.0 - ![]() |
0.0f | Minimal distance between consecutive sections |
![]() |
inMaxGapWidth | Optional<float> | 0.0 - ![]() |
NIL | Maximal distance between consecutive sections |
![]() |
inMaxInnerGapWidth | Optional<float> | 0.0 - ![]() |
0.0f | Maximal possible gap width between two sections to join them into one |
![]() |
outSections | Array<ProfileSection>& | Output profile sections | ||
![]() |
outBoundingSection | Conditional<ProfileSection>& | The smallest section that contains all outSections |
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Range exceeds the input profile in ProfileSections. |