Java implementation of image resizing using seaming carving.