com.jhlabs.image

Class GlintFilter

Implemented Interfaces:
BufferedImageOp, Cloneable

public class GlintFilter
extends AbstractBufferedImageOp

A filter which renders "glints" on bright parts of the image.

Constructor Summary

GlintFilter()

Method Summary

BufferedImage
filter(BufferedImage src, BufferedImage dst)
float
getAmount()
Get the amount of glint.
float
getBlur()
Set the blur that is applied before thresholding.
Colormap
getColormap()
Get the colormap to be used for the filter.
boolean
getGlintOnly()
Get whether to render the stars and the image or only the stars.
int
getLength()
Get the length of the stars.
float
getThreshold()
Get the threshold value.
void
setAmount(float amount)
Set the amount of glint.
void
setBlur(float blur)
Set the blur that is applied before thresholding.
void
setColormap(Colormap colormap)
Set the colormap to be used for the filter.
void
setGlintOnly(boolean glintOnly)
Set whether to render the stars and the image or only the stars.
void
setLength(int length)
Set the length of the stars.
void
setThreshold(float threshold)
Set the threshold value.
String
toString()

Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp

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

Constructor Details

GlintFilter

public GlintFilter()

Method Details

filter

public BufferedImage filter(BufferedImage src,
                            BufferedImage dst)

getAmount

public float getAmount()
Get the amount of glint.
Returns:
the amount

getBlur

public float getBlur()
Set the blur that is applied before thresholding.
Returns:
the blur radius

getColormap

public Colormap getColormap()
Get the colormap to be used for the filter.
Returns:
the colormap

getGlintOnly

public boolean getGlintOnly()
Get whether to render the stars and the image or only the stars.
Returns:
true to render only stars

getLength

public int getLength()
Get the length of the stars.
Returns:
the length

getThreshold

public float getThreshold()
Get the threshold value.
Returns:
the threshold value

setAmount

public void setAmount(float amount)
Set the amount of glint.
Parameters:
amount - the amount

setBlur

public void setBlur(float blur)
Set the blur that is applied before thresholding.
Parameters:
blur - the blur radius

setColormap

public void setColormap(Colormap colormap)
Set the colormap to be used for the filter.
Parameters:
colormap - the colormap
See Also:
getColormap()

setGlintOnly

public void setGlintOnly(boolean glintOnly)
Set whether to render the stars and the image or only the stars.
Parameters:
glintOnly - true to render only stars

setLength

public void setLength(int length)
Set the length of the stars.
Parameters:
length - the length

setThreshold

public void setThreshold(float threshold)
Set the threshold value.
Parameters:
threshold - the threshold value

toString

public String toString()