com.jhlabs.image
Class EdgeFilter
java.lang.Object
com.jhlabs.image.AbstractBufferedImageOp
com.jhlabs.image.WholeImageFilter
com.jhlabs.image.EdgeFilter
- All Implemented Interfaces:
- java.awt.image.BufferedImageOp, java.lang.Cloneable
public class EdgeFilter
- extends WholeImageFilter
An edge-detection filter.
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
R2
public static final float R2
ROBERTS_V
public static final float[] ROBERTS_V
ROBERTS_H
public static final float[] ROBERTS_H
PREWITT_V
public static final float[] PREWITT_V
PREWITT_H
public static final float[] PREWITT_H
SOBEL_V
public static final float[] SOBEL_V
SOBEL_H
public static float[] SOBEL_H
FREI_CHEN_V
public static final float[] FREI_CHEN_V
FREI_CHEN_H
public static float[] FREI_CHEN_H
vEdgeMatrix
protected float[] vEdgeMatrix
hEdgeMatrix
protected float[] hEdgeMatrix
EdgeFilter
public EdgeFilter()
setVEdgeMatrix
public void setVEdgeMatrix(float[] vEdgeMatrix)
getVEdgeMatrix
public float[] getVEdgeMatrix()
setHEdgeMatrix
public void setHEdgeMatrix(float[] hEdgeMatrix)
getHEdgeMatrix
public float[] getHEdgeMatrix()
filterPixels
protected int[] filterPixels(int width,
int height,
int[] inPixels,
java.awt.Rectangle transformedSpace)
- Description copied from class:
WholeImageFilter
- Actually filter the pixels.
- Specified by:
filterPixels
in class WholeImageFilter
- Parameters:
width
- the image widthheight
- the image heightinPixels
- the image pixelstransformedSpace
- the output bounds
- Returns:
- the output pixels
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object