类 FBMFilter
- java.lang.Object
-
- org.meteoinfo.image.filter.AbstractBufferedImageOp
-
- org.meteoinfo.image.filter.PointFilter
-
- org.meteoinfo.image.filter.FBMFilter
-
- 所有已实现的接口:
BufferedImageOp,Cloneable
public class FBMFilter extends PointFilter implements Cloneable
A filter which produces textures from fractal Brownian motion.
-
-
字段概要
字段 修饰符和类型 字段 说明 static intCELLULARstatic intNOISEprotected Randomrandomstatic intRIDGEDstatic intSCNOISEstatic intVLNOISE-
从类继承的字段 org.meteoinfo.image.filter.PointFilter
canFilterIndexColorModel
-
-
构造器概要
构造器 构造器 说明 FBMFilter()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 BufferedImagefilter(BufferedImage src, BufferedImage dst)intfilterRGB(int x, int y, int rgb)floatgetAmount()Get the amount of texture.floatgetAngle()Returns the angle of the texture.Function2DgetBasis()intgetBasisType()floatgetBias()ColormapgetColormap()Get the colormap to be used for the filter.floatgetGain()floatgetH()floatgetLacunarity()floatgetOctaves()intgetOperation()floatgetScale()Returns the scale of the texture.floatgetStretch()Returns the stretch factor of the texture.protected FBMmakeFBM(float H, float lacunarity, float octaves)voidsetAmount(float amount)Set the amount of effect.voidsetAngle(float angle)Specifies the angle of the texture.voidsetBasis(Function2D basis)voidsetBasisType(int basisType)voidsetBias(float bias)voidsetColormap(Colormap colormap)Set the colormap to be used for the filter.voidsetGain(float gain)voidsetH(float H)voidsetLacunarity(float lacunarity)voidsetOctaves(float octaves)voidsetOperation(int operation)voidsetScale(float scale)Specifies the scale of the texture.voidsetStretch(float stretch)Specifies the stretch factor of the texture.StringtoString()-
从类继承的方法 org.meteoinfo.image.filter.PointFilter
setDimensions
-
从类继承的方法 org.meteoinfo.image.filter.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
-
-
-
-
方法详细资料
-
setAmount
public void setAmount(float amount)
Set the amount of effect.- 参数:
amount- the amount min-value 0 max-value 1- 另请参阅:
getAmount()
-
getAmount
public float getAmount()
Get the amount of texture.- 返回:
- the amount
- 另请参阅:
setAmount(float)
-
setOperation
public void setOperation(int operation)
-
getOperation
public int getOperation()
-
setScale
public void setScale(float scale)
Specifies the scale of the texture.- 参数:
scale- the scale of the texture. min-value 1 max-value 300+- 另请参阅:
getScale()
-
getScale
public float getScale()
Returns the scale of the texture.- 返回:
- the scale of the texture.
- 另请参阅:
setScale(float)
-
setStretch
public void setStretch(float stretch)
Specifies the stretch factor of the texture.- 参数:
stretch- the stretch factor of the texture. min-value 1 max-value 50+- 另请参阅:
getStretch()
-
getStretch
public float getStretch()
Returns the stretch factor of the texture.- 返回:
- the stretch factor of the texture.
- 另请参阅:
setStretch(float)
-
setAngle
public void setAngle(float angle)
Specifies the angle of the texture.- 参数:
angle- the angle of the texture.- 另请参阅:
getAngle()
-
getAngle
public float getAngle()
Returns the angle of the texture.- 返回:
- the angle of the texture.
- 另请参阅:
setAngle(float)
-
setOctaves
public void setOctaves(float octaves)
-
getOctaves
public float getOctaves()
-
setH
public void setH(float H)
-
getH
public float getH()
-
setLacunarity
public void setLacunarity(float lacunarity)
-
getLacunarity
public float getLacunarity()
-
setGain
public void setGain(float gain)
-
getGain
public float getGain()
-
setBias
public void setBias(float bias)
-
getBias
public float getBias()
-
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)
-
setBasisType
public void setBasisType(int basisType)
-
getBasisType
public int getBasisType()
-
setBasis
public void setBasis(Function2D basis)
-
getBasis
public Function2D getBasis()
-
makeFBM
protected FBM makeFBM(float H, float lacunarity, float octaves)
-
filter
public BufferedImage filter(BufferedImage src, BufferedImage dst)
- 指定者:
filter在接口中BufferedImageOp- 覆盖:
filter在类中PointFilter
-
filterRGB
public int filterRGB(int x, int y, int rgb)- 指定者:
filterRGB在类中PointFilter
-
-