类 WarpFilter

  • 所有已实现的接口:
    java.awt.image.BufferedImageOp, java.lang.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.
    • 构造器详细资料

      • WarpFilter

        public WarpFilter()
        Create a WarpFilter.
      • WarpFilter

        public WarpFilter​(WarpGrid sourceGrid,
                          WarpGrid destGrid)
        Create a WarpFilter with two warp grids.
        参数:
        sourceGrid - the source grid
        destGrid - the destination grid
    • 方法详细资料

      • setSourceGrid

        public void setSourceGrid​(WarpGrid sourceGrid)
        Set the source warp grid.
        参数:
        sourceGrid - the source grid
        另请参阅:
        getSourceGrid()
      • setDestGrid

        public void setDestGrid​(WarpGrid destGrid)
        Set the destination warp grid.
        参数:
        destGrid - the destination grid
        另请参阅:
        getDestGrid()
      • setFrames

        public void setFrames​(int frames)
      • getFrames

        public int getFrames()
      • setMorphImage

        public void setMorphImage​(java.awt.image.BufferedImage morphImage)
        For morphing, sets the image we're morphing to. If not, set then we're just warping.
      • getMorphImage

        public java.awt.image.BufferedImage getMorphImage()
      • setTime

        public void setTime​(float time)
      • getTime

        public float getTime()
      • transformSpace

        protected void transformSpace​(java.awt.Rectangle r)
        从类复制的说明: WholeImageFilter
        Calculate output bounds for given input bounds.
        覆盖:
        transformSpace 在类中 WholeImageFilter
        参数:
        r - input and output rectangle
      • filterPixels

        protected int[] filterPixels​(int width,
                                     int height,
                                     int[] inPixels,
                                     java.awt.Rectangle transformedSpace)
        从类复制的说明: WholeImageFilter
        Actually filter the pixels.
        指定者:
        filterPixels 在类中 WholeImageFilter
        参数:
        width - the image width
        height - the image height
        inPixels - the image pixels
        transformedSpace - 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)
      • toString

        public java.lang.String toString()
        覆盖:
        toString 在类中 java.lang.Object