|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectBinaryAccumulator
BinaryAccumulator Class
This class represents a two-dimensional array of integer.
Constructor Summary | |
BinaryAccumulator(int N)
Creates a N wide binary accumulator |
Method Summary | |
RectInt |
findBestRelatedComponent(Accumulator acc,
double threshold)
Finds the best related component. |
int |
get(int x,
int y)
Returns the value of the square at (i,j) |
void |
init()
Sets every squares to zero |
void |
labelling(int x,
int y,
int label)
Recursive method that finds a related component including a square of the binary accumulator. |
void |
makeBinary(Accumulator Acc,
double threshold)
Updates the binary accumulator. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BinaryAccumulator(int N)
Method Detail |
public void init()
public int get(int x, int y)
public void makeBinary(Accumulator Acc, double threshold)
Acc
- an accumulator with the same dimension than the binary accumulatorthreshold
- the thresholdpublic RectInt findBestRelatedComponent(Accumulator acc, double threshold)
public void labelling(int x, int y, int label)
x
- the X-coordinate of the squarey
- the Y-coordinate of the squarelabel
- the value set in the squares of the related component
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |