Package net.imglib2.display.projector
Class RandomAccessibleProjector2D<A,B>
java.lang.Object
net.imglib2.AbstractEuclideanSpace
net.imglib2.AbstractLocalizable
net.imglib2.Point
net.imglib2.display.projector.AbstractProjector2D
net.imglib2.display.projector.RandomAccessibleProjector2D<A,B>
- Type Parameters:
A-B-
- All Implemented Interfaces:
Projector,EuclideanSpace,Localizable,Positionable,RealLocalizable
A general 2D Projector that uses two dimensions as input to create the 2D
result. The output of the projection is written into a
The mapping function can be specified with a
A basic example is cutting out a time frame from a (greyscale) video Note: This
RandomAccessibleInterval.
Starting from the reference point two dimensions are sampled such that a
plain gets cut out of a higher dimensional data volume. The mapping function can be specified with a
Converter. A basic example is cutting out a time frame from a (greyscale) video Note: This
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.- Author:
- Michael Zinsmaier, Martin Horn, Christian Dietz
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final RandomAccessible<A> protected final RandomAccessibleInterval<B> protected final intprotected final intFields inherited from class net.imglib2.display.projector.AbstractProjector2D
max, minFields inherited from class net.imglib2.AbstractLocalizable
positionFields inherited from class net.imglib2.AbstractEuclideanSpace
n -
Constructor Summary
ConstructorsConstructorDescriptionRandomAccessibleProjector2D(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. -
Method Summary
Methods inherited from class net.imglib2.Point
bck, equals, fwd, move, move, move, move, move, setPosition, setPosition, setPosition, setPosition, setPosition, toString, wrapMethods inherited from class net.imglib2.AbstractLocalizable
getDoublePosition, getFloatPosition, getIntPosition, getLongPosition, localize, localize, localize, localizeMethods inherited from class net.imglib2.AbstractEuclideanSpace
numDimensionsMethods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.imglib2.EuclideanSpace
numDimensions
-
Field Details
-
converter
-
target
-
source
-
X
protected final int X- See Also:
-
Y
protected final int Y- See Also:
-
-
Constructor Details
-
RandomAccessibleProjector2D
public 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.- Parameters:
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, ...
-
-
Method Details
-
map
public void map()projects data from the source to the target and applies the former specifiedConvertere.g. for normalization.
-