@Test
    public void testPerformance() {
        Picture inputImg = new Picture("src\\tests\\seamcarver\\HJocean.png");
        System.out.printf("image is %d columns by %d rows\n",
                inputImg.width(), inputImg.height());
        SeamCarver sc = new SeamCarver(inputImg);

        Stopwatch sw = new Stopwatch();
        int removeRows = 100;
        for (int i = 0; i < removeRows; i++) {
            int[] horizontalSeam = sc.findHorizontalSeam();
            sc.removeHorizontalSeam(horizontalSeam);
        }

        int removeColumns = 100;
        for (int i = 0; i < removeColumns; i++) {
            int[] verticalSeam = sc.findVerticalSeam();
            sc.removeVerticalSeam(verticalSeam);
        }
        //Picture outputImg = sc.picture();
        System.out.printf("new image size is %d columns by %d rows\n",
                sc.width(), sc.height());
        System.out.println("Resizing time: " + sw.elapsedTime() + " seconds.");
    }