|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.grelf.grip.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,
java.awt.image.BufferedImage bim)
Deprecated. |
|
Kernel(java.awt.Point pt,
java.awt.image.BufferedImage bim,
int halfWidth)
Create a kernel by sampling a square area symmetrically around the given point in the given image. |
|
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()
|
static Kernel |
createGaussianKernel(java.awt.image.BufferedImage im,
int halfWidth)
|
void |
dump()
|
float[][] |
getData()
First index = band, second index = samples for given colour band. |
int |
getHalfWidth()
Kernel will be (2.halfWidth + 1) x (2.halfWidth + 1). |
static Kernel |
load(java.lang.String path,
int nBands)
Load kernel from a comma-separated text file. |
void |
view(Im im)
|
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)
@Deprecated public Kernel(java.awt.Point pt, java.awt.image.BufferedImage bim)
public Kernel(java.awt.Point pt, java.awt.image.BufferedImage bim, int halfWidth)
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(java.awt.image.BufferedImage im, int halfWidth)
public void dump()
public void view(Im im)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |