类 BinaryFilter
- java.lang.Object
-
- org.meteoinfo.image.filter.AbstractBufferedImageOp
-
- org.meteoinfo.image.filter.WholeImageFilter
-
- org.meteoinfo.image.filter.BinaryFilter
-
- 所有已实现的接口:
java.awt.image.BufferedImageOp,java.lang.Cloneable
- 直接已知子类:
DilateFilter,ErodeFilter,LifeFilter,OutlineFilter,SkeletonFilter
public abstract class BinaryFilter extends WholeImageFilter
The superclass for some of the filters which work on binary images.
-
-
字段概要
字段 修饰符和类型 字段 说明 protected BinaryFunctionblackFunctionprotected Colormapcolormapprotected intiterationsprotected intnewColor-
从类继承的字段 org.meteoinfo.image.filter.WholeImageFilter
originalSpace, transformedSpace
-
-
构造器概要
构造器 构造器 说明 BinaryFilter()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 BinaryFunctiongetBlackFunction()ColormapgetColormap()Get the colormap to be used for the filter.intgetIterations()Get the number of iterations the effect is performed.intgetNewColor()voidsetBlackFunction(BinaryFunction blackFunction)voidsetColormap(Colormap colormap)Set the colormap to be used for the filter.voidsetIterations(int iterations)Set the number of iterations the effect is performed.voidsetNewColor(int newColor)-
从类继承的方法 org.meteoinfo.image.filter.WholeImageFilter
filter, filterPixels, transformSpace
-
从类继承的方法 org.meteoinfo.image.filter.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
-
-
-
-
字段详细资料
-
newColor
protected int newColor
-
blackFunction
protected BinaryFunction blackFunction
-
iterations
protected int iterations
-
colormap
protected Colormap colormap
-
-
方法详细资料
-
setIterations
public void setIterations(int iterations)
Set the number of iterations the effect is performed.- 参数:
iterations- the number of iterations- 另请参阅:
getIterations()
-
getIterations
public int getIterations()
Get the number of iterations the effect is performed.- 返回:
- the number of iterations
- 另请参阅:
setIterations(int)
-
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)
-
setNewColor
public void setNewColor(int newColor)
-
getNewColor
public int getNewColor()
-
setBlackFunction
public void setBlackFunction(BinaryFunction blackFunction)
-
getBlackFunction
public BinaryFunction getBlackFunction()
-
-