Class ImageWarp


  • public final class ImageWarp
    extends Object
    Image warping algorithm. Deforms an image geometrically according to a given transformation formula.
    Since:
    11858
    • Method Detail

      • warp

        public static BufferedImage warp​(BufferedImage srcImg,
                                         Dimension targetDim,
                                         ImageWarp.PointTransform invTransform,
                                         ImageWarp.Interpolation interpolation)
        Warp an image.
        Parameters:
        srcImg - the original image
        targetDim - dimension of the target image
        invTransform - inverse transformation (translates pixel coordinates of the target image to pixel coordinates of the original image)
        interpolation - the interpolation method
        Returns:
        the warped image