public final class BiConvertedRandomAccess<A,B,C extends Type<C>> extends AbstractConvertedRandomAccess<A,C>
| Modifier and Type | Field and Description |
|---|---|
protected C |
converted |
protected BiConverter<? super A,? super B,? super C> |
converter |
protected Supplier<BiConverter<? super A,? super B,? super C>> |
converterSupplier |
protected RandomAccess<B> |
sourceB |
source| Constructor and Description |
|---|
BiConvertedRandomAccess(RandomAccess<A> sourceA,
RandomAccess<B> sourceB,
BiConverter<? super A,? super B,? super C> converter,
C c) |
BiConvertedRandomAccess(RandomAccess<A> sourceA,
RandomAccess<B> sourceB,
Supplier<BiConverter<? super A,? super B,? super C>> converterSupplier,
C c) |
| Modifier and Type | Method and Description |
|---|---|
void |
bck(int d)
Move by -1 in one dimension.
|
BiConvertedRandomAccess<A,B,C> |
copy() |
void |
fwd(int d)
Move by 1 in one dimension.
|
C |
get()
Access the actual T instance providing access to a pixel,
sub-pixel or integral region value the
Sampler points at. |
void |
move(int[] distance)
Move the element relative to its current location using an int[] as
distance vector.
|
void |
move(int distance,
int d)
Move the element in one dimension for some distance.
|
void |
move(Localizable localizable)
Move the element relative to its current location using an
Localizable as distance vector. |
void |
move(long[] distance)
Move the element relative to its current location using a long[] as
distance vector.
|
void |
move(long distance,
int d)
Move the element in one dimension for some distance.
|
void |
setPosition(int[] position)
Set the position of the element.
|
void |
setPosition(int position,
int d)
Set the position of the element for one dimension.
|
void |
setPosition(Localizable localizable)
Place the element at the same location as a given
Localizable |
void |
setPosition(long[] position)
Set the position of the element.
|
void |
setPosition(long position,
int d)
Set the position of the element for one dimension.
|
copyRandomAccess, getDoublePosition, getFloatPosition, getIntPosition, getLongPosition, localize, localize, localize, localize, numDimensionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetPositionAndGet, setPositionAndGet, setPositionAndGetlocalize, positionAsLongArray, positionAsPointlocalize, positionAsDoubleArray, positionAsRealPointprotected final Supplier<BiConverter<? super A,? super B,? super C extends Type<C>>> converterSupplier
protected final RandomAccess<B> sourceB
public BiConvertedRandomAccess(RandomAccess<A> sourceA, RandomAccess<B> sourceB, Supplier<BiConverter<? super A,? super B,? super C>> converterSupplier, C c)
public BiConvertedRandomAccess(RandomAccess<A> sourceA, RandomAccess<B> sourceB, BiConverter<? super A,? super B,? super C> converter, C c)
public void fwd(int d)
Positionablefwd in interface Positionablefwd in class AbstractConvertedRandomAccess<A,C extends Type<C>>d - dimensionpublic void bck(int d)
Positionablebck in interface Positionablebck in class AbstractConvertedRandomAccess<A,C extends Type<C>>d - dimensionpublic void move(int distance,
int d)
Positionablemove in interface Positionablemove in class AbstractConvertedRandomAccess<A,C extends Type<C>>distance - relative offset in dimension dd - dimensionpublic void move(long distance,
int d)
Positionablemove in interface Positionablemove in class AbstractConvertedRandomAccess<A,C extends Type<C>>distance - relative offset in dimension dd - dimensionpublic void move(Localizable localizable)
PositionableLocalizable as distance vector.move in interface Positionablemove in class AbstractConvertedRandomAccess<A,C extends Type<C>>localizable - relative offset, EuclideanSpace.numDimensions() must be
≥ EuclideanSpace.numDimensions()public void move(int[] distance)
Positionablemove in interface Positionablemove in class AbstractConvertedRandomAccess<A,C extends Type<C>>distance - relative offset, length must be ≥ EuclideanSpace.numDimensions()public void move(long[] distance)
Positionablemove in interface Positionablemove in class AbstractConvertedRandomAccess<A,C extends Type<C>>distance - relative offset, length must be ≥ EuclideanSpace.numDimensions()public void setPosition(Localizable localizable)
PositionableLocalizablesetPosition in interface PositionablesetPosition in class AbstractConvertedRandomAccess<A,C extends Type<C>>localizable - absolute position, EuclideanSpace.numDimensions() must be
≥ EuclideanSpace.numDimensions()public void setPosition(int[] position)
PositionablesetPosition in interface PositionablesetPosition in class AbstractConvertedRandomAccess<A,C extends Type<C>>position - absolute position, length must be ≥
EuclideanSpace.numDimensions()public void setPosition(long[] position)
PositionablesetPosition in interface PositionablesetPosition in class AbstractConvertedRandomAccess<A,C extends Type<C>>position - absolute position, length must be ≥
EuclideanSpace.numDimensions()public void setPosition(int position,
int d)
PositionablesetPosition in interface PositionablesetPosition in class AbstractConvertedRandomAccess<A,C extends Type<C>>position - absolute position in dimension dd - dimensionpublic void setPosition(long position,
int d)
PositionablesetPosition in interface PositionablesetPosition in class AbstractConvertedRandomAccess<A,C extends Type<C>>position - absolute position in dimension dd - dimensionpublic C get()
SamplerSampler points at.public BiConvertedRandomAccess<A,B,C> copy()
copy in interface Sampler<C extends Type<C>>copy in class AbstractConvertedRandomAccess<A,C extends Type<C>>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.