protected static final class KDTree.SamplerNode<T> extends KDTreeNode<T>
| Modifier and Type | Field and Description |
|---|---|
protected Sampler<T> |
sampler |
left, n, pos, right, splitDimension| Modifier | Constructor and Description |
|---|---|
protected |
SamplerNode(KDTree.SamplerNode<T> node) |
|
SamplerNode(Sampler<T> sampler,
RealLocalizable position,
int dimension,
KDTree.SamplerNode<T> left,
KDTree.SamplerNode<T> right) |
| Modifier and Type | Method and Description |
|---|---|
KDTree.SamplerNode<T> |
copy() |
T |
get()
Access the actual T instance providing access to a pixel,
sub-pixel or integral region value the
Sampler points at. |
String |
toString() |
getDoublePosition, getFloatPosition, getSplitCoordinate, getSplitDimension, localize, localize, numDimensions, squDistanceTo, squDistanceTo, squDistanceToclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitlocalize, positionAsDoubleArray, positionAsRealPointpublic SamplerNode(Sampler<T> sampler, RealLocalizable position, int dimension, KDTree.SamplerNode<T> left, KDTree.SamplerNode<T> right)
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 nodeprotected SamplerNode(KDTree.SamplerNode<T> node)
public T get()
SamplerSampler points at.public KDTree.SamplerNode<T> copy()
copy in interface Sampler<T>copy in class KDTreeNode<T>Sampler in the same state accessing the same
values.
It does NOT copy T, just the state of the Sampler.
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 an
ArrayCursor for example)Copyright © 2015–2022 ImgLib2. All rights reserved.