Back to FabImage Library website
You are here: Start » Function Reference » Geometry 2D » Geometry 2D Relations » FindClosestPoints
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationLite |
For each given point, finds the closest point among the given point set.
Syntax
C++
C#
void fil::FindClosestPoints ( const ftl::Array<fil::Point2D>& inPointSet, const ftl::Array<fil::Point2D>& inQueries, ftl::Array<fil::Point2D>& outPoints, ftl::Array<int>& outIndices )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inPointSet | const Array<Point2D>& | Points that will be searched. | |
![]() |
inQueries | const Array<Point2D>& | ||
![]() |
outPoints | Array<Point2D>& | For each point in inQueries, the closest point value from inPointSet. | |
![]() |
outIndices | Array<int>& | For each point in inQueries, the closest point index of inPointSet. |
Hardware Acceleration
This operation supports automatic parallelization for multicore and multiprocessor systems.