Package org.timomt

Class ImageTransformer

java.lang.Object
org.timomt.ImageTransformer

public final class ImageTransformer extends Object
ImageTransformer: utility class to perform matrix operations on BufferedImages.
  • Method Details

    • transform

      public static BufferedImage transform(BufferedImage image, double[][] matrix, ImageTransformer.MATRIX_TARGETS target)
      transform: performs the specified matrix transformation on the specified image.
      Parameters:
      image - the image to be transformed.
      matrix - the transformation matrix.
      target - the image property to transform.
      Returns:
      the new transformed image.
    • evaluate

      public static double evaluate(String str)
      evaluate evaluates a String mathematically
      Parameters:
      str - the String to be evaluated
      Returns:
      the resulting double