com.jhlabs.image
Class EdgeFilter
java.lang.Object
com.jhlabs.image.AbstractBufferedImageOp
com.jhlabs.image.WholeImageFilter
com.jhlabs.image.EdgeFilter
- All Implemented Interfaces:
- BufferedImageOp, Cloneable
public class EdgeFilter
- extends WholeImageFilter
An edge-detection filter.
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,
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 String toString()
- Overrides:
toString in class Object
Copyright © 2012. All Rights Reserved.