public class DilateFilter extends BinaryFilter
blackFunction, colormap, iterations, newColor
originalSpace, transformedSpace
filterListener
Constructor and Description |
---|
DilateFilter() |
Modifier and Type | Method and Description |
---|---|
protected int[] |
filterPixels(int width,
int height,
int[] inPixels,
Rectangle transformedSpace)
Actually filter the pixels.
|
int |
getThreshold()
Return the threshold - the number of neighbouring pixels for dilation to occur.
|
void |
setThreshold(int threshold)
Set the threshold - the number of neighbouring pixels for dilation to occur.
|
String |
toString() |
getBlackFunction, getColormap, getIterations, getNewColor, setBlackFunction, setColormap, setIterations, setNewColor
filter, transformSpace
clone, createCompatibleDestImage, createCompatibleDestImage, filterDone, filterInitialize, filterProgress, filterStart, getBounds2D, getMetaData, getPoint2D, getRenderingHints, getRGB, setFilterListener, setRGB
public void setThreshold(int threshold)
threshold
- the new thresholdgetThreshold()
public int getThreshold()
setThreshold(int)
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 boundsCopyright © 2012-2013 Bambi Software Foundation. All Rights Reserved.