hw/hw5/SeamCarver.java
private double[][] transpose(double[][] original) {

        double[][] transpose = new double[original[0].length][original.length];
        for (int i = 0; i < original.length; i += 1) {
            for (int j = 0; j < original[0].length; j += 1) {
                transpose[j][i] = original[i][j];
            }
        }
        return transpose;
    }
/**
     *  private helper method
     *
     *  transpose the current image to find horizontal seam
     */
private helper method
transpose the current image to find horizontal seam
private helper method transpose the current image to find horizontal seam
private double[][] transpose(double[][] original) {
        double[][] transpose = new double[original[0].length][original.length];
        for (int i = 0; i < original.length; i += 1) {
            for (int j = 0; j < original[0].length; j += 1) {
                transpose[j][i] = original[i][j];
            }
        }
        return transpose;
    }
private double [ ] [ ] transpose ( double [ ] [ ] original ) { double [ ] [ ] transpose = new double [ original [ 0 ] . length ] [ original . length ] ; for ( int i = 0 ; i < original . length ; i += 1 ) { for ( int j = 0 ; j < original [ 0 ] . length ; j += 1 ) { transpose [ j ] [ i ] = original [ i ] [ j ] ; } } return transpose ; }
private helper method
  transpose the current image to find horizontal seam
private helper method transpose the current image to find horizontal seam