j2d
Class Kernel

java.lang.Object
  extended by j2d.Kernel
All Implemented Interfaces:
java.io.Serializable

public class Kernel
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
static Kernel[] DITHER_MASK_441
           
static Kernel[] DITHER_MASK_443
           
static Kernel ERROR_FILTER_FLOYD_STEINBERG
           
static Kernel ERROR_FILTER_JARVIS
           
static Kernel ERROR_FILTER_STUCKI
           
static Kernel GRADIENT_MASK_SOBEL_HORIZONTAL
           
static Kernel GRADIENT_MASK_SOBEL_VERTICAL
           
 
Constructor Summary
Kernel(int width, int height, float[] data)
           
Kernel(int width, int height, int xOrigin, int yOrigin, float[] data)
           
Kernel(int width, int height, int xOrigin, int yOrigin, float[] dataH, float[] dataV)
           
Kernel(java.awt.image.Kernel k)
           
 
Method Summary
 int getBottomPadding()
           
 float getElement(int xIndex, int yIndex)
           
 int getHeight()
           
 float[] getHorizontalKernelData()
           
 float[] getKernelData()
           
 int getLeftPadding()
           
 int getRightPadding()
           
 Kernel getRotatedKernel()
           
 int getTopPadding()
           
 float[] getVerticalKernelData()
           
 int getWidth()
           
 int getXOrigin()
           
 int getYOrigin()
           
 boolean isHorizontallySymmetric()
           
 boolean isSeparable()
           
 boolean isVerticallySymmetric()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ERROR_FILTER_FLOYD_STEINBERG

public static final Kernel ERROR_FILTER_FLOYD_STEINBERG

ERROR_FILTER_JARVIS

public static final Kernel ERROR_FILTER_JARVIS

ERROR_FILTER_STUCKI

public static final Kernel ERROR_FILTER_STUCKI

DITHER_MASK_441

public static final Kernel[] DITHER_MASK_441

DITHER_MASK_443

public static final Kernel[] DITHER_MASK_443

GRADIENT_MASK_SOBEL_VERTICAL

public static final Kernel GRADIENT_MASK_SOBEL_VERTICAL

GRADIENT_MASK_SOBEL_HORIZONTAL

public static final Kernel GRADIENT_MASK_SOBEL_HORIZONTAL
Constructor Detail

Kernel

public Kernel(int width,
              int height,
              int xOrigin,
              int yOrigin,
              float[] data)

Kernel

public Kernel(int width,
              int height,
              int xOrigin,
              int yOrigin,
              float[] dataH,
              float[] dataV)

Kernel

public Kernel(int width,
              int height,
              float[] data)

Kernel

public Kernel(java.awt.image.Kernel k)
Method Detail

getWidth

public int getWidth()

getHeight

public int getHeight()

getXOrigin

public int getXOrigin()

getYOrigin

public int getYOrigin()

getKernelData

public float[] getKernelData()

getHorizontalKernelData

public float[] getHorizontalKernelData()

getVerticalKernelData

public float[] getVerticalKernelData()

getElement

public float getElement(int xIndex,
                        int yIndex)

isSeparable

public boolean isSeparable()

isHorizontallySymmetric

public boolean isHorizontallySymmetric()

isVerticallySymmetric

public boolean isVerticallySymmetric()

getLeftPadding

public int getLeftPadding()

getRightPadding

public int getRightPadding()

getTopPadding

public int getTopPadding()

getBottomPadding

public int getBottomPadding()

getRotatedKernel

public Kernel getRotatedKernel()