@Test
    public void testEnergy() {
        Picture inputImg = new Picture("src\\tests\\seamcarver\\4x6.png");
        SeamCarver sc = new SeamCarver(inputImg);
        double[][] energy = new double[sc.width()][];
        energy[0] = new double[]{195075, 195075, 195075, 195075, 195075,
                                195075};
        energy[1] = new double[]{195075, 75990, 30002, 29515, 73403, 195075};
        energy[2] = new double[]{195075, 30003, 103046, 38273, 35399, 195075};
        energy[3] = new double[]{195075, 195075, 195075, 195075, 195075,
                                195075};
        for (int j = 0; j < sc.height(); j++) {
            for (int i = 0; i < sc.width(); i++) {
                assertEquals(energy[i][j], sc.energy(i, j), 1e-15);
            }
        }
    }