data structure for storing k-nearest neighbor search result (k number of Neighbors) More...
#include <itkKdTree.h>
Public Member Functions | |
const std::vector< double > & | GetDistances () const |
const std::vector< double > & | GetDistances () const |
double | GetLargestDistance () |
double | GetLargestDistance () |
InstanceIdentifier | GetNeighbor (unsigned int index) const |
InstanceIdentifier | GetNeighbor (unsigned int index) const |
const InstanceIdentifierVectorType & | GetNeighbors () const |
const InstanceIdentifierVectorType & | GetNeighbors () const |
NearestNeighbors () | |
NearestNeighbors () | |
~NearestNeighbors () | |
~NearestNeighbors () | |
void | resize (unsigned int k) |
void | ReplaceFarthestNeighbor (InstanceIdentifier id, double distance) |
void | resize (unsigned int k) |
void | ReplaceFarthestNeighbor (InstanceIdentifier id, double distance) |
data structure for storing k-nearest neighbor search result (k number of Neighbors)
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 425 of file Numerics/Statistics/itkKdTree.h.
itk::Statistics::KdTree< TSample >::NearestNeighbors::NearestNeighbors | ( | ) | [inline] |
Constructor
Definition at line 429 of file Numerics/Statistics/itkKdTree.h.
itk::Statistics::KdTree< TSample >::NearestNeighbors::~NearestNeighbors | ( | ) | [inline] |
Destructor
Definition at line 432 of file Numerics/Statistics/itkKdTree.h.
itk::Statistics::KdTree< TSample >::NearestNeighbors::NearestNeighbors | ( | ) | [inline] |
Constructor
Definition at line 479 of file Review/Statistics/itkKdTree.h.
itk::Statistics::KdTree< TSample >::NearestNeighbors::~NearestNeighbors | ( | ) | [inline] |
Destructor
Definition at line 482 of file Review/Statistics/itkKdTree.h.
const std::vector< double >& itk::Statistics::KdTree< TSample >::NearestNeighbors::GetDistances | ( | ) | const [inline] |
Returns the vector of k-neighbors' instance identifiers
Definition at line 479 of file Numerics/Statistics/itkKdTree.h.
const std::vector< double >& itk::Statistics::KdTree< TSample >::NearestNeighbors::GetDistances | ( | ) | const [inline] |
Returns the vector of k-neighbors' instance identifiers
Definition at line 535 of file Review/Statistics/itkKdTree.h.
double itk::Statistics::KdTree< TSample >::NearestNeighbors::GetLargestDistance | ( | ) | [inline] |
Returns the distance of the farthest neighbor from the query point
Definition at line 497 of file Review/Statistics/itkKdTree.h.
double itk::Statistics::KdTree< TSample >::NearestNeighbors::GetLargestDistance | ( | ) | [inline] |
Returns the distance of the farthest neighbor from the query point
Definition at line 447 of file Numerics/Statistics/itkKdTree.h.
InstanceIdentifier itk::Statistics::KdTree< TSample >::NearestNeighbors::GetNeighbor | ( | unsigned int | index | ) | const [inline] |
Returns the instance identifier of the index-th neighbor among k-neighbors
Definition at line 475 of file Numerics/Statistics/itkKdTree.h.
InstanceIdentifier itk::Statistics::KdTree< TSample >::NearestNeighbors::GetNeighbor | ( | unsigned int | index | ) | const [inline] |
Returns the instance identifier of the index-th neighbor among k-neighbors
Definition at line 529 of file Review/Statistics/itkKdTree.h.
const InstanceIdentifierVectorType& itk::Statistics::KdTree< TSample >::NearestNeighbors::GetNeighbors | ( | ) | const [inline] |
Returns the vector of k-neighbors' instance identifiers
Definition at line 470 of file Numerics/Statistics/itkKdTree.h.
const InstanceIdentifierVectorType& itk::Statistics::KdTree< TSample >::NearestNeighbors::GetNeighbors | ( | ) | const [inline] |
Returns the vector of k-neighbors' instance identifiers
Definition at line 522 of file Review/Statistics/itkKdTree.h.
void itk::Statistics::KdTree< TSample >::NearestNeighbors::ReplaceFarthestNeighbor | ( | InstanceIdentifier | id, | |
double | distance | |||
) | [inline] |
Replaces the farthest neighbor's instance identifier and distance value with the id and the distance
Definition at line 504 of file Review/Statistics/itkKdTree.h.
void itk::Statistics::KdTree< TSample >::NearestNeighbors::ReplaceFarthestNeighbor | ( | InstanceIdentifier | id, | |
double | distance | |||
) | [inline] |
Replaces the farthest neighbor's instance identifier and distance value with the id and the distance
Definition at line 452 of file Numerics/Statistics/itkKdTree.h.
void itk::Statistics::KdTree< TSample >::NearestNeighbors::resize | ( | unsigned int | k | ) | [inline] |
Initialize the internal instance identifier and distance holders with the size, k
Definition at line 436 of file Numerics/Statistics/itkKdTree.h.
void itk::Statistics::KdTree< TSample >::NearestNeighbors::resize | ( | unsigned int | k | ) | [inline] |
Initialize the internal instance identifier and distance holders with the size, k
Definition at line 486 of file Review/Statistics/itkKdTree.h.