Entscheider / SeamEater

Do some Seam Carving

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Seameater

Seameater is a python program that implements some algorithm described on this site and on the paper "Seam Carving for Content-Aware Image Resizing" by Shai Avidan and Ariel Shamir. E.g.

  • Remove objects seamlessly in pictures by decreasing the picture size
  • Remove objects in the gradient domain (needs a lot of memory)
  • Enlarge/Downsize a picture by enlarging/downsizing the background
  • Amplify the content of pictures

This application depends on Numpy, Scipy, imageio and PyQt4 or PyQt5. Because it is mainly written in pure Python, be warned: it is not as fast as you may wish. However, some code may be helpful for analysis.

How to run

Clone this repository and install the dependencies if necessary. Then go to the source directory and run python3 main.py.

It is possible to use a faster seam finding algorithm by compiling the Cython-Extension. To do that, you have to install cython, run python3 setup.py build_ext --inplace and restart the application.

Screenshots

  • Enlarge image
  • Remove Content
  • Amplify content

License

The code is licensed under GPLv3.

About

Do some Seam Carving

License:GNU General Public License v3.0


Languages

Language:Python 100.0%