|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.computing.ai.vision.Filter
org.jscience.computing.ai.vision.ConvolutionFilter
org.jscience.computing.ai.vision.MeanFilter
public class MeanFilter
A mean filter implemented as a convolution filter.
org.generation5.vision.ConvolutionFilter| Field Summary | |
|---|---|
protected int |
neighbourhoodSize
The neighbourhood size. |
| Fields inherited from class org.jscience.computing.ai.vision.ConvolutionFilter |
|---|
kernel |
| Constructor Summary | |
|---|---|
MeanFilter()
Creates a new instance of MeanFilter. |
|
MeanFilter(int neighbourhoodSize)
Creates a new instance of MeanFilter of the specified neighbourhood size. |
|
| Method Summary | |
|---|---|
java.awt.image.BufferedImage |
filter(java.awt.image.BufferedImage image)
Blur the image using the mean kernel. |
int |
getNeighbourhoodSize()
Retrieve the current neighbourhood size. |
static void |
main(java.lang.String[] args)
Utility method for the class. |
void |
setNeighbourhoodSize(int ns)
Set the neighbourhood size. |
java.lang.String |
toString()
DOCUMENT ME! |
| Methods inherited from class org.jscience.computing.ai.vision.ConvolutionFilter |
|---|
filter, getKernel, setKernel |
| Methods inherited from class org.jscience.computing.ai.vision.Filter |
|---|
verifyOutput, verifyOutput, verifyOutput |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int neighbourhoodSize
| Constructor Detail |
|---|
public MeanFilter()
public MeanFilter(int neighbourhoodSize)
neighbourhoodSize - the neighbourhood size.| Method Detail |
|---|
public void setNeighbourhoodSize(int ns)
ns - the new neighbourhood size.public int getNeighbourhoodSize()
public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage image)
filter in class Filterimage - the input image.
public java.lang.String toString()
toString in class ConvolutionFilterpublic static void main(java.lang.String[] args)
args - the command line arguments
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||