Package in.itzmeanjan.filterit.affine
Class Rotate
- java.lang.Object
-
- in.itzmeanjan.filterit.affine.Rotate
-
public class Rotate extends java.lang.Object
Performs affine transformation - ROTATION on given image, keeps source image unmodified
-
-
Constructor Summary
Constructors Constructor Description Rotate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.image.BufferedImage
rotate(java.awt.image.BufferedImage img, double theta)
Rotates image by given angle ( in degrees ), performs concurrent processing of each row of image matrixjava.awt.image.BufferedImage
rotate(java.lang.String img, double theta)
Given an image by its file path, reads it, and rotates, rotated image is different than original i.e.
-
-
-
Method Detail
-
rotate
public java.awt.image.BufferedImage rotate(java.awt.image.BufferedImage img, double theta)
Rotates image by given angle ( in degrees ), performs concurrent processing of each row of image matrix- Parameters:
img
- Image to be rotatedtheta
- Angle of rotation in degree- Returns:
- Rotated buffered image, which is other than source image
-
rotate
public java.awt.image.BufferedImage rotate(java.lang.String img, double theta)
Given an image by its file path, reads it, and rotates, rotated image is different than original i.e. in place modification not done- Parameters:
img
- Path to image file to be rotatedtheta
- Angle of rotation in degrees- Returns:
- Rotated buffered image
-
-