protected static final class KDTree.ValueNode<T> extends KDTreeNode<T>
| Modifier and Type | Field and Description |
|---|---|
protected T |
value |
left, n, pos, right, splitDimension| Modifier | Constructor and Description |
|---|---|
protected |
ValueNode(KDTree.ValueNode<T> node) |
|
ValueNode(T value,
RealLocalizable position,
int dimension,
KDTree.ValueNode<T> left,
KDTree.ValueNode<T> right) |
| Modifier and Type | Method and Description |
|---|---|
KDTree.ValueNode<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, positionAsRealPointprotected final T value
public ValueNode(T value, RealLocalizable position, int dimension, KDTree.ValueNode<T> left, KDTree.ValueNode<T> right)
value - reference to the node's valueposition - coordinates of this nodedimension - dimension along which this node divides the spaceleft - left child noderight - right child nodeprotected ValueNode(KDTree.ValueNode<T> node)
public T get()
SamplerSampler points at.public KDTree.ValueNode<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.