public class EdgeFilter extends WholeImageFilter
Modifier and Type | Field and Description |
---|---|
static float[] |
FREI_CHEN_H |
static float[] |
FREI_CHEN_V |
protected float[] |
hEdgeMatrix |
static float[] |
PREWITT_H |
static float[] |
PREWITT_V |
static float |
R2 |
static float[] |
ROBERTS_H |
static float[] |
ROBERTS_V |
static float[] |
SOBEL_H |
static float[] |
SOBEL_V |
protected float[] |
vEdgeMatrix |
originalSpace, transformedSpace
Constructor and Description |
---|
EdgeFilter() |
Modifier and Type | Method and Description |
---|---|
protected int[] |
filterPixels(int width,
int height,
int[] inPixels,
Rectangle transformedSpace)
Actually filter the pixels.
|
float[] |
getHEdgeMatrix() |
float[] |
getVEdgeMatrix() |
void |
setHEdgeMatrix(float[] hEdgeMatrix) |
void |
setVEdgeMatrix(float[] vEdgeMatrix) |
String |
toString() |
filter, transformSpace
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
public static final float R2
public static final float[] ROBERTS_V
public static final float[] ROBERTS_H
public static final float[] PREWITT_V
public static final float[] PREWITT_H
public static final float[] SOBEL_V
public static float[] SOBEL_H
public static final float[] FREI_CHEN_V
public static float[] FREI_CHEN_H
protected float[] vEdgeMatrix
protected float[] hEdgeMatrix
public EdgeFilter()
public void setVEdgeMatrix(float[] vEdgeMatrix)
public float[] getVEdgeMatrix()
public void setHEdgeMatrix(float[] hEdgeMatrix)
public float[] getHEdgeMatrix()
protected int[] filterPixels(int width, int height, int[] inPixels, Rectangle transformedSpace)
WholeImageFilter
filterPixels
in class WholeImageFilter
width
- the image widthheight
- the image heightinPixels
- the image pixelstransformedSpace
- the output boundsWebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses