#include <itkKdTree.h>
Public Member Functions | |
NearestNeighbors () | |
~NearestNeighbors () | |
double | GetLargestDistance () |
InstanceIdentifierVectorType | GetNeighbors () |
InstanceIdentifier | GetNeighbor (unsigned int index) |
std::vector< double > & | GetDistances () |
void | resize (unsigned int k) |
void | ReplaceFarthestNeighbor (InstanceIdentifier id, double distance) |
This class stores the instance identifiers and the distance values of k-nearest neighbors. We can also query the farthest neighbor's distance from the query point using the GetLargestDistance method.
Definition at line 394 of file itkKdTree.h.
|
Constructor Definition at line 398 of file itkKdTree.h. |
|
Destructor Definition at line 401 of file itkKdTree.h. |
|
Returns the vector of k-neighbors' instance identifiers Definition at line 448 of file itkKdTree.h. |
|
Returns the distance of the farthest neighbor from the query point Definition at line 416 of file itkKdTree.h. |
|
Returns the instance identifier of the index-th neighbor among k-neighbors Definition at line 444 of file itkKdTree.h. |
|
Returns the vector of k-neighbors' instance identifiers Definition at line 439 of file itkKdTree.h. |
|
Replaces the farthest neighbor's instance identifier and distance value with the id and the distance Definition at line 421 of file itkKdTree.h. |
|
Initialize the internal instance identifier and distance holders with the size, k Definition at line 405 of file itkKdTree.h. |