Back to Aurora Vision Library website

You are here: Start » Function Reference » Profile » Profile Features » ProfileSections

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
Input value inProfile const Profile& Input profile
Input value inRange Optional<const Range&> NIL
Input value inMinValue Optional<float> 5.0f Lower bound for profile values
Input value inMaxValue Optional<float> NIL Upper bound for profile values
Input value inMinSectionWidth const float 0.0 - 0.0f Minimal width of the found section
Input value inMaxSectionWidth Optional<float> 0.0 - NIL Maximal width of the found section
Input value inMinGapWidth float 0.0 - 0.0f Minimal distance between consecutive sections
Input value inMaxGapWidth Optional<float> 0.0 - NIL Maximal distance between consecutive sections
Input value inMaxInnerGapWidth Optional<float> 0.0 - 0.0f Maximal possible gap width between two sections to join them into one
Output value outSections Array<ProfileSection>& Output profile sections
Output value 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.