|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.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 PixelHandlerpublic int getArea()
HasArea
getArea in interface HasAreapublic int getMeanColor()
getMeanColor in interface IColorAndVariancepublic double getStandardDeviation()
getStandardDeviation in interface IColorAndVariancepublic void merge(IColorAndVariance colorAndVariance)
merge in interface IColorAndVariancepublic int[] getColorChannels()
getColorChannels in interface ColorChannelspublic int getMeanGray()
public int getMeanRed()
getMeanRed in interface IColorAndVariancepublic int getMeanGreen()
getMeanGreen in interface IColorAndVariancepublic int getMeanBlue()
getMeanBlue 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 | ||||||||