Class RotateClockwise90
- java.lang.Object
-
- in.itzmeanjan.filterit.rotation.util.RotateClockwise90
-
- All Implemented Interfaces:
Rotation
public class RotateClockwise90 extends java.lang.Object implements Rotation
Given an image, we'll rotate it by 90° in clockwise direction, using combination of two basic operationsi ) First transpose image matrix ( T )
ii ) Then horizontally rotate image matrix ( H )
R = result image = H( T ( Image ) )
Note that : Step i & ii needs to be applied in ordered fashion, otherwise that will result into rotating image by 270° in clockwise direction
-
-
Constructor Summary
Constructors Constructor Description RotateClockwise90()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.image.BufferedImage
rotate(java.awt.image.BufferedImage img)
java.awt.image.BufferedImage
rotate(java.lang.String src)
-