|
|||||||||
| 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.GaussianFilter
public class GaussianFilter
Implements simple Gaussian smoothing. This extends
ConvolutionFilter and calculates the kernel automatically from
the standard deviation passed.
| Field Summary | |
|---|---|
protected double |
standardDeviation
The standard deviation used in the gaussian spread (defaults to 1.0). |
| Fields inherited from class org.jscience.computing.ai.vision.ConvolutionFilter |
|---|
kernel |
| Constructor Summary | |
|---|---|
GaussianFilter()
Creates a new instance of GaussianFilter |
|
GaussianFilter(double standardDeviation)
Creates a new instance of GaussianFilter, with the standard deviation. |
|
| Method Summary | |
|---|---|
static float[] |
createKernel(double stddev)
This creates a gaussian filter with a given standard deviation. |
protected static int |
getSize(double stddev)
Calculate the size of the kernel required for the standard deviation passed. |
double |
getStandardDeviation()
Get the standard deviation. |
static void |
main(java.lang.String[] args)
Utility method. |
void |
setStandardDeviation(double standardDeviation)
Set the standard deviation used. |
| Methods inherited from class org.jscience.computing.ai.vision.ConvolutionFilter |
|---|
filter, getKernel, setKernel, toString |
| Methods inherited from class org.jscience.computing.ai.vision.Filter |
|---|
filter, verifyOutput, verifyOutput, verifyOutput |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected double standardDeviation
| Constructor Detail |
|---|
public GaussianFilter()
public GaussianFilter(double standardDeviation)
standardDeviation - the standard deviation.| Method Detail |
|---|
public static void main(java.lang.String[] args)
args - the command line argumentspublic static float[] createKernel(double stddev)
stddev - the standard deviation.
protected static int getSize(double stddev)
stddev - the standard deviation.
public double getStandardDeviation()
public void setStandardDeviation(double standardDeviation)
standardDeviation - the new standard deviation to use.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||