Class IterableIntervalProjector2D<A,B>
java.lang.Object
net.imglib2.AbstractEuclideanSpace
net.imglib2.AbstractLocalizable
net.imglib2.Point
net.imglib2.display.projector.AbstractProjector2D
net.imglib2.display.projector.IterableIntervalProjector2D<A,B>
- Type Parameters:
A-B-
- All Implemented Interfaces:
Projector, EuclideanSpace, Localizable, Positionable, RealLocalizable
- Direct Known Subclasses:
Volatile2DRandomAccessibleProjector
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.
IterableInterval.
Depending on input and output an optimal strategy is chosen in the map() method.
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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final int(package private) final intprotected final RandomAccessible<A> protected final IterableInterval<B> Fields inherited from class AbstractProjector2D
max, minFields inherited from class AbstractLocalizable
positionFields inherited from class AbstractEuclideanSpace
n -
Constructor Summary
ConstructorsConstructorDescriptionIterableIntervalProjector2D(int dimX, int dimY, RandomAccessible<A> source, IterableInterval<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 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
-
converter
-
source
-
target
-
numDimensions
final int numDimensions -
dimX
private final int dimX -
dimY
private final int dimY
-
-
Constructor Details
-
IterableIntervalProjector2D
public IterableIntervalProjector2D(int dimX, int dimY, RandomAccessible<A> source, IterableInterval<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.
-