|
JIGL v1.6 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--jigl.image.RealGrayImage
|
+--jigl.image.ImageKernel
ImageKernel is an extension of GrayImage with some pre-defined kernals.
| Field Summary | |
static int |
D_XX
D_xx Kernel. |
static int |
D_XY
D_xy Kernel. |
static int |
D_YY
D_yy Kernel. |
static int |
LAPLACIAN
Laplacian Kernel. |
static int |
LAPLACIAN_8
Laplacian 8 Kernel. |
static int |
PREWITT_X
Prewitt Kernel with X orientation. |
static int |
PREWITT_Y
Prewitt Kernel with Y orientation. |
static int |
SOBEL_X
Sorbel Kernel with X orientation. |
static int |
SOBEL_Y
Sobel Kernel with Y orientation. |
static int |
UNIFORM
Uniform Kernel. |
static int |
UNSHARP
Unsharpen Kernel. |
static int |
UNSHARP_8
Unsharpen 8 Kernel. |
| Fields inherited from class jigl.image.RealGrayImage |
data, X, Y |
| Constructor Summary | |
ImageKernel(float[][] dat)
Creates a kernel out of the given array. |
|
ImageKernel(float val,
int dimension)
Creates a uniform kernel of specified size |
|
ImageKernel(int val)
Creates a kernel of one of the predefined types. |
|
ImageKernel(RealGrayImage img)
Creates an ImageKernel from a RealGrayImage |
|
| Method Summary | |
void |
normalize()
Normalize the kernel by total grayscales. |
void |
normalize255()
"Normalizes" the ImageKernel by 255. |
| Methods inherited from class jigl.image.RealGrayImage |
absSum, add, add, add, add, add, add, addbuffer, addbuffer, addSum, byteSize, byteSize, clear, clear, clip, clip, copy, copy, diff, divide, divide, divide, divide, divide, divide, get, getData, getJavaImage, max, max, median, median, min, min, multiply, multiply, multiply, multiply, multiply, multiply, set, set, sqrSum, subtract, subtract, subtract, subtract, subtract, subtract, toString, toString, X, Y |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int UNIFORM
| 1 | 1 | 1 |
| 1 | 1 | 1 |
| 1 | 1 | 1 |
public static final int SOBEL_X
| -1 | 0 | 1 |
| -2 | 0 | 2 |
| -1 | 0 | 1 |
public static final int SOBEL_Y
| -1 | -2 | -1 |
| 0 | 0 | 0 |
| 1 | 2 | 1 |
public static final int PREWITT_X
| -1 | 0 | 1 |
| -1 | 0 | 1 |
| -1 | 0 | 1 |
public static final int PREWITT_Y
| -1 | -1 | -1 |
| 0 | 0 | 0 |
| 1 | 1 | 1 |
public static final int LAPLACIAN
| 0 | 1 | 0 |
| 1 | 4 | 1 |
| 0 | 1 | 0 |
public static final int LAPLACIAN_8
| 1 | 1 | 1 |
| 1 | -8 | 1 |
| 1 | 1 | 1 |
public static final int UNSHARP
| 0 | -1 | 0 |
| -1 | 5 | -1 |
| 0 | -1 | 0 |
public static final int UNSHARP_8
| -1 | -1 | -1 |
| -1 | 9 | -1 |
| -1 | -1 | -1 |
public static final int D_XX
| 1 | -2 | 1 |
| 1 | -2 | 1 |
| 1 | -2 | 1 |
public static final int D_YY
| 1 | 1 | 1 |
| -2 | -2 | -2 |
| 1 | 1 | 1 |
public static final int D_XY
| 1 | 0 | -1 |
| 0 | 0 | 0 |
| -1 | 0 | 1 |
| Constructor Detail |
public ImageKernel(int val)
throws InvalidKernelException
val
should be between 0 and 11.
0 - UNIFORM 1 - SOBEL_X 2 - SOBEL_Y
3 - PREWITT_X 4 - PREWITT_Y 5 - LAPLACIAN
6 - LAPLACIAN_8 7 - UNSHARP 8 - UNSHARP_8
9 - D_XX 10 - D_YY 11 - D_XY
val - kernel typeUNIFORM,
SOBEL_X,
SOBEL_Y,
PREWITT_X,
PREWITT_Y,
LAPLACIAN,
LAPLACIAN_8,
UNSHARP,
UNSHARP_8,
D_XX,
D_YY,
D_XY
public ImageKernel(float val,
int dimension)
val - uniform value for the kerneldimension - size of kernel (dimension X dimension)public ImageKernel(float[][] dat)
dat - two-dimensional data arraypublic ImageKernel(RealGrayImage img)
| Method Detail |
public void normalize255()
public void normalize()
|
JIGL v1.6 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||