Class RotateClockwise180

  • All Implemented Interfaces:
    Rotation

    public class RotateClockwise180
    extends java.lang.Object
    implements Rotation
    Given an image, we'll rotate it by 180° in clockwise direction, using combination of two basic operations

    i ) First horizontally rotate image matrix ( H )

    ii ) Then vertically rotate image matrix ( V )

    R = result image = V( H ( Image ) ) = H( V ( Image ) )

    Note that : Unordered execution of previous two steps does result into same target image i.e. rotates image by 180° in clockwise direction

    • 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RotateClockwise180

        public RotateClockwise180()
    • Method Detail

      • rotate

        public java.awt.image.BufferedImage rotate​(java.awt.image.BufferedImage img)
        Specified by:
        rotate in interface Rotation
      • rotate

        public java.awt.image.BufferedImage rotate​(java.lang.String src)
        Specified by:
        rotate in interface Rotation