|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgeometry.Index2D
public class Index2D
A pixel's index in the 2D array.
The pixels might be no unit pixels. As a result, coordinates and index in the original image might differ from each other. Thus, both coordinates (for example used for distance calculations) and index (used for example for distance map lookups) are needed and stored with each skeleton node
| Field Summary | |
|---|---|
private int |
xindex
the index in x dimension |
private int |
yindex
the index in y dimension |
| Constructor Summary | |
|---|---|
Index2D(int xindex,
int yindex)
Setting x and y index. |
|
| Method Summary | |
|---|---|
int |
getX()
get x index |
int |
getY()
get y index |
int |
getZ()
get z index |
void |
setX(int x)
set x index |
void |
setY(int y)
set y index |
void |
setZ(int z)
set z index |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private int xindex
private int yindex
| Constructor Detail |
|---|
public Index2D(int xindex,
int yindex)
xindex - the index in width dimensionyindex - the index in height dimension| Method Detail |
|---|
public int getX()
Index
getX in interface Indexpublic void setX(int x)
Index
setX in interface Indexpublic int getY()
Index
getY in interface Indexpublic void setY(int y)
Index
setY in interface Indexpublic int getZ()
Index
getZ in interface Indexpublic void setZ(int z)
Index
setZ in interface Index
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||