public class CompositeXYProjector<A> extends AbstractProjector2D
Converter
. The results of the conversions are summed into
the final value. Positions along the axis can be individually toggled for
inclusion in the computed composite value using the setComposite(int, boolean)
methods.
See XYProjector for the code upon which this class was based.Modifier and Type | Field and Description |
---|---|
protected Converter<A,ARGBType>[] |
currentConverters |
protected long[] |
currentPositions |
max, min
position
n
Constructor and Description |
---|
CompositeXYProjector(RandomAccessibleInterval<A> source,
IterableInterval<ARGBType> target,
ArrayList<Converter<A,ARGBType>> converters,
int dimIndex) |
Modifier and Type | Method and Description |
---|---|
boolean |
isComposite()
Gets whether composite mode is enabled for all positions.
|
boolean |
isComposite(int index)
Gets whether the given position index is included in composite values.
|
void |
map() |
protected void |
mapSingle(RandomAccess<A> sourceRandomAccess,
Converter<A,ARGBType> conv) |
void |
setComposite(boolean on)
Toggles composite mode globally.
|
void |
setComposite(int index,
boolean on)
Toggles the given position index's inclusion in composite values.
|
protected int |
updateCurrentArrays()
Walk through composite[] and store the currently active converters and
positions (in dimension
dimIndex ) to currentConverters
and currentPositions . |
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
public CompositeXYProjector(RandomAccessibleInterval<A> source, IterableInterval<ARGBType> target, ArrayList<Converter<A,ARGBType>> converters, int dimIndex)
public void setComposite(int index, boolean on)
public boolean isComposite(int index)
public void setComposite(boolean on)
public boolean isComposite()
public void map()
protected int updateCurrentArrays()
dimIndex
) to currentConverters
and currentPositions
.
A special cases is single-position mode. The projector is in
single-position mode iff all dimensional positions along the composited
axis are excluded. In this case, the current position along that axis is
used instead. The converter corresponding to the current position is
used.protected void mapSingle(RandomAccess<A> sourceRandomAccess, Converter<A,ARGBType> conv)
Copyright © 2015–2022 ImgLib2. All rights reserved.