Skip to content

Content aware image resizing;Resize images while keeping main subject focused and undistorted

Notifications You must be signed in to change notification settings

DWShuo/Content-aware-image-resizing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Content aware image resizing (seam carving)

Ordinarily when a image is resized each pixel is treated equally, meaning everthing gets reduced or increased by the same amount. This leads to weird distortions to the subject of the image.

In 2007 a paper titled “Seam Carving for Content-Aware Image Resizing” was published, which suggested resizing along seams of low energy. A vertical seam is defined in this case as one pixel per row and each pixel being 8-connected (pixels in adjacent rows differ by at most one column).

My blog post with more details

Original images

snow lib

Examples of seams

snow lib

Final side by side comparison

snow lib

About

Content aware image resizing;Resize images while keeping main subject focused and undistorted

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages