Skip to content

davidirobinson/image-retargeting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image Retargeting

A C++ implementation of the seam carving algorithm to perform content-aware image resizing. The algorithm works by searching for the lowest energy 'seam' in the image using dynamic programming techniques, and then removing that seam to reduce the size of the image, as below.

seam-carving-demo

Usage

Dependencies

Build

mkdir -p build && cd build/
cmake .. && make -j<#-cores>

Run

cd build/
./src/seam_carving_demo -i <path-to-image> -w <%-width> -h <%-height>

Releases

No releases published

Packages

No packages published