Kernel class defines a matrix that describes how a
specified pixel and its surrounding pixels affect the value
computed for the pixel's position in the output image of a filtering
operation. The X origin and Y origin indicate the kernel matrix element
that corresponds to the pixel position for which an output value is
being computed.
ConvolveOp
| Modifier and Type | Field and Description |
|---|---|
| private float[] | |
| private int | |
| private int | |
| private int | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | Kernel(int
width of the kernel width, int height of the kernel height, float[] kernel data in row major order data)Constructs a |
| Modifier and Type | Method and Description |
|---|---|
| public Object | |
| public final int | |
| public final float[] | Returns: thedata array containing the kernel data
in row major order or, if data is
null, a newly allocated array containing
the kernel data in row major orderif non-null, contains the returned kernel data data)Returns the kernel data in row major order. |
| public final int | |
| public final int | |
| public final int | |
| private static native void |
| data | back to summary |
|---|---|
| private float[] data | |
| height | back to summary |
|---|---|
| private int height | |
| width | back to summary |
|---|---|
| private int width | |
| xOrigin | back to summary |
|---|---|
| private int xOrigin | |
| yOrigin | back to summary |
|---|---|
| private int yOrigin | |
| Kernel | back to summary |
|---|---|
| public Kernel(int width, int height, float[] data) Constructs a
| |
| clone | back to summary |
|---|---|
| public Object clone() Overrides java. Clones this object.
| |
| getHeight | back to summary |
|---|---|
| public final int getHeight() Returns the height of this
| |
| getKernelData | back to summary |
|---|---|
| public final float[] getKernelData(float[] data) Returns the kernel data in row major order.
The
| |
| getWidth | back to summary |
|---|---|
| public final int getWidth() Returns the width of this
| |
| getXOrigin | back to summary |
|---|---|
| public final int getXOrigin() Returns the X origin of this
| |
| getYOrigin | back to summary |
|---|---|
| public final int getYOrigin() Returns the Y origin of this
| |
| initIDs | back to summary |
|---|---|
| private static native void initIDs() | |