scenic.filter
Class Kernel

java.lang.Object
  extended by scenic.filter.Kernel
Direct Known Subclasses:
SeparableKernel

public abstract class Kernel
extends java.lang.Object

Abstract base class for 2d filter kernels.


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

Constructor Detail

Kernel

public Kernel()
Method Detail

getValue

public abstract double getValue(double x,
                                double y)
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.

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)

createImage

public ScenicImage createImage()