|
Java Platform 1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.image.Kernel
This class defines a Kernel object. A kernel is a matrix describing how a given pixel and its surrounding pixels affect the value computed for the given pixel's position in the output image of a filtering operation. The X origin and Y origin indicate the kernel matrix element which corresponds to the pixel position for which an output value is being computed.
ConvolveOp
Constructor Summary | |
Kernel(int width,
int height,
float[] data)
Constructs a Kernel object from an array of floats. |
Method Summary | |
Object |
clone()
Clones this object. |
int |
getHeight()
Returns the height. |
float[] |
getKernelData(float[] data)
Returns the kernel data in row major order. |
int |
getWidth()
Returns the width. |
int |
getXOrigin()
Returns the X origin. |
int |
getYOrigin()
Returns the Y origin. |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public Kernel(int width, int height, float[] data)
width
- Width of the kernel.height
- Height of the kernel.data
- Kernel data in row major order.Method Detail |
public final int getXOrigin()
public final int getYOrigin()
public final int getWidth()
public final int getHeight()
public final float[] getKernelData(float[] data)
data
- If non-null, will contain the returned kernel data.public Object clone()
|
Java Platform 1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |