Log in

View Full Version : Seamer : Seam Carving Plugin


vcmohan
11th March 2008, 10:20
Considerable interest was generated when a new technique named as "Seam Carving for Content-Aware Image Resizing"
was presented in a paper by Shai Avidan and Ariel Shamir. Recently there was a reference to seam carving in one of Avisynth threads also.

On seeing this post in this forum, due to curiosity I attempted two approaches to acheive seam carving in a fully unsupervised mode. The results are displayed here. They are most unsatisfactory. The reason being that I have yet to formulate a criterion as to what is a valid or acceptable seam that is universally ( or largely) suitable for carving. May be some one guides me in this.

Below are two sets of images. Each set shows the input image, and 4 variants of seam carving, using the two functions RSeamer and WSeamer of Seamer plugin.
set 1 :

http://img354.imageshack.us/img354/9923/seamerin10ez4.th.jpg (http://img354.imageshack.us/my.php?image=seamerin10ez4.jpg)

http://img354.imageshack.us/img354/7469/seamerout10cf3.th.jpg (http://img354.imageshack.us/my.php?image=seamerout10cf3.jpg)

set 2:
http://img354.imageshack.us/img354/5885/seamerin20vg2.th.jpg (http://img354.imageshack.us/my.php?image=seamerin20vg2.jpg)

http://img395.imageshack.us/img395/2274/seamerout20ss5.th.jpg (http://img395.imageshack.us/my.php?image=seamerout20ss5.jpg)

The above images were produced using script below in addition to usual source, crop, stack etc.

sm1 = wseamer(im1, x = 480,y = 350, max = true,nw = 2, test = 0)
sm2 = wseamer(im1, x = 480,y = 350, max = false,nw = 2, test = 0)
sm3 = Rseamer(im1, x = 480,y = 350, max = true,nw = 22, test = 0)
sm4 = Rseamer(im1, x = 480,y = 350, max = false,nw = 2, test = 0)

vcmohan
18th March 2008, 12:15
This Seamer plugin has been revamped completely. It is now having two functions viz. TRSeamer and WSSeamer.

It is possible to reduce as well as enlarge images. The results are:
enlarge width, reduce height by both functions. TRSeamer on top.

http://img80.imageshack.us/img80/3396/seamerboth0kj4.th.jpg (http://img80.imageshack.us/my.php?image=seamerboth0kj4.jpg)

Enlarging both w and h by TRSeamer.
http://img80.imageshack.us/img80/4049/seamerenlarge0zs7.th.jpg (http://img80.imageshack.us/my.php?image=seamerenlarge0zs7.jpg)

Reducing both w and h by TRSeamer
http://img147.imageshack.us/img147/7955/seamerreduce0tq1.th.jpg (http://img147.imageshack.us/my.php?image=seamerreduce0tq1.jpg)

The functions run very slow. No supervision is possible as of now.

SSH4
27th September 2010, 19:07
Wow!
And no one reply!
On Adobe CS5 it called Content Aware Scaling
Thanx! I want play with 4x3 -> 16x9 conversions :)

Mounir
29th September 2010, 19:02
What's the purpose of such plugin? Enlighten me.

I don't know but generating waves and other weird effetcs in a picture don't make "tilt" in my head.