Package org.timomt
Class ImageTransformer
java.lang.Object
org.timomt.ImageTransformer
ImageTransformer:
utility class to perform matrix operations on BufferedImages.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
MATRIX_TARGETS: supported image target properties to be altered by matrix operations. -
Method Summary
Modifier and TypeMethodDescriptionstatic double
evaluate evaluates a String mathematicallystatic BufferedImage
transform
(BufferedImage image, double[][] matrix, ImageTransformer.MATRIX_TARGETS target) transform: performs the specified matrix transformation on the specified image.
-
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
evaluate evaluates a String mathematically- Parameters:
str
- the String to be evaluated- Returns:
- the resulting double
-