Skip to content
Search

Seam carving

lastmod 2021-04-20created 2021-04-205 edits

Finds only the unimportant, repeating parts (seams) in an image and shrinks or expands them

Features

  • An image resizing method that keeps the size of important parts and removes only the background
  • Can also be used with a mask to remove only a specific object
  • The JS IMAGE CARVER web app is released as open source (implemented in TypeScript)
  • An article that explains how the algorithm basically works and shares the implementation code with detailed comments

Resizing options

Seam-carving-resizing-options.png

Demo

Seam-carving-demo-01.gif

Documentation

Seam Carving for Content-Aware Image Resizing
https://perso.crans.org/frenoy/matlab2012/seamcarving.pdf
Seam_Carving_for_Content-Aware_Image_Resizing.pdf

See also

Favorite site

References


  1. Content-aware_image_resizing_in_JavaScript_-_Trekhleb.pdf ↩

author Zer0 sitemap