public class TwinCursor<T extends Type<T>> extends Object implements Cursor<T>, PairIterator<T>
| Modifier and Type | Field and Description |
|---|---|
protected RandomAccess<T> |
channel1 |
protected RandomAccess<T> |
channel2 |
protected boolean |
gotNext |
protected PredicateCursor<BitType> |
mask |
protected long[] |
position |
| Constructor and Description |
|---|
TwinCursor(RandomAccess<T> channel1,
RandomAccess<T> channel2,
Cursor<BitType> mask) |
| Modifier and Type | Method and Description |
|---|---|
Sampler<T> |
copy() |
Cursor<T> |
copyCursor() |
void |
fwd()
Go to the next pair.
|
T |
get() |
double |
getDoublePosition(int arg0) |
T |
getFirst()
Return the first value of the pair.
|
float |
getFloatPosition(int arg0) |
int |
getIntPosition(int arg0) |
long |
getLongPosition(int arg0) |
void |
getNext() |
T |
getSecond()
Return the second value of the pair.
|
boolean |
hasNext()
Returns whether there are pairs left.
|
void |
jumpFwd(long arg0) |
void |
localize(double[] arg0) |
void |
localize(float[] arg0) |
void |
localize(int[] arg0) |
void |
localize(long[] arg0) |
T |
next() |
int |
numDimensions() |
void |
remove() |
void |
reset()
Resets the iterator to just before the first element.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaininglocalize, positionAsLongArray, positionAsPointlocalize, positionAsDoubleArray, positionAsRealPointprotected final PredicateCursor<BitType> mask
protected final RandomAccess<T extends Type<T>> channel1
protected final RandomAccess<T extends Type<T>> channel2
protected final long[] position
protected boolean gotNext
public TwinCursor(RandomAccess<T> channel1, RandomAccess<T> channel2, Cursor<BitType> mask)
public final boolean hasNext()
PairIteratorpublic final void getNext()
public final T getFirst()
PairIteratorgetFirst in interface PairIterator<T extends Type<T>>public final T getSecond()
PairIteratorgetSecond in interface PairIterator<T extends Type<T>>public void reset()
PairIteratorreset in interface PairIterator<T extends Type<T>>public void fwd()
PairIteratorfwd in interface PairIterator<T extends Type<T>>public void jumpFwd(long arg0)
public double getDoublePosition(int arg0)
getDoublePosition in interface LocalizablegetDoublePosition in interface RealLocalizablepublic float getFloatPosition(int arg0)
getFloatPosition in interface LocalizablegetFloatPosition in interface RealLocalizablepublic void localize(float[] arg0)
localize in interface RealLocalizablepublic void localize(double[] arg0)
localize in interface RealLocalizablepublic int numDimensions()
numDimensions in interface EuclideanSpacepublic int getIntPosition(int arg0)
getIntPosition in interface Localizablepublic long getLongPosition(int arg0)
getLongPosition in interface Localizablepublic void localize(int[] arg0)
localize in interface Localizablepublic void localize(long[] arg0)
localize in interface Localizablepublic Cursor<T> copyCursor()
copyCursor in interface Cursor<T extends Type<T>>copyCursor in interface RealCursor<T extends Type<T>>Copyright © 2015–2021 Fiji. All rights reserved.