类 WarpFilter
- java.lang.Object
-
- org.meteoinfo.image.filter.AbstractBufferedImageOp
-
- org.meteoinfo.image.filter.WholeImageFilter
-
- org.meteoinfo.image.filter.WarpFilter
-
- 所有已实现的接口:
BufferedImageOp,Cloneable
public class WarpFilter extends WholeImageFilter
A filter for warping images using the gridwarp algorithm. You need to supply two warp grids, one for the source image and one for the destination image. The image will be warped so that a point in the source grid moves to its counterpart in the destination grid.
-
-
字段概要
-
从类继承的字段 org.meteoinfo.image.filter.WholeImageFilter
originalSpace, transformedSpace
-
-
构造器概要
构造器 构造器 说明 WarpFilter()Create a WarpFilter.WarpFilter(WarpGrid sourceGrid, WarpGrid destGrid)Create a WarpFilter with two warp grids.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidcrossDissolve(int[] pixels1, int[] pixels2, int width, int height, float t)protected int[]filterPixels(int width, int height, int[] inPixels, Rectangle transformedSpace)Actually filter the pixels.WarpGridgetDestGrid()Get the destination warp grid.intgetFrames()BufferedImagegetMorphImage()WarpGridgetSourceGrid()Get the source warp grid.floatgetTime()voidmorph(int[] srcPixels, int[] destPixels, int[] outPixels, WarpGrid srcGrid, WarpGrid destGrid, int width, int height, float t)voidsetDestGrid(WarpGrid destGrid)Set the destination warp grid.voidsetFrames(int frames)voidsetMorphImage(BufferedImage morphImage)For morphing, sets the image we're morphing to.voidsetSourceGrid(WarpGrid sourceGrid)Set the source warp grid.voidsetTime(float time)StringtoString()protected voidtransformSpace(Rectangle r)Calculate output bounds for given input bounds.-
从类继承的方法 org.meteoinfo.image.filter.WholeImageFilter
filter
-
从类继承的方法 org.meteoinfo.image.filter.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
-
-
-
-
方法详细资料
-
setSourceGrid
public void setSourceGrid(WarpGrid sourceGrid)
Set the source warp grid.- 参数:
sourceGrid- the source grid- 另请参阅:
getSourceGrid()
-
getSourceGrid
public WarpGrid getSourceGrid()
Get the source warp grid.- 返回:
- the source grid
- 另请参阅:
setSourceGrid(org.meteoinfo.image.filter.WarpGrid)
-
setDestGrid
public void setDestGrid(WarpGrid destGrid)
Set the destination warp grid.- 参数:
destGrid- the destination grid- 另请参阅:
getDestGrid()
-
getDestGrid
public WarpGrid getDestGrid()
Get the destination warp grid.- 返回:
- the destination grid
- 另请参阅:
setDestGrid(org.meteoinfo.image.filter.WarpGrid)
-
setFrames
public void setFrames(int frames)
-
getFrames
public int getFrames()
-
setMorphImage
public void setMorphImage(BufferedImage morphImage)
For morphing, sets the image we're morphing to. If not, set then we're just warping.
-
getMorphImage
public BufferedImage getMorphImage()
-
setTime
public void setTime(float time)
-
getTime
public float getTime()
-
transformSpace
protected void transformSpace(Rectangle r)
从类复制的说明:WholeImageFilterCalculate output bounds for given input bounds.- 覆盖:
transformSpace在类中WholeImageFilter- 参数:
r- input and output rectangle
-
filterPixels
protected int[] filterPixels(int width, int height, int[] inPixels, Rectangle transformedSpace)从类复制的说明:WholeImageFilterActually filter the pixels.- 指定者:
filterPixels在类中WholeImageFilter- 参数:
width- the image widthheight- the image heightinPixels- the image pixelstransformedSpace- the output bounds- 返回:
- the output pixels
-
morph
public void morph(int[] srcPixels, int[] destPixels, int[] outPixels, WarpGrid srcGrid, WarpGrid destGrid, int width, int height, float t)
-
crossDissolve
public void crossDissolve(int[] pixels1, int[] pixels2, int width, int height, float t)
-
-