public class MedianFilter extends WholeImageFilter
originalSpace, transformedSpace
Constructor and Description |
---|
MedianFilter() |
Modifier and Type | Method and Description |
---|---|
protected int[] |
filterPixels(int width,
int height,
int[] inPixels,
Rectangle transformedSpace)
Actually filter the pixels.
|
private int |
median(int[] array) |
private int |
rgbMedian(int[] r,
int[] g,
int[] b) |
String |
toString() |
filter, transformSpace
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
public MedianFilter()
private int median(int[] array)
private int rgbMedian(int[] r, int[] g, int[] b)
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