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)
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)