|
JIU 0.14.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CoOccurrenceMatrix
An interface for co-occurrence matrices.
An implementing class stores int
counter values for pairs of pixels.
These counters represent the number of times two pixels are direct
neighbors in an image.
Method Summary | |
---|---|
void |
clear()
Sets all counters to zero. |
int |
getDimension()
Returns the dimension of this matrix. |
int |
getValue(int i,
int j)
Returns the matrix value at a given position. |
void |
incValue(int i,
int j)
Increases the counter for pair (i, j) by one. |
void |
setValue(int i,
int j,
int newValue)
Sets the counter for pair (i, j) to a new value. |
Method Detail |
---|
void clear()
int getDimension()
int getValue(int i, int j)
i
- column index, from 0 to getDimension()
- 1j
- row index, from 0 to getDimension()
- 1
IllegalArgumentException
- for invalid index pairs (i, j)void incValue(int i, int j)
setValue(i, j, getValue(i, j) + 1);
.
i
- column index, from 0 to getDimension()
- 1j
- row index, from 0 to getDimension()
- 1
IllegalArgumentException
- for invalid index pairs (i, j)void setValue(int i, int j, int newValue)
i
- column index, from 0 to getDimension()
- 1j
- row index, from 0 to getDimension()
- 1
IllegalArgumentException
- for invalid index pairs (i, j)
|
JIU 0.14.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |