Seam Carving for content aware image resizing
by Aslak Grinsted
28 Aug 2007
(Updated 27 Sep 2007)
illustrative example of the seam carving algorithm.
|
Watch this File
|
| File Information |
| Description |
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. |
| Acknowledgements |
This submission has inspired the following:
Seam Carving for content aware image resizing: GUI implementation demo
|
| MATLAB release |
MATLAB 7 (R14)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 29 Aug 2007 |
Improved various small things suggested by Doug Hall and made some small optimizations.
* handle grayscale images
* add nice demo mode |
| 29 Aug 2007 |
Fixed a bug that prevented it to run outside demo-mode. |
| 29 Aug 2007 |
Changed costfunction to the same as used in the google video clip. works better for some images but slightly slower. |
| 27 Sep 2007 |
* Removed demo dependency on the image processing toolbox.
* Made compatible with older versions of matlab. |
|
Contact us at files@mathworks.com