com.jhlabs.image
Class GlintFilter
- BufferedImageOp, Cloneable
A filter which renders "glints" on bright parts of the image.
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()
|
GlintFilter
public GlintFilter()
filter
public BufferedImage filter(BufferedImage src,
BufferedImage dst)
getAmount
public float getAmount()
Get the amount of glint.
getBlur
public float getBlur()
Set the blur that is applied before thresholding.
getColormap
public Colormap getColormap()
Get the colormap to be used for the filter.
getGlintOnly
public boolean getGlintOnly()
Get whether to render the stars and the image or only the stars.
- true to render only stars
getLength
public int getLength()
Get the length of the stars.
getThreshold
public float getThreshold()
Get the threshold value.
setAmount
public void setAmount(float amount)
Set the amount of glint.
setBlur
public void setBlur(float blur)
Set the blur that is applied before thresholding.
setColormap
public void setColormap(Colormap colormap)
Set the colormap to be used for the filter.
setGlintOnly
public void setGlintOnly(boolean glintOnly)
Set whether to render the stars and the image or only the stars.
glintOnly
- true to render only stars
setLength
public void setLength(int length)
Set the length of the stars.
setThreshold
public void setThreshold(float threshold)
Set the threshold value.
threshold
- the threshold value
toString
public String toString()