|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcz.cuni.jagrlib.RankHistogram
public class RankHistogram
Simple rank implementation using histogram array.
| Field Summary | |
|---|---|
protected int |
card
Histogram cardinality. |
protected int[] |
h
Actual histogram. |
protected int |
hMax
Actual index of maximum value. |
protected int |
hMin
Actual index of minimum value. |
protected int |
maxV
Actual maximal value. |
| Constructor Summary | |
|---|---|
RankHistogram()
|
|
| Method Summary | |
|---|---|
void |
add(int value)
Adds new pixel value. |
void |
init(int maxValue)
Initializes the rank. |
int |
result(RankType type)
Computes the given rank-value (min, median, max, ..). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int maxV
protected int[] h
protected int hMin
protected int hMax
protected int card
| Constructor Detail |
|---|
public RankHistogram()
| Method Detail |
|---|
public void init(int maxValue)
init in interface Rankpublic void add(int value)
add in interface Rankpublic int result(RankType type)
init(int) call.
result in interface Rank
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||