Class SamplingProjector2D<A,B>
java.lang.Object
net.imglib2.AbstractEuclideanSpace
net.imglib2.AbstractLocalizable
net.imglib2.Point
net.imglib2.display.projector.AbstractProjector2D
net.imglib2.display.projector.sampler.SamplingProjector2D<A,B>
- Type Parameters:
A- source typeB- target type
- All Implemented Interfaces:
Projector, EuclideanSpace, Localizable, Positionable, RealLocalizable
A general 2D Projector that uses three dimensions as input to create the 2D
result. Starting from the reference point (see
The mapping function is specified by a
A basic example is cutting out the x,y plain and projecting the color dimension onto the plain. Alternatively mapping up to three measures (from a measurement dimension) to the three color channels would also be possible...
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. The mapping function is specified by a
Converter. It is not necessary
to process the complete interval of the third dimension, instead
ProjectedSampler can be used to control the sampling. A basic example is cutting out the x,y plain and projecting the color dimension onto the plain. Alternatively mapping up to three measures (from a measurement dimension) to the three color channels would also be possible...
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Converter<ProjectedSampler<A>, B> protected final intprotected final intprivate final intprivate longprivate longprivate final ProjectedSampler<A> protected final RandomAccessible<A> protected final IterableInterval<B> private static final intprivate static final intFields inherited from class AbstractProjector2D
max, minFields inherited from class AbstractLocalizable
positionFields inherited from class AbstractEuclideanSpace
n -
Constructor Summary
ConstructorsConstructorDescriptionSamplingProjector2D(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) -
Method Summary
Methods inherited from class Point
bck, equals, fwd, hashCode, move, move, move, move, move, setPosition, setPosition, setPosition, setPosition, setPosition, toString, wrapMethods inherited from class AbstractLocalizable
getDoublePosition, getFloatPosition, getIntPosition, getLongPosition, localize, localize, localize, localizeMethods inherited from class AbstractEuclideanSpace
numDimensionsMethods inherited from interface EuclideanSpace
numDimensionsMethods inherited from interface Localizable
localize, localize, positionAsLongArray, positionAsPointMethods inherited from interface RealLocalizable
positionAsDoubleArray, positionAsRealPoint
-
Field Details
-
X
private static final int X- See Also:
-
Y
private static final int Y- See Also:
-
converter
-
target
-
source
-
dimX
protected final int dimX -
dimY
protected final int dimY -
projectedDimension
private final int projectedDimension -
projectionSampler
-
projectedDimMinPos
private long projectedDimMinPos -
projectedDimMaxPos
private long projectedDimMaxPos
-
-
Constructor Details
-
SamplingProjector2D
public SamplingProjector2D(int dimX, int dimY, RandomAccessible<A> source, IterableInterval<B> target, Converter<ProjectedSampler<A>, B> converter, int projectedDimension, long[] projectedPositions) - Parameters:
dimX- the x dimension of the created plaindimY- the y dimension of the created plainsource-target-converter- a special converter that usesProjectedSamplerto 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-
-
SamplingProjector2D
public SamplingProjector2D(int dimX, int dimY, RandomAccessibleInterval<A> source, IterableInterval<B> target, Converter<ProjectedSampler<A>, B> converter, int projectedDimension)
-
-
Method Details
-
map
public void map()
-