Back to Adaptive Vision Library website

You are here: Start » Function Reference » Region » Region Relations » GroupPathsByRegions

GroupPathsByRegions


Header: AVL.h
Namespace: avl
Module: FoundationBasic

For each region returns which paths lie inside of it or intersect with it.

Syntax

C++
C#
 
void avl::GroupPathsByRegions
(
	const atl::Array<avl::Path>& inPaths,
	const atl::Array<avl::Region>& inRegions,
	avl::MatchingCriterion::Type inMatchingCriterion,
	atl::Array<atl::Array<int> >& outGroupedIndices,
	atl::Optional<atl::Array<atl::Array<avl::Path> >&> outGroupedPaths = atl::NIL
)

Parameters

Name Type Default Description
inPaths const Array<Path>& Array of paths that will be classified into multiple groups
inRegions const Array<Region>& Array of regions that define the groups
inMatchingCriterion MatchingCriterion::Type Specifies whether a path must fully belong to a group region or if it is enough that it intersects
outGroupedIndices Array<Array<int> >& Indices of input paths classified into multiple groups
outGroupedPaths Optional<Array<Array<Path> >&> NIL Input paths classified into multiple groups

Optional Outputs

The computation of following outputs can be switched off by passing value atl::NIL to these parameters: outGroupedPaths.

Read more about Optional Outputs.

See Also