volume

## Class DoG

• ```public class DoG
extends Gaussian```
This is a 1D Difference of Gaussian convolution kernel. DoG(x) = 1 / Math.sqrt(2 Math.PI * sigma^2) e^(-x^2 / 2 sigma^2) - 1 / Math.sqrt(2 Math.PI * (1.6 sigma)^2) e^(-x^2 / 2 (1.6 sigma)^2)

• ### Fields inherited from class volume.Gaussian

`sigma`
• ### Fields inherited from class volume.Kernel1D

`k`
• ### Fields inherited from class volume.Kernel

`halfwidth`
• ### Constructor Summary

Constructors
Constructor and Description
`DoG(double sigma)`
Create a Difference of Gaussian kernel from standard deviation sigma.
• ### Method Summary

All Methods
Modifier and Type Method and Description
`protected double` `function(double x)`
Compute Difference of Gaussian function at x.
`String` `toString()`
• ### Methods inherited from class volume.Gaussian

`getSigma`
• ### Methods inherited from class volume.Kernel1D

`kernelToString`
• ### Methods inherited from class volume.Kernel

`support`
• ### Methods inherited from class java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`
• ### Constructor Detail

• #### DoG

`public DoG(double sigma)`
Create a Difference of Gaussian kernel from standard deviation sigma.
Parameters:
`sigma,` - the standard deviation of the associated probability function of the Gaussian function.
• ### Method Detail

• #### function

`protected double function(double x)`
Compute Difference of Gaussian function at x.
Overrides:
`function` in class `Gaussian`
Parameters:
`x` - the x position
Returns:
a double with the value of the Gaussian at x.
• #### toString

`public String toString()`
Overrides:
`toString` in class `Gaussian`