Skip to content

sortraev/omp_seam_carving

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

seam carving

C++ implementation of seam carving (content-aware resizing of images).

The implementation:

  • uses index wrapping to compute energies at image boundaries.
  • is parallelized using OpenMP (where applicable and beneficial) but not particularly optimized.
  • currently only carves vertical seams, and, due to uint32 overflow, handles only images which are less than 22000 pixels in the height.
  • takes (almost) any image file type as input, but only outputs PNG.

Usage:

./run.sh <input filename> <output filename> <num seams to carve>

To see an example, take pano.jpg[1] from images/, carve 400 seams from it, and store the result in images/pano-out.png like so:

./run.sh images/pano.jpg images/pano-out.png 400

[1] https://shwestrick.github.io/2020/07/29/seam-carve.html

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published