Package com.jhlabs.image
Class GlintFilter
java.lang.Object
com.jhlabs.image.AbstractBufferedImageOp
com.jhlabs.image.GlintFilter
- All Implemented Interfaces:
BufferedImageOp
,Cloneable
A filter which renders "glints" on bright parts of the image.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfilter
(BufferedImage src, BufferedImage dst) float
Get the amount of glint.float
getBlur()
Set the blur that is applied before thresholding.Get the colormap to be used for the filter.float
boolean
Get whether to render the stars and the image or only the stars.int
Get the length of the stars.float
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
setCoverage
(float coverage) 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.toString()
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
-
Constructor Details
-
GlintFilter
public GlintFilter()
-
-
Method Details
-
getCoverage
public float getCoverage() -
setCoverage
public void setCoverage(float coverage) -
setThreshold
public void setThreshold(float threshold) Set the threshold value.- Parameters:
threshold
- the threshold value- See Also:
-
getThreshold
public float getThreshold()Get the threshold value.- Returns:
- the threshold value
- See Also:
-
setAmount
public void setAmount(float amount) Set the amount of glint.- Parameters:
amount
- the amount- See Also:
-
getAmount
public float getAmount()Get the amount of glint.- Returns:
- the amount
- See Also:
-
setLength
public void setLength(int length) Set the length of the stars.- Parameters:
length
- the length- See Also:
-
getLength
public int getLength()Get the length of the stars.- Returns:
- the length
- See Also:
-
setBlur
public void setBlur(float blur) Set the blur that is applied before thresholding.- Parameters:
blur
- the blur radius- See Also:
-
getBlur
public float getBlur()Set the blur that is applied before thresholding.- Returns:
- the blur radius
- See Also:
-
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- See Also:
-
getGlintOnly
public boolean getGlintOnly()Get whether to render the stars and the image or only the stars.- Returns:
- true to render only stars
- See Also:
-
setColormap
Set the colormap to be used for the filter.- Parameters:
colormap
- the colormap- See Also:
-
getColormap
Get the colormap to be used for the filter.- Returns:
- the colormap
- See Also:
-
filter
-
toString
-