This is a simple implementation of seam carving in C++. It requires OpenCV. Here is a video of the program in action.
The application takes 1 mandatory argument and 1 optional argument: <image> [vertical]
. An example of proper usage would be ./carve testimage.png
or ./carve testimage3.png vertical
.
The Makefile should be able to compile everything for you provided you have g++
, pkg-config
, and OpenCV installed and correctly configured. Simply run make
to compile everything into a binary named carver
. To clean the generated files, type make clean
This software is licensed under the LGPLv3. See LICENSE
for more information.