T - public abstract class AbstractSortedGrayLevelIterator<T extends IntegerType<T>> extends Object implements Iterable, LocalizableCursor<T>, Localizable
| Modifier and Type | Field and Description | 
|---|---|
protected int | 
curIdx  | 
protected int[] | 
dimensions  | 
protected Image<T> | 
image  | 
protected int | 
maxIdx  | 
protected int | 
n  | 
protected int[] | 
position  | 
protected int[] | 
sortedLinIdx  | 
| Constructor and Description | 
|---|
AbstractSortedGrayLevelIterator(Image<T> image)  | 
| Modifier and Type | Method and Description | 
|---|---|
protected abstract void | 
createInternalCursor()  | 
int[] | 
createPositionArray()  | 
abstract void | 
fwd()  | 
int | 
getArrayIndex()  | 
int[] | 
getDimensions()  | 
void | 
getDimensions(int[] position)  | 
Image<T> | 
getImage()  | 
protected abstract int | 
getIntegerValueAtLinearIndex(int p)  | 
protected int[] | 
getLinearIndexArraySortedByGrayLevel()  | 
int | 
getNumDimensions()  | 
int[] | 
getPosition()
Return a copy of the current position. 
 | 
String | 
getPositionAsString()
Create a human-readable  
String representation of the current
 position. | 
Container<T> | 
getStorageContainer()  | 
abstract int | 
getStorageIndex()  | 
boolean | 
hasNext()  | 
static void | 
indexToPosition(int index,
               int[] dimensions,
               int[] position)  | 
boolean | 
isActive()  | 
Iterator<T> | 
iterator()  | 
protected <C extends Comparable<C> & Type<C>> | 
max(Image<C> image)  | 
T | 
next()  | 
static int | 
positionToIndex(int[] position,
               int[] dimensions)  | 
void | 
remove()  | 
void | 
reset()  | 
void | 
setDebug(boolean debug)  | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingforEach, spliteratorgetPosition, getPositionprotected final Image<T extends IntegerType<T>> image
protected final int[] sortedLinIdx
protected int n
protected int maxIdx
protected int curIdx
protected final int[] position
protected final int[] dimensions
public boolean hasNext()
hasNext in interface Iterator<T extends IntegerType<T>>public void reset()
reset in interface Cursor<T extends IntegerType<T>>public int[] getPosition()
LocalizablegetPosition in interface Localizablepublic String getPositionAsString()
LocalizableString representation of the current
 position.getPositionAsString in interface Localizablepublic int[] createPositionArray()
createPositionArray in interface Cursor<T extends IntegerType<T>>public int getArrayIndex()
getArrayIndex in interface Cursor<T extends IntegerType<T>>public Image<T> getImage()
getImage in interface Cursor<T extends IntegerType<T>>public Container<T> getStorageContainer()
getStorageContainer in interface Cursor<T extends IntegerType<T>>public abstract int getStorageIndex()
getStorageIndex in interface Cursor<T extends IntegerType<T>>public boolean isActive()
isActive in interface Cursor<T extends IntegerType<T>>public void setDebug(boolean debug)
setDebug in interface Cursor<T extends IntegerType<T>>public void remove()
remove in interface Iterator<T extends IntegerType<T>>public int[] getDimensions()
getDimensions in interface Dimensionalitypublic void getDimensions(int[] position)
getDimensions in interface Dimensionalitypublic int getNumDimensions()
getNumDimensions in interface Dimensionalityprotected <C extends Comparable<C> & Type<C>> C max(Image<C> image)
protected abstract void createInternalCursor()
protected abstract int getIntegerValueAtLinearIndex(int p)
protected int[] getLinearIndexArraySortedByGrayLevel()
public static final int positionToIndex(int[] position,
                                        int[] dimensions)
public static final void indexToPosition(int index,
                                         int[] dimensions,
                                         int[] position)
Copyright © 2015–2021 Fiji. All rights reserved.