Back to FabImage Library website

You are here: Start » Function Reference » Geometry 2D » Geometry 2D Relations » FindClosestPoints

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
Input value
inPointSet const Array<Point2D>& Points that will be searched.
Input value
inQueries const Array<Point2D>&
Output value
outPoints Array<Point2D>& For each point in inQueries, the closest point value from inPointSet.
Output value
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.