public interface KNearestNeighborSearch<T> extends NearestNeighborSearch<T>
KNearestNeighborSearch
.Modifier and Type | Method and Description |
---|---|
KNearestNeighborSearch<T> |
copy()
Create a copy.
|
double |
getDistance(int i)
Access the Euclidean distance between the reference location as used for
the last search and the ith nearest neighbor, ordered
by square Euclidean distance.
|
int |
getK()
Get the of k nearest neighbor points used in this search
|
RealLocalizable |
getPosition(int i)
Access the position of the ith nearest neighbor,
ordered by square Euclidean distance.
|
Sampler<T> |
getSampler(int i)
Access the data of the ith nearest neighbor, ordered
by square Euclidean distance.
|
double |
getSquareDistance(int i)
Access the square Euclidean distance between the reference location as
used for the last search and the ith nearest
neighbor, ordered by square Euclidean distance.
|
void |
search(RealLocalizable reference)
Perform k-nearest-neighbor search for a reference coordinate.
|
getDistance, getPosition, getSampler, getSquareDistance
numDimensions
void search(RealLocalizable reference)
search
in interface NearestNeighborSearch<T>
reference
- int getK()
Sampler<T> getSampler(int i)
Sampler
that guarantees write access if the underlying data set is writable.RealLocalizable getPosition(int i)
double getSquareDistance(int i)
double getDistance(int i)
KNearestNeighborSearch<T> copy()
copy
in interface NearestNeighborSearch<T>
Copyright © 2015–2022 ImgLib2. All rights reserved.