类 GaussianFilter
- java.lang.Object
-
- org.meteoinfo.image.filter.AbstractBufferedImageOp
-
- org.meteoinfo.image.filter.ConvolveFilter
-
- org.meteoinfo.image.filter.GaussianFilter
-
- 所有已实现的接口:
BufferedImageOp,Cloneable
- 直接已知子类:
GlowFilter,HighPassFilter,UnsharpFilter
public class GaussianFilter extends ConvolveFilter
A filter which applies Gaussian blur to an image. This is a subclass of ConvolveFilter which simply creates a kernel with a Gaussian distribution for blurring.- 作者:
- Jerry Huxtable
-
-
字段概要
字段 修饰符和类型 字段 说明 protected KernelkernelThe convolution kernel.protected floatradiusThe blur radius.-
从类继承的字段 org.meteoinfo.image.filter.ConvolveFilter
alpha, CLAMP_EDGES, premultiplyAlpha, WRAP_EDGES, ZERO_EDGES
-
-
构造器概要
构造器 构造器 说明 GaussianFilter()Construct a Gaussian filter.GaussianFilter(float radius)Construct a Gaussian filter.
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 static voidconvolveAndTranspose(Kernel kernel, int[] inPixels, int[] outPixels, int width, int height, boolean alpha, boolean premultiply, boolean unpremultiply, int edgeAction)Blur and transpose a block of ARGB pixels.BufferedImagefilter(BufferedImage src, BufferedImage dst)floatgetRadius()Get the radius of the kernel.static KernelmakeKernel(float radius)Make a Gaussian blur kernel.voidsetRadius(float radius)Set the radius of the kernel, and hence the amount of blur.StringtoString()-
从类继承的方法 org.meteoinfo.image.filter.ConvolveFilter
convolve, convolve, convolveH, convolveHV, convolveV, createCompatibleDestImage, getBounds2D, getEdgeAction, getKernel, getPoint2D, getPremultiplyAlpha, getRenderingHints, getUseAlpha, setEdgeAction, setKernel, setPremultiplyAlpha, setUseAlpha
-
从类继承的方法 org.meteoinfo.image.filter.AbstractBufferedImageOp
clone, getRGB, setRGB
-
-
-
-
字段详细资料
-
radius
protected float radius
The blur radius.
-
kernel
protected Kernel kernel
The convolution kernel.
-
-
方法详细资料
-
setRadius
public void setRadius(float radius)
Set the radius of the kernel, and hence the amount of blur. The bigger the radius, the longer this filter will take.- 参数:
radius- the radius of the blur in pixels. min-value 0 max-value 100+- 另请参阅:
getRadius()
-
getRadius
public float getRadius()
Get the radius of the kernel.- 返回:
- the radius
- 另请参阅:
setRadius(float)
-
filter
public BufferedImage filter(BufferedImage src, BufferedImage dst)
- 指定者:
filter在接口中BufferedImageOp- 覆盖:
filter在类中ConvolveFilter
-
convolveAndTranspose
public static void convolveAndTranspose(Kernel kernel, int[] inPixels, int[] outPixels, int width, int height, boolean alpha, boolean premultiply, boolean unpremultiply, int edgeAction)
Blur and transpose a block of ARGB pixels.- 参数:
kernel- the blur kernelinPixels- the input pixelsoutPixels- the output pixelswidth- the width of the pixel arrayheight- the height of the pixel arrayalpha- whether to blur the alpha channeledgeAction- what to do at the edges
-
makeKernel
public static Kernel makeKernel(float radius)
Make a Gaussian blur kernel.- 参数:
radius- the blur radius- 返回:
- the kernel
-
toString
public String toString()
- 覆盖:
toString在类中ConvolveFilter
-
-