scenic.filter
Class SeparableKernel

java.lang.Object
  extended by scenic.filter.Kernel
      extended by scenic.filter.SeparableKernel
Direct Known Subclasses:
BoxKernel, CubicKernel, TentKernel

public abstract class SeparableKernel
extends Kernel

Abstract base class for separable filter kernels.


Constructor Summary
SeparableKernel()
           
 
Method Summary
abstract  double getValue(double x)
           
 double getValue(double x, double y)
          Returns the value of the filter kernel at the given point.
 
Methods inherited from class scenic.filter.Kernel
createImage
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SeparableKernel

public SeparableKernel()
Method Detail

getValue

public abstract double getValue(double x)

getValue

public double getValue(double x,
                       double y)
Description copied from class: Kernel
Returns the value of the filter kernel at the given point. The filter kernel is defined in the range [-0.5 0.5] for both x and y axis. Values outside that range are ignored. Integral over the defined range should be 1.

Specified by:
getValue in class Kernel
Parameters:
x - x coordinate, in the range [-0.5 0.5]
y - y coordinate, in the range [-0.5 0.5]
Returns:
value of the filter kernel at point (x, y)