|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.shapelogic.color.GrayAndVariance
public class GrayAndVariance
GrayAndVariance describes an average color with variance for gray 8 bit.
Used for color clustering, and particle counter.
Field Summary | |
---|---|
protected StorelessDiscriptiveStatistic |
_grayStatistic
|
protected int |
_maxColor
|
protected double |
_maxDistance
Distance from colorCenter that will be accepted in this Range. |
protected int |
_minColor
Not sure if these are needed. |
Constructor Summary | |
---|---|
GrayAndVariance()
|
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 |
getMeanGray()
|
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 _grayStatistic
protected int _minColor
protected int _maxColor
protected double _maxDistance
Constructor Detail |
---|
public GrayAndVariance()
Method Detail |
---|
public void putPixel(int x, int y, int color)
putPixel
in interface PixelHandler
public int getArea()
HasArea
getArea
in interface HasArea
public int getMeanColor()
getMeanColor
in interface IColorAndVariance
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 getMeanGray()
public int getMeanRed()
getMeanRed
in interface IColorAndVariance
public int getMeanGreen()
getMeanGreen
in interface IColorAndVariance
public int getMeanBlue()
getMeanBlue
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 |