cz.cuni.jagrlib
Interface Rank

All Known Implementing Classes:
RankHistogram

public interface Rank

Data structure for Rank-operations (min, median, max, ..).

Since:
0.25
See Also:
Rank.java

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, ..).
 

Method Detail

init

void init(int maxValue)
Initializes the rank.


add

void add(int value)
Adds new pixel value.


result

int result(RankType type)
Computes the given rank-value (min, median, max, ..). Can be destructive - should be called once after each init(int) call.