com.jhlabs.image
Class DilateFilter
- BufferedImageOp, Cloneable
public class DilateFilter
Given a binary image, this filter performs binary dilation, setting all added pixels to the given 'new' color.
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()
|
DilateFilter
public DilateFilter()
Construct a WholeImageFilter.
filterPixels
protected int[] filterPixels(int width,
int height,
int[] inPixels,
Rectangle transformedSpace) Actually filter the pixels.
- filterPixels in interface WholeImageFilter
width - the image widthheight - the image heightinPixels - the image pixelstransformedSpace - the output bounds
getThreshold
public int getThreshold()
Return the threshold - the number of neighbouring pixels for dilation to occur.
setThreshold
public void setThreshold(int threshold)
Set the threshold - the number of neighbouring pixels for dilation to occur.
threshold - the new threshold
toString
public String toString()