|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cbr.ccv.CCV
This class represents a color coherence vector. Such a vector consists of a number of pixel counts for 64 colors. Pixels are classified into coherent and incoherent pixels and pixel counts are maintained separately for both classes.
Field Summary | |
protected float[] |
coherent_
The per color percentage of coherent pixels in the represented image. |
protected float[] |
incoherent_
The per color percentage of incoherent pixels in the represented image. |
Constructor Summary | |
CCV()
Creates an empty instance. |
|
CCV(int total,
int[] coherent,
int[] incoherent)
Creates an instance from the given absolute pixel counts. |
Method Summary | |
float |
distance(FeatureVector v)
This method computes the L1-Distance between this CCV and the given one. |
float[] |
getCoherentPixels()
Returns the per color percentage of coherent pixels in this CCV. |
float[] |
getIncoherentPixels()
Returns the per color percentage of incoherent pixels in this CCV. |
String |
toString()
Returns an informative string that lists the components of this CCV. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected float[] coherent_
protected float[] incoherent_
Constructor Detail |
public CCV(int total, int[] coherent, int[] incoherent)
public CCV()
Method Detail |
public float[] getCoherentPixels()
public float[] getIncoherentPixels()
public float distance(FeatureVector v)
distance
in interface FeatureVector
v
- The feature vector to compare with.
public String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |