A
- source typeB
- target typepublic class SamplingProjector2D<A,B> extends AbstractProjector2D
AbstractProjector2D
)
two dimensions are sampled such that a plain gets cut out of a higher
dimensional data volume. The third dimension is projected (in a mathematical
sense) onto this plain. Converter
. It is not necessary
to process the complete interval of the third dimension, instead
ProjectedSampler
can be used to control the sampling. Modifier and Type | Field and Description |
---|---|
protected Converter<ProjectedSampler<A>,B> |
converter |
protected int |
dimX |
protected int |
dimY |
protected RandomAccessible<A> |
source |
protected IterableInterval<B> |
target |
max, min
position
n
Constructor and Description |
---|
SamplingProjector2D(int dimX,
int dimY,
RandomAccessible<A> source,
IterableInterval<B> target,
Converter<ProjectedSampler<A>,B> converter,
int projectedDimension,
long[] projectedPositions) |
SamplingProjector2D(int dimX,
int dimY,
RandomAccessibleInterval<A> source,
IterableInterval<B> target,
Converter<ProjectedSampler<A>,B> converter,
int projectedDimension) |
Modifier and Type | Method and Description |
---|---|
void |
map() |
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 Converter<ProjectedSampler<A>,B> converter
protected final IterableInterval<B> target
protected final RandomAccessible<A> source
protected final int dimX
protected final int dimY
public SamplingProjector2D(int dimX, int dimY, RandomAccessible<A> source, IterableInterval<B> target, Converter<ProjectedSampler<A>,B> converter, int projectedDimension, long[] projectedPositions)
dimX
- the x dimension of the created plaindimY
- the y dimension of the created plainsource
- target
- converter
- a special converter that uses ProjectedSampler
to
process values from the third dimension (multiple values
selected by the ProjectedDimSampler get converted to a new
value in the resulting 2D dataset e.g. color channel to int
color)projectedDimension
- selection of the third dimensionprojectedPositions
- public SamplingProjector2D(int dimX, int dimY, RandomAccessibleInterval<A> source, IterableInterval<B> target, Converter<ProjectedSampler<A>,B> converter, int projectedDimension)
Copyright © 2015–2022 ImgLib2. All rights reserved.