This is a Seam Carving (http://en.wikipedia.org/wiki/Seam_carving) project in OCaml.