A
- B
- public class RandomAccessibleProjector2D<A,B> extends AbstractProjector2D
RandomAccessibleInterval
.
Starting from the reference point two dimensions are sampled such that a
plain gets cut out of a higher dimensional data volume. Converter
. Projector
should only be used if one can be sure, that the
target RandomAccessibleInterval
is not an IterableInterval
of
FlatIterationOrder
. If, please use
IterableIntervalProjector2D
for performance reasons.Modifier and Type | Field and Description |
---|---|
protected Converter<? super A,B> |
converter |
protected RandomAccessible<A> |
source |
protected RandomAccessibleInterval<B> |
target |
protected int |
X |
protected int |
Y |
max, min
position
n
Constructor and Description |
---|
RandomAccessibleProjector2D(int dimX,
int dimY,
RandomAccessible<A> source,
RandomAccessibleInterval<B> target,
Converter<? super A,B> converter)
creates a new 2D projector that samples a plain in the dimensions dimX,
dimY.
|
Modifier and Type | Method and Description |
---|---|
void |
map()
projects data from the source to the target and applies the former
specified
Converter e.g. |
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
numDimensions
localize, positionAsLongArray, positionAsPoint
localize, positionAsDoubleArray, positionAsRealPoint
protected final RandomAccessibleInterval<B> target
protected final RandomAccessible<A> source
protected final int X
protected final int Y
public RandomAccessibleProjector2D(int dimX, int dimY, RandomAccessible<A> source, RandomAccessibleInterval<B> target, Converter<? super A,B> converter)
dimX
- dimY
- source
- target
- converter
- a converter that is applied to each point in the plain. This
can e.g. be used for normalization, conversions, ...public void map()
Converter
e.g. for normalization.Copyright © 2015–2022 ImgLib2. All rights reserved.