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,
java.awt.Rectangle transformedSpace)
Actually filter the pixels.
|
float[] |
getHEdgeMatrix() |
float[] |
getVEdgeMatrix() |
void |
setHEdgeMatrix(float[] hEdgeMatrix) |
void |
setVEdgeMatrix(float[] vEdgeMatrix) |
java.lang.String |
toString() |
filter, transformSpaceclone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB, stringToColorpublic 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 void setVEdgeMatrix(float[] vEdgeMatrix)
public float[] getVEdgeMatrix()
public void setHEdgeMatrix(float[] hEdgeMatrix)
public float[] getHEdgeMatrix()
protected int[] filterPixels(int width,
int height,
int[] inPixels,
java.awt.Rectangle transformedSpace)
WholeImageFilterfilterPixels in class WholeImageFilterwidth - the image widthheight - the image heightinPixels - the image pixelstransformedSpace - the output boundspublic java.lang.String toString()
toString in class java.lang.Object