Package net.imglib2.kdtree
Class RadiusNeighborSearchImpl
- java.lang.Object
-
- net.imglib2.kdtree.RadiusNeighborSearchImpl
-
public class RadiusNeighborSearchImpl extends java.lang.ObjectRadius neighbor search onKDTreeImpl. Results are node indices.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classRadiusNeighborSearchImpl.Neighbors
-
Field Summary
Fields Modifier and Type Field Description private int[]awayChildsprivate double[]axisDiffsprivate RadiusNeighborSearchImpl.Neighborsneighborsprivate intnumDimensionsprivate intnumPointsprivate double[]posprivate KDTreeImpltree
-
Constructor Summary
Constructors Constructor Description RadiusNeighborSearchImpl(KDTreeImpl tree)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intbestIndex(int i)doublebestSquDistance(int i)RadiusNeighborSearchImplcopy()intnumNeighbors()voidsearch(RealLocalizable p, double radius, boolean sortResults)
-
-
-
Field Detail
-
tree
private final KDTreeImpl tree
-
numDimensions
private final int numDimensions
-
numPoints
private final int numPoints
-
pos
private final double[] pos
-
axisDiffs
private final double[] axisDiffs
-
awayChilds
private final int[] awayChilds
-
neighbors
private final RadiusNeighborSearchImpl.Neighbors neighbors
-
-
Constructor Detail
-
RadiusNeighborSearchImpl
public RadiusNeighborSearchImpl(KDTreeImpl tree)
-
-
Method Detail
-
search
public void search(RealLocalizable p, double radius, boolean sortResults)
-
numNeighbors
public int numNeighbors()
-
bestIndex
public int bestIndex(int i)
-
bestSquDistance
public double bestSquDistance(int i)
-
copy
public RadiusNeighborSearchImpl copy()
-
-