public interface RadiusNeighborSearch<T> extends EuclideanSpace
RadiusNeighborSearch
.Modifier and Type | Method and Description |
---|---|
double |
getDistance(int i)
Access the Euclidean distance between the reference location as used for
the last search and the ith neighbor.
|
RealLocalizable |
getPosition(int i)
Access the position of the ith neighbor within
radius.
|
Sampler<T> |
getSampler(int i)
Access the data of the ith neighbor within radius.
|
double |
getSquareDistance(int i)
Access the square Euclidean distance between the reference location as
used for the last search and the ith neighbor.
|
int |
numNeighbors()
Get the number of points found within radius after a
search(RealLocalizable, double, boolean) . |
void |
search(RealLocalizable reference,
double radius,
boolean sortResults)
Perform neighbor search within a radius about a reference coordinate.
|
numDimensions
void search(RealLocalizable reference, double radius, boolean sortResults)
reference
- the reference coordinate.radius
- the radius about the reference coordinate that should be
searched for neighbors.sortResults
- whether the results should be ordered by ascending distances
to reference.int numNeighbors()
search(RealLocalizable, double, boolean)
.search(RealLocalizable, double, boolean)
.Sampler<T> getSampler(int i)
sortResults
was set to true, neighbors are ordered by square
Euclidean distance to the reference. Data is accessed through a
Sampler
that guarantees write access if the underlying data set
is writable.RealLocalizable getPosition(int i)
sortResults
was set to true, neighbors are ordered by
square Euclidean distance to the reference.double getSquareDistance(int i)
sortResults
was set to true, neighbors are ordered by square
Euclidean distance to the reference.double getDistance(int i)
Copyright © 2015–2022 ImgLib2. All rights reserved.