public class ContourFilter extends WholeImageFilter
Modifier and Type | Field and Description |
---|---|
private int |
contourColor |
private float |
levels |
private float |
offset |
private float |
scale |
originalSpace, transformedSpace
Constructor and Description |
---|
ContourFilter() |
Modifier and Type | Method and Description |
---|---|
protected int[] |
filterPixels(int width,
int height,
int[] inPixels,
Rectangle transformedSpace)
Actually filter the pixels.
|
int |
getContourColor() |
float |
getLevels() |
float |
getOffset() |
float |
getScale()
Returns the scale of the contours.
|
void |
setContourColor(int contourColor) |
void |
setLevels(float levels) |
void |
setOffset(float offset) |
void |
setScale(float scale)
Specifies the scale of the contours.
|
String |
toString() |
filter, transformSpace
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
private float levels
private float scale
private float offset
private int contourColor
public ContourFilter()
public void setLevels(float levels)
public float getLevels()
public void setScale(float scale)
scale
- the scale of the contours.getScale()
public float getScale()
setScale(float)
public void setOffset(float offset)
public float getOffset()
public void setContourColor(int contourColor)
public int getContourColor()
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