public class Kernel
extends java.lang.Object
Constructor and Description |
---|
Kernel(int halfWidth,
double[][] data) |
Kernel(java.awt.Point pt,
Image image,
int halfWidth)
Create a kernel by sampling a square area symmetrically around the given
point in the given Image.
|
Modifier and Type | Method and Description |
---|---|
boolean |
askHalfWidth()
Ask the user for the kernel's halfwidth.
|
static Kernel |
createGaussianKernel(Image image,
int halfWidth)
Create a kernel which is a Gaussian hump.
|
double[][] |
getData()
First index = band, second index = samples for given colour band.
|
int |
getHalfWidth()
Kernel will comprise (2.halfWidth + 1) x (2.halfWidth + 1) pixels.
|
int |
getNBands() |
static Kernel |
load(java.lang.String path,
int nBands)
Load kernel from a comma-separated text file.
|
public Kernel(int halfWidth, double[][] data)
public Kernel(java.awt.Point pt, Image image, int halfWidth)
public int getHalfWidth()
public double[][] getData()
public int getNBands()
public static Kernel load(java.lang.String path, int nBands)
public boolean askHalfWidth()