|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjjil.algorithm.Gray8Statistics
public class Gray8Statistics
Gray8Statistics is used to measure the mean and variance of a gray image.
| Constructor Summary | |
|---|---|
Gray8Statistics()
Creates a new instance of Gray8Statistics |
|
| Method Summary | |
|---|---|
int |
getMean()
Return computed mean, times 256. |
int |
getStdDev()
Return standard deviation, times 256 using Newton's iteration. |
int |
getVariance()
Return computed variance, times 256. |
void |
push(Image image)
Estimate the mean and variance of an input gray image. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Gray8Statistics()
| Method Detail |
|---|
public void push(Image image)
throws Error
image - the input image.
Error - if the input image is not gray.public int getMean()
public int getStdDev()
throws Error
Error - if the variance computed in push() is less than zero.public int getVariance()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||