Package net.imglib2
Class KDTree.SamplerNode<T>
- java.lang.Object
-
- net.imglib2.KDTreeNode<T>
-
- net.imglib2.KDTree.SamplerNode<T>
-
- All Implemented Interfaces:
EuclideanSpace,RealLocalizable,Sampler<T>
protected static final class KDTree.SamplerNode<T> extends KDTreeNode<T>
A KDTreeNode that stores its value as a Sampler.
-
-
Field Summary
Fields Modifier and Type Field Description protected Sampler<T>sampler-
Fields inherited from class net.imglib2.KDTreeNode
left, n, pos, right, splitDimension
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSamplerNode(KDTree.SamplerNode<T> node)SamplerNode(Sampler<T> sampler, RealLocalizable position, int dimension, KDTree.SamplerNode<T> left, KDTree.SamplerNode<T> right)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KDTree.SamplerNode<T>copy()Tget()Access the actual T instance providing access to a pixel, sub-pixel or integral region value theSamplerpoints at.java.lang.StringtoString()-
Methods inherited from class net.imglib2.KDTreeNode
getDoublePosition, getFloatPosition, getSplitCoordinate, getSplitDimension, localize, localize, numDimensions, squDistanceTo, squDistanceTo, squDistanceTo
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.imglib2.RealLocalizable
localize, positionAsDoubleArray, positionAsRealPoint
-
-
-
-
Constructor Detail
-
SamplerNode
public SamplerNode(Sampler<T> sampler, RealLocalizable position, int dimension, KDTree.SamplerNode<T> left, KDTree.SamplerNode<T> right)
- Parameters:
sampler- a sampler providing the node's valueposition- coordinates of this nodedimension- dimension along which this node divides the spaceleft- left child noderight- right child node
-
SamplerNode
protected SamplerNode(KDTree.SamplerNode<T> node)
-
-
Method Detail
-
get
public T get()
Description copied from interface:SamplerAccess the actual T instance providing access to a pixel, sub-pixel or integral region value theSamplerpoints at.
-
copy
public KDTree.SamplerNode<T> copy()
- Specified by:
copyin interfaceSampler<T>- Specified by:
copyin classKDTreeNode<T>- Returns:
- - A new
Samplerin the same state accessing the same values. It does NOT copy T, just the state of theSampler. Otherwise use T.copy() if available. Sampler.copy().get() == Sampler.get(), i.e. both hold the same value, not necessarily the same instance (this is the case for anArrayCursorfor example)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-