类 GlintFilter
- java.lang.Object
-
- org.meteoinfo.image.filter.AbstractBufferedImageOp
-
- org.meteoinfo.image.filter.GlintFilter
-
- 所有已实现的接口:
java.awt.image.BufferedImageOp,java.lang.Cloneable
public class GlintFilter extends AbstractBufferedImageOp
A filter which renders "glints" on bright parts of the image.
-
-
构造器概要
构造器 构造器 说明 GlintFilter()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 java.awt.image.BufferedImagefilter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)floatgetAmount()Get the amount of glint.floatgetBlur()Set the blur that is applied before thresholding.ColormapgetColormap()Get the colormap to be used for the filter.booleangetGlintOnly()Get whether to render the stars and the image or only the stars.intgetLength()Get the length of the stars.floatgetThreshold()Get the threshold value.voidsetAmount(float amount)Set the amount of glint.voidsetBlur(float blur)Set the blur that is applied before thresholding.voidsetColormap(Colormap colormap)Set the colormap to be used for the filter.voidsetGlintOnly(boolean glintOnly)Set whether to render the stars and the image or only the stars.voidsetLength(int length)Set the length of the stars.voidsetThreshold(float threshold)Set the threshold value.java.lang.StringtoString()-
从类继承的方法 org.meteoinfo.image.filter.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
-
-
-
-
方法详细资料
-
setThreshold
public void setThreshold(float threshold)
Set the threshold value.- 参数:
threshold- the threshold value- 另请参阅:
getThreshold()
-
getThreshold
public float getThreshold()
Get the threshold value.- 返回:
- the threshold value
- 另请参阅:
setThreshold(float)
-
setAmount
public void setAmount(float amount)
Set the amount of glint.- 参数:
amount- the amount min-value 0 max-value 1- 另请参阅:
getAmount()
-
getAmount
public float getAmount()
Get the amount of glint.- 返回:
- the amount
- 另请参阅:
setAmount(float)
-
setLength
public void setLength(int length)
Set the length of the stars.- 参数:
length- the length- 另请参阅:
getLength()
-
getLength
public int getLength()
Get the length of the stars.- 返回:
- the length
- 另请参阅:
setLength(int)
-
setBlur
public void setBlur(float blur)
Set the blur that is applied before thresholding.- 参数:
blur- the blur radius- 另请参阅:
getBlur()
-
getBlur
public float getBlur()
Set the blur that is applied before thresholding.- 返回:
- the blur radius
- 另请参阅:
setBlur(float)
-
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- 另请参阅:
getGlintOnly()
-
getGlintOnly
public boolean getGlintOnly()
Get whether to render the stars and the image or only the stars.- 返回:
- true to render only stars
- 另请参阅:
setGlintOnly(boolean)
-
setColormap
public void setColormap(Colormap colormap)
Set the colormap to be used for the filter.- 参数:
colormap- the colormap- 另请参阅:
getColormap()
-
getColormap
public Colormap getColormap()
Get the colormap to be used for the filter.- 返回:
- the colormap
- 另请参阅:
setColormap(org.meteoinfo.image.filter.Colormap)
-
filter
public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)
-
toString
public java.lang.String toString()
- 覆盖:
toString在类中java.lang.Object
-
-