Content-Aware-Seam-Carving

Effective resizing of images should not only use geometric constraints, but also consider the image content as well. We implement a method of content aware seam carving proposed by Shamir et al.[1] for reduction, expansion and object removal of the image.

animated

Requirements

1. OpenCV
2. Numpy
3. Matplotlib
4. Imageio

Results

Width Reduction and object removal

Original Image

Width Enlarge and object removal

Original Image

Reference-

  1. https://perso.crans.org/frenoy/matlab2012/seamcarving.pdf