public class NearestNeighborSearchOnKDTree<T> extends Object implements NearestNeighborSearch<T>
NearestNeighborSearch search for kd-trees.| Constructor and Description |
|---|
NearestNeighborSearchOnKDTree(KDTree<T> tree) |
| Modifier and Type | Method and Description |
|---|---|
NearestNeighborSearchOnKDTree<T> |
copy()
Create a copy.
|
RealLocalizable |
getPosition()
Access the position of the nearest neighbor, ordered by square Euclidean
distance.
|
Sampler<T> |
getSampler()
Access the data of the nearest neighbor.
|
double |
getSquareDistance()
Access the square Euclidean distance between the reference location as
used for the last search and the nearest neighbor, ordered by square
Euclidean distance.
|
int |
numDimensions()
Gets the space's number of dimensions.
|
void |
search(RealLocalizable p)
Perform nearest-neighbor search for a reference coordinate.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDistancepublic int numDimensions()
EuclideanSpacenumDimensions in interface EuclideanSpacepublic void search(RealLocalizable p)
NearestNeighborSearchsearch in interface NearestNeighborSearch<T>public Sampler<T> getSampler()
NearestNeighborSearchSampler that guarantees write access if the underlying data set
is writable.getSampler in interface NearestNeighborSearch<T>public RealLocalizable getPosition()
NearestNeighborSearchgetPosition in interface NearestNeighborSearch<T>public double getSquareDistance()
NearestNeighborSearchgetSquareDistance in interface NearestNeighborSearch<T>public NearestNeighborSearchOnKDTree<T> copy()
NearestNeighborSearchcopy in interface NearestNeighborSearch<T>Copyright © 2009–2025 ImgLib2. All rights reserved.