public class RealTransformRandomAccessible.RealTransformRandomAccess extends Point implements RandomAccess<T>
RealRandomAccess
that generates its samples from a source
RealRandomAccessible
at coordinates transformed by a
RealTransform
.
This access does not move its sourceAccess while moving through space
but executes apply()
on each get()
call. This is
preferable in situations where relative moves aren't more efficient than
a full apply()
because moves execute only the integer part and
not the coordinate transfer if no value is requested.Modifier and Type | Field and Description |
---|---|
protected RealRandomAccess<T> |
sourceAccess |
protected R |
transformCopy |
position
n
Modifier | Constructor and Description |
---|---|
protected |
RealTransformRandomAccess() |
protected |
RealTransformRandomAccess(RealTransformRandomAccessible.RealTransformRandomAccess a) |
Modifier and Type | Method and Description |
---|---|
protected void |
apply() |
RealTransformRandomAccessible.RealTransformRandomAccess |
copy() |
RealTransformRandomAccessible.RealTransformRandomAccess |
copyRandomAccess() |
T |
get()
Access the actual T instance providing access to a pixel,
sub-pixel or integral region value the
Sampler points at. |
bck, equals, fwd, hashCode, move, move, move, move, move, setPosition, setPosition, setPosition, setPosition, setPosition, toString, wrap
getDoublePosition, getFloatPosition, getIntPosition, getLongPosition, localize, localize, localize, localize
numDimensions
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
setPositionAndGet, setPositionAndGet, setPositionAndGet
getDoublePosition, getFloatPosition, getIntPosition, getLongPosition, localize, localize, localize, positionAsLongArray, positionAsPoint
localize, localize, localize, positionAsDoubleArray, positionAsRealPoint
numDimensions
bck, fwd, move, move, move, move, move, setPosition, setPosition, setPosition, setPosition, setPosition
protected final RealRandomAccess<T> sourceAccess
protected final R extends RealTransform transformCopy
protected RealTransformRandomAccess()
protected RealTransformRandomAccess(RealTransformRandomAccessible.RealTransformRandomAccess a)
protected final void apply()
public T get()
Sampler
Sampler
points at.public RealTransformRandomAccessible.RealTransformRandomAccess copy()
copy
in interface Sampler<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)public RealTransformRandomAccessible.RealTransformRandomAccess copyRandomAccess()
copyRandomAccess
in interface RandomAccess<T>
Copyright © 2015–2022 ImgLib2. All rights reserved.