jpview.graphics
Class GaussianKernel

java.lang.Object
  extended by jpview.graphics.GaussianKernel

public class GaussianKernel
extends java.lang.Object

This class creates a kernel for use by an AffineTransformOp

Author:
clyon

Constructor Summary
GaussianKernel()
          Creates a new instance of GaussianKernel
GaussianKernel(int r)
          Creates a gaussian kernel with the provided radius
GaussianKernel(int r, float s)
          Creates a gaussian kernel with the provided radius and sigma value
 
Method Summary
 void dump()
          Dumps a string representation of the kernel to standard out
 float[] getKernel()
          returns the kernel as a float [] suitable for use with an affine transform
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GaussianKernel

public GaussianKernel()
Creates a new instance of GaussianKernel


GaussianKernel

public GaussianKernel(int r)
Creates a gaussian kernel with the provided radius

Parameters:
r - the radius for the gaussian kernel

GaussianKernel

public GaussianKernel(int r,
                      float s)
Creates a gaussian kernel with the provided radius and sigma value

Parameters:
r - the radius of the blur
s - the sigma value for the kernel
Method Detail

dump

public void dump()
Dumps a string representation of the kernel to standard out


getKernel

public float[] getKernel()
returns the kernel as a float [] suitable for use with an affine transform

Returns:
the kernel values