|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.shapelogic.color.ColorAndVariance
public class ColorAndVariance
GrayAndVariance describes an average color with variance for gray 8 bit.
Used for color clustering, and particle counter.
XXX this class should be renamed to ColorArea
| Field Summary | |
|---|---|
protected StorelessDiscriptiveStatistic[] |
_colorStatistics
|
protected int[] |
_splitColors
|
| Constructor Summary | |
|---|---|
ColorAndVariance()
|
|
| Method Summary | |
|---|---|
int |
getArea()
Area of this color range. |
int[] |
getColorChannels()
Color vector to be used for color distance. Should I use the center color or the mean color? I will start by using the mean color. I think that I will start without including the standard deviation. |
int |
getMeanBlue()
|
int |
getMeanColor()
|
int |
getMeanGreen()
|
int |
getMeanRed()
|
PixelArea |
getPixelArea()
|
double |
getStandardDeviation()
|
void |
merge(IColorAndVariance colorAndVariance)
|
void |
putPixel(int x,
int y,
int color)
Add the color for a given point (x,y). |
void |
setPixelArea(PixelArea pixelArea)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected StorelessDiscriptiveStatistic[] _colorStatistics
protected int[] _splitColors
| Constructor Detail |
|---|
public ColorAndVariance()
| Method Detail |
|---|
public void putPixel(int x,
int y,
int color)
putPixel in interface PixelHandlerpublic int getArea()
HasArea
getArea in interface HasAreapublic double getStandardDeviation()
getStandardDeviation in interface IColorAndVariancepublic void merge(IColorAndVariance colorAndVariance)
merge in interface IColorAndVariancepublic int[] getColorChannels()
getColorChannels in interface ColorChannelspublic int getMeanRed()
getMeanRed in interface IColorAndVariancepublic int getMeanGreen()
getMeanGreen in interface IColorAndVariancepublic int getMeanBlue()
getMeanBlue in interface IColorAndVariancepublic int getMeanColor()
getMeanColor in interface IColorAndVariancepublic PixelArea getPixelArea()
getPixelArea in interface HasPixelAreapublic void setPixelArea(PixelArea pixelArea)
setPixelArea in interface HasPixelAreapublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||