CodingTrain / CodingTrain/Suggestion-Box

Seam Carving / Content Aware Scaling

Open
#1,848 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
570
Forks
85
PR merge metrics
No merged PRs in 30d

Description

My introduction was this 2007 SIGGRAPH paper and talk

https://dl.acm.org/doi/10.1145/1275808.1276390

https://youtu.be/6NcIJXTlugc

The basic concept is to add or remove "seams" of connected single-pixel rows or columns for better scaling/resizing. The Wikipedia article also has a pretty good explanation and examples.

https://en.wikipedia.org/wiki/Seam_carving

Before and after examples from Wikipedia:

![A wide angle shot of a castle and a person on a hill with sky. The person and castle are far apart in frame.](https://github.com/user-attachments/assets/151d5507-3ef7-4b25-9255-2e885368ec23)

![Same shot as above, but the castle and person are closer together. The person and castle both have the same proportions as above with very little artifacting.](https://github.com/user-attachments/assets/3f868ae8-edae-42d0-b3b1-ce2c9e7502f9)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.