public class PixelPosition extends ChannelPosition
| Modifier and Type | Field and Description |
|---|---|
static char |
X_ID |
static char |
Y_ID |
C_ID_0, C_ID_1T_ID, Z_ID| Constructor and Description |
|---|
PixelPosition() |
PixelPosition(int t,
int z,
int c,
int x,
int y) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(ImagePosition o)
Compare to another ImagePosition with following priority T -> Z -> C
|
void |
copyFrom(PixelPosition pp) |
int |
get(char ident) |
char |
getFirstEmptyPos()
Return first undefined position (T -> Z -> C -> Y -> X)
|
char |
getLastEmptyPos()
Return last undefined position (X -> Y -> C -> Z -> T)
|
int |
getX() |
int |
getY() |
boolean |
isSamePos(PixelPosition pp,
char posIdent) |
boolean |
isUndefined() |
boolean |
isValidIdent(char ident) |
static boolean |
isValidIdentStatic(char ident) |
boolean |
isXUndefined() |
boolean |
isYUndefined() |
void |
set(int t,
int z,
int c,
int x,
int y) |
void |
setX(int x) |
void |
setY(int y) |
void |
switchLeft() |
void |
switchRight() |
alternateCompareTo, copyFrom, getAlternateFirstEmptyPos, getAlternateLastEmptyPos, getC, isCUndefined, isSamePos, set, setCcopyFrom, getT, getZ, isSamePos, isTUndefined, isZUndefined, set, setT, setZpublic static final char X_ID
public static final char Y_ID
public PixelPosition(int t, int z, int c, int x, int y)
t - z - c - public PixelPosition()
public void copyFrom(PixelPosition pp)
public void switchLeft()
switchLeft in class ChannelPositionpublic void switchRight()
switchRight in class ChannelPositionpublic int getX()
public void setX(int x)
x - the x to setpublic int getY()
public void setY(int y)
y - the y to setpublic void set(int t, int z, int c, int x, int y)
public int get(char ident)
get in class ChannelPositionpublic static boolean isValidIdentStatic(char ident)
public boolean isValidIdent(char ident)
isValidIdent in class ChannelPositionpublic boolean isXUndefined()
public boolean isYUndefined()
public boolean isUndefined()
isUndefined in class ChannelPositionpublic char getFirstEmptyPos()
getFirstEmptyPos in class ChannelPositionpublic char getLastEmptyPos()
getLastEmptyPos in class ChannelPositionpublic boolean isSamePos(PixelPosition pp, char posIdent)
public int compareTo(ImagePosition o)
ChannelPositioncompareTo in interface java.lang.Comparable<ImagePosition>compareTo in class ChannelPosition