volume
Class DoG

java.lang.Object
  |
  +--volume.Kernel
        |
        +--volume.Kernel1D
              |
              +--volume.Gaussian
                    |
                    +--volume.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
DoG(double sigma)
          Create a Difference of Gaussian kernel from standard deviation sigma.
 
Method Summary
protected  double function(double x)
          Compute Difference of Gaussian function at x.
 java.lang.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
Following copied from class: volume.Gaussian
Parameters:
x - the x position
Returns:
a double with the value of the Gaussian at x.

toString

public java.lang.String toString()
Overrides:
toString in class Gaussian