|
JIGL v1.6 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--jigl.image.ColorHistogram
A Color Histogram is a 3-Dimensional array that contains the count for a ColorImage.
| Field Summary | |
protected int |
m_bbits
The number of precision bits used for blue color |
private int |
m_bsize
The range for blue color |
protected int[][][] |
m_data
Store the data of histogram |
protected int |
m_gbits
The number of precision bits used for green color |
private int |
m_gsize
The range for green color |
protected int |
m_rbits
The number of precision bits used for red color |
private int |
m_rsize
The range for red color |
| Constructor Summary | |
ColorHistogram(ColorImage image)
Default constructor. |
|
ColorHistogram(ColorImage image,
int rbits,
int gbits,
int bbits)
Constructor. |
|
| Method Summary | |
int |
count(int r,
int g,
int b)
Returns the count of the colorHistogram at r g b |
float[] |
mean()
Returns the mean of the entire ColorHistogram as an int[]. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int[][][] m_data
protected int m_rbits
protected int m_gbits
protected int m_bbits
private int m_rsize
private int m_gsize
private int m_bsize
| Constructor Detail |
public ColorHistogram(ColorImage image)
public ColorHistogram(ColorImage image,
int rbits,
int gbits,
int bbits)
| Method Detail |
public int count(int r,
int g,
int b)
public float[] mean()
|
JIGL v1.6 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||