|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 PixelHandler
public int getArea()
HasArea
getArea
in interface HasArea
public double getStandardDeviation()
getStandardDeviation
in interface IColorAndVariance
public void merge(IColorAndVariance colorAndVariance)
merge
in interface IColorAndVariance
public int[] getColorChannels()
getColorChannels
in interface ColorChannels
public int getMeanRed()
getMeanRed
in interface IColorAndVariance
public int getMeanGreen()
getMeanGreen
in interface IColorAndVariance
public int getMeanBlue()
getMeanBlue
in interface IColorAndVariance
public int getMeanColor()
getMeanColor
in interface IColorAndVariance
public PixelArea getPixelArea()
getPixelArea
in interface HasPixelArea
public void setPixelArea(PixelArea pixelArea)
setPixelArea
in interface HasPixelArea
public 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 |