Back to FabImage Library website
You are here: Start » Function Reference » Region » Region Relations » GroupPointsByRegions

GroupPointsByRegions
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationBasic |
For each region returns which points lie inside of it.
Syntax
C++
C#
void fil::GroupPointsByRegions ( const ftl::Array<fil::Point2D>& inPoints, const ftl::Array<fil::Region>& inRegions, ftl::Array<ftl::Array<int> >& outGroupedIndices, ftl::Optional<ftl::Array<ftl::Array<fil::Point2D> >&> outGroupedPoints = ftl::NIL )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inPoints | const Array<Point2D>& | ||
![]() |
inRegions | const Array<Region>& | ||
![]() |
outGroupedIndices | Array<Array<int> >& | ||
![]() |
outGroupedPoints | Optional<Array<Array<Point2D> >&> | NIL |
Optional Outputs
The computation of following outputs can be switched off by passing value ftl::NIL
to these parameters: outGroupedPoints.
Read more about Optional Outputs.
Examples
![]() |
![]() |
GroupPointsByRegions performed with three input regions.
See Also
- FisFilter_GetMultipleArrayElements – Extracts multiple elements from an array.