7 Downloads
Updated 27 Sep 2007
No License
Editor's Note: This was a File Exchange Pick of the Week
illustrative example of Seam carving for content aware image resizing
usage: carvedimg=seamcarving(im,k)
k is how many vertical seams to remove.
im is the image.
example:
img=imread('peppers.png')
carvedimg=seamcarving(img,50)
image([carvedimg img]);
axis equal;
Author: Aslak Grinsted 2007...
Based on ideas from Avidan & Shamir:
http://video.google.com/videoplay?docid=-6221880321193117495
Note i haven't read their paper and they have probably lots of smart tricks for optimizations.
Aslak Grinsted (2021). Seam Carving for content aware image resizing (https://www.mathworks.com/matlabcentral/fileexchange/16123-seam-carving-for-content-aware-image-resizing), MATLAB Central File Exchange. Retrieved .
Inspired: Seam Carving for content aware image resizing: GUI implementation demo
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Create scripts with code, output, and formatted text in a single executable document.
sir is it vertical seam carving is possible
Really nice piece of code. Works like a charm!
great work!!! How do you increase the size of the image... I see only seam removal...
great!
It only requires image processing toolbox in order to load the demo images. Try loading one of your own and applying it to that instead. --Anyway i have tried to remove this dependency in a new version just uploaded.
Requires Image Processing Toolbox!