Seam Resizer
Features
Seam Resizer is an application that modifies the width to height ratio of images using seams, as described in the 2007 paper by Shai Avidan and Ariel Shamir. (see the
Seam Resizing Video they released for SIGGRAPH)
Seam Resizer is capable of inserting and removing seams in both Horizontal and Vertical directions, and of re-targetting an image to shift the focus of the image.
Note that this application is painfully slow as it is implemented in python (although you don't need to have python to run the application). To this end I have created a "Quick" method (still slow), which is quite good at removing seams, although it is recommended that you use the -b flag to use Best quality if you are inserting seams (or re-targetting). To use the Quick method for the command line version, pass the option -q.
Examples:
Here is the effect applied to a photo of some street art (photo from cesarastudillo at flickr). The middle photo is the origional. for more examples please read my blog posts
here and
here
At the moment I am only releasing pre-compiled binaries for specific platforms. (thanks to pyinstaller for this ability)
Eventually I hope to release some code, but once I have had time to really optimise the application. I will compile binaries for Linux and (hopefully) MacOSX soon
Please report any bugs via the comments on my blog.
Please read the
licence - note this is
Not released using an open-source licence, although you are free to distribute the software, but please distribute the accompanying readme file and licence.
Which Version?
I have uploaded a command line version and a version with a very simple GUI, both in zip and rar (slightly smaller) compressed packages. If you are uncertain then you probably want to download the Windows GUI version in a zip (top option)
| Platform |
Version |
Link |
| Windows (XP - may work on others) |
0.1 - Simple GUI |
.zip |
| Windows (XP - may work on others) |
0.1 - Simple GUI |
.rar (smaller download) |
| Windows (XP - may work on others) |
0.1 - Command Line |
.zip |
| Windows (XP - may work on others) |
0.1 - Command Line |
.rar (smaller download) |
Command Line Options
Usage: seamresizer [options] -p [number of pixels] inputfile.jpg outputfile.jpg
Options for the command line use of Seam Resizer are displayed by running "seamresizer -h" - options are:
-o (v or h) - use vertical or horizontal seams (horizontal by default)
-q, -b - use Quick or Best method.
-r, -i, -t - Remove, insert or retarget image.