com.jhlabs.image

Class ContourFilter

Implemented Interfaces:
BufferedImageOp, Cloneable

public class ContourFilter
extends WholeImageFilter

A filter which draws contours on an image at given brightness levels.

Field Summary

Fields inherited from class com.jhlabs.image.WholeImageFilter

originalSpace, transformedSpace

Constructor Summary

ContourFilter()

Method Summary

protected int[]
filterPixels(int width, int height, int[] inPixels, Rectangle transformedSpace)
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()

Methods inherited from class com.jhlabs.image.WholeImageFilter

filter, filterPixels, transformSpace

Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp

clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRGB, getRenderingHints, setRGB

Constructor Details

ContourFilter

public ContourFilter()

Method Details

filterPixels

protected int[] filterPixels(int width,
                             int height,
                             int[] inPixels,
                             Rectangle transformedSpace)
Overrides:
filterPixels in interface WholeImageFilter

getContourColor

public int getContourColor()

getLevels

public float getLevels()

getOffset

public float getOffset()

getScale

public float getScale()
Returns the scale of the contours.
Returns:
the scale of the contours.

setContourColor

public void setContourColor(int contourColor)

setLevels

public void setLevels(float levels)

setOffset

public void setOffset(float offset)

setScale

public void setScale(float scale)
Specifies the scale of the contours.
Parameters:
scale - the scale of the contours.

toString

public String toString()