public static class ScaleAsFunctionOfPosition.ScaledRandomAccess<T extends Type<T> & MulFloatingPoint> extends AbstractConvertedRandomAccess<T,T>
source
Constructor and Description |
---|
ScaledRandomAccess(RandomAccess<T> source,
ToDoubleFunction<Localizable> scalingFunction) |
Modifier and Type | Method and Description |
---|---|
ScaleAsFunctionOfPosition.ScaledRandomAccess<T> |
copy() |
T |
get()
Access the actual T instance providing access to a pixel,
sub-pixel or integral region value the
Sampler points at. |
bck, copyRandomAccess, fwd, getDoublePosition, getFloatPosition, getIntPosition, getLongPosition, localize, localize, localize, localize, move, move, move, move, move, numDimensions, setPosition, setPosition, setPosition, setPosition, setPosition
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setPositionAndGet, setPositionAndGet, setPositionAndGet
localize, positionAsLongArray, positionAsPoint
localize, positionAsDoubleArray, positionAsRealPoint
public ScaledRandomAccess(RandomAccess<T> source, ToDoubleFunction<Localizable> scalingFunction)
public T get()
Sampler
Sampler
points at.public ScaleAsFunctionOfPosition.ScaledRandomAccess<T> copy()
copy
in interface Sampler<T extends Type<T> & MulFloatingPoint>
copy
in class AbstractConvertedRandomAccess<T extends Type<T> & MulFloatingPoint,T extends Type<T> & MulFloatingPoint>
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.