T
- - the label typepublic class LocalizableLabelingCursor<T extends Comparable<T>> extends Object implements LocalizableCursor<FakeType>
Modifier and Type | Field and Description |
---|---|
protected boolean |
advanced |
protected int |
arrayIndex |
protected LocalizableCursor<LabelingType<T>> |
c |
protected int[] |
currentPosition |
protected FakeType |
fakeType |
protected boolean |
has_next |
protected T |
label |
protected int |
storageIndex |
Constructor and Description |
---|
LocalizableLabelingCursor(LocalizableCursor<LabelingType<T>> c,
T label) |
LocalizableLabelingCursor(RegionOfInterestCursor<LabelingType<T>> c,
int[] offset,
T label) |
Modifier and Type | Method and Description |
---|---|
protected void |
advance() |
void |
close() |
int[] |
createPositionArray() |
void |
fwd() |
void |
fwd(long steps) |
int |
getArrayIndex() |
protected void |
getCursorPosition(int[] position) |
int[] |
getDimensions() |
void |
getDimensions(int[] position) |
Image<FakeType> |
getImage() |
int |
getNumDimensions() |
int[] |
getPosition()
Return a copy of the current position.
|
int |
getPosition(int dim)
Return the current position in a given dimension.
|
void |
getPosition(int[] position)
Write the current position into the passed array.
|
String |
getPositionAsString()
Create a human-readable
String representation of the current
position. |
Container<FakeType> |
getStorageContainer() |
int |
getStorageIndex() |
FakeType |
getType() |
boolean |
hasNext() |
boolean |
isActive() |
protected boolean |
isLabeled() |
Iterator<FakeType> |
iterator() |
FakeType |
next() |
void |
remove() |
void |
reset() |
void |
setDebug(boolean debug) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
forEach, spliterator
protected final LocalizableCursor<LabelingType<T extends Comparable<T>>> c
protected final FakeType fakeType
protected int[] currentPosition
protected int arrayIndex
protected int storageIndex
protected T extends Comparable<T> label
protected boolean advanced
protected boolean has_next
public LocalizableLabelingCursor(LocalizableCursor<LabelingType<T>> c, T label)
public LocalizableLabelingCursor(RegionOfInterestCursor<LabelingType<T>> c, int[] offset, T label)
protected boolean isLabeled()
protected void getCursorPosition(int[] position)
protected void advance()
public int getArrayIndex()
getArrayIndex
in interface Cursor<FakeType>
public int getStorageIndex()
getStorageIndex
in interface Cursor<FakeType>
public Container<FakeType> getStorageContainer()
getStorageContainer
in interface Cursor<FakeType>
public int[] createPositionArray()
createPositionArray
in interface Cursor<FakeType>
public int getNumDimensions()
getNumDimensions
in interface Dimensionality
public int[] getDimensions()
getDimensions
in interface Dimensionality
public void getDimensions(int[] position)
getDimensions
in interface Dimensionality
public void getPosition(int[] position)
Localizable
getPosition
in interface Localizable
public int[] getPosition()
Localizable
getPosition
in interface Localizable
public int getPosition(int dim)
Localizable
getPosition
in interface Localizable
public String getPositionAsString()
Localizable
String
representation of the current
position.getPositionAsString
in interface Localizable
Copyright © 2015–2021 Fiji. All rights reserved.