illustrative example of Seam carving for content aware image resizing
k is how many vertical seams to remove.
im is the image.
Author: Aslak Grinsted 2007...
Based on ideas from Avidan & Shamir:
Note i haven't read their paper and they have probably lots of smart tricks for optimizations.
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...
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!
* Removed demo dependency on the image processing toolbox.
Changed costfunction to the same as used in the google video clip. works better for some images but slightly slower.
Fixed a bug that prevented it to run outside demo-mode.
Improved various small things suggested by Doug Hall and made some small optimizations.
Create scripts with code, output, and formatted text in a single executable document.