|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.grelf.image.Kernel
public class Kernel
A square array of values for convolving with an image. Can be set from an image or as a Gaussian hump or loaded from a text (CSV) file.
| Constructor Summary | |
|---|---|
Kernel(int halfWidth,
float[][] 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 accumulator. |
|
| Method Summary | |
|---|---|
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. |
float[][] |
getData()
First index = band, second index = samples for given colour band. |
int |
getHalfWidth()
Kernel will comprise (2.halfWidth + 1) x (2.halfWidth + 1) pixels. |
static Kernel |
load(java.lang.String path,
int nBands)
Load kernel from a comma-separated text file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Kernel(int halfWidth,
float[][] data)
public Kernel(java.awt.Point pt,
Image image,
int halfWidth)
| Method Detail |
|---|
public int getHalfWidth()
public float[][] getData()
public static Kernel load(java.lang.String path,
int nBands)
public boolean askHalfWidth()
public static Kernel createGaussianKernel(Image image,
int halfWidth)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||