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>
A KDTreeNode that stores it's value as a Sampler.
-
Field Summary
FieldsFields inherited from class net.imglib2.KDTreeNode
left, n, pos, right, splitDimension -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSamplerNode(KDTree.SamplerNode<T> node) SamplerNode(Sampler<T> sampler, RealLocalizable position, int dimension, KDTree.SamplerNode<T> left, KDTree.SamplerNode<T> right) -
Method Summary
Methods inherited from class net.imglib2.KDTreeNode
getDoublePosition, getFloatPosition, getSplitCoordinate, getSplitDimension, localize, localize, numDimensions, squDistanceTo, squDistanceTo, squDistanceTo
-
Field Details
-
sampler
-
-
Constructor Details
-
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
-
-
Method Details
-
get
Description copied from interface:SamplerAccess the actual T instance providing access to a pixel, sub-pixel or integral region value theSamplerpoints at. -
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
-