|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.generation5.vision.Filter
org.generation5.vision.ConvolutionFilter
org.generation5.vision.MeanFilter
A mean filter implemented as a convolution filter.
ConvolutionFilter| Field Summary | |
protected int |
neighbourhoodSize
The neighbourhood size. |
| Fields inherited from class org.generation5.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()
|
| Methods inherited from class org.generation5.vision.ConvolutionFilter |
filter, getKernel, setKernel |
| Methods inherited from class org.generation5.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
|
This documentation is part of the Generation5 JDK.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||