Tag Archive for 'seam carving'

Optimized Seam Carving

Mario Klingemann did an awesome job on the seam carving demo I posted this weekend. He removed a lot of dirty stuff from the code and optimized it very well. You can get a full explanation on his blog.

As Mario mentions we are looking also in a technique that allows us to expand images. At the end the code is still not organized at all. A lot of performance can be gained with appropriate memory management. We keep you posted.

By the way there are still one or two tickets left for our rent an idea workshop! Last chance to have André, Mario and me for one day introducing you into this kind of stuff.

Content-aware image resizing

There is currently a lot of hype around this paper by Dr. Ariel Shamir and Dr. Shai Avidan. Honestly — it really kicks ass. This is a realy nice idea and I can absolutely understand Adobe just hired one of them direclty. Now there is a online demo of this available. Unfortunately it misses some source-code to look into and possibly optimize it.

So I did my own version. Basically this is a slim-version of the original technique. Image is converted to grayscale and a convolution matrix is used to find the pixel’s energy levels. Then the seams are created as the paper describes it … sort of :-). At the end the seam with the lowest energy is picked and removed.

The code is very ugly, not documented at all and not optimized. But it is also saturday night and I should be out drinking a beer already. You can press a key in the online demo to change the scale direction or click to reset it. If you can improve something do not be shy and post it.

Update: Here is another demo that shows the effect even better.

Update 2: Make sure to follow the joint venture from Mario and me.




Close
E-mail It