Class Transpose


  • public class Transpose
    extends java.lang.Object
    Given a buffered image we'll transpose it, as we do in case of matrix, because 2D image is nothing but a matrix

    Assume we've this matrix 2x2 matrix

    2 | 3

    6 | 7

    Transpose of it,

    2 | 6

    3 | 7

    i.e. rows get into position of columns / columns get into position of rows

    • Constructor Summary

      Constructors 
      Constructor Description
      Transpose()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.awt.image.BufferedImage transpose​(java.awt.image.BufferedImage img)
      Performs transpose of image, returns transposed buffered image
      java.awt.image.BufferedImage transpose​(java.lang.String src)
      Given path to a image file, transposed buffered image to be returned
      • Methods inherited from class java.lang.Object

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

      • Transpose

        public Transpose()
    • Method Detail

      • transpose

        public java.awt.image.BufferedImage transpose​(java.awt.image.BufferedImage img)
        Performs transpose of image, returns transposed buffered image
      • transpose

        public java.awt.image.BufferedImage transpose​(java.lang.String src)
        Given path to a image file, transposed buffered image to be returned