class ContouringColorPair extends java.lang.Object implements ComparatorInterface
MedianCutContourRemoval| Modifier and Type | Field and Description |
|---|---|
private int |
index1 |
private int |
index2 |
private double |
scof1 |
private double |
scof2 |
| Constructor and Description |
|---|
ContouringColorPair()
Creates a new object of this class.
|
ContouringColorPair(int i1,
int i2,
double sf1,
double sf2)
Creates a new object of this class.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(java.lang.Object o1,
java.lang.Object o2)
Compares the two argument objects and returns their relation.
|
int |
getColorIndex(boolean smaller) |
private int index1
private int index2
private double scof1
private double scof2
public ContouringColorPair()
public ContouringColorPair(int i1,
int i2,
double sf1,
double sf2)
i1 - palette index of first colori2 - palette index of second colorsf1 - self co-occurrence frequency value of first colorsf2 - self co-occurrence frequency value of second colorpublic int compare(java.lang.Object o1,
java.lang.Object o2)
ComparatorInterfaceo1 is smaller than o2,o1 is equal to o2 ando1 is greater than o2.compare in interface ComparatorInterfacepublic int getColorIndex(boolean smaller)