Back to FabImage Library website
You are here: Start » Function Reference » Profile » Profile Features » ProfileSections

ProfileSections
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationPro |
Finds subprofiles whose values fall into the specified range.
Applications: It may also be considered profile thresholding.
Syntax
C++
C#
void fil::ProfileSections ( const fil::Profile& inProfile, ftl::Optional<const fil::Range&> inRange, ftl::Optional<float> inMinValue, ftl::Optional<float> inMaxValue, const float inMinSectionWidth, ftl::Optional<float> inMaxSectionWidth, float inMinGapWidth, ftl::Optional<float> inMaxGapWidth, ftl::Optional<float> inMaxInnerGapWidth, ftl::Array<fil::ProfileSection>& outSections, ftl::Conditional<fil::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. |