/**
 * Example program that uses SeamCarver.
 *
 * @author Chris Mayfield
 * @version 01/29/2022
 */
public class Main {

    /**
     * Read an image from a file and shrink its size.
     * 
     * @param args command-line arguments
     */
    public static void main(String[] args) {
        Picture p = new Picture("HJoceanSmall.png");
        SeamCarver s = new SeamCarver(p);
        for (int i = 0; i < 150; i++) {
            int[] seam = ProvidedCode.findVerticalSeam(s);
            s.removeVerticalSeam(seam);
        }
        s.getPicture().show();
    }

}
