public Kernel(java.awt.Point pt,
Create a kernel by sampling a square area symmetrically around the given
point in the given Image. The width and height of the square kernel
will both be 2 * halfWidth + 1. However, if the halfWidth value is
negative, the halfWidth will be redetermined from the image. That is done
by scanning spirally around the given point first to find a peak sum of
levels in all channels and then spirally outwards until the sum of
levels in all channels is always below 10% of the peak value found, or
the image edge is reached. This latter method is appropriate for picking
up a star image as the kernel, for deconvolving astrophotographs. That is
because ideally the star image should be a point.
public int getHalfWidth()
Kernel will comprise (2.halfWidth + 1) x (2.halfWidth + 1) pixels.
public double getData()
First index = band, second index = samples for given colour band.
public int getNBands()
public static Kernel load(java.lang.String path,
Load kernel from a comma-separated text file. Expects same number of rows
public boolean askHalfWidth()
Ask the user for the kernel's halfwidth.
public static Kernel createGaussianKernel(Image image,