Stoppt die Vorratsdatenspeicherung! Jetzt klicken & handeln!Willst du auch bei der Aktion teilnehmen? Hier findest du alle relevanten Infos und Materialien:

10 Portrait Tips

March 29, 2008 on 3:03 pm | In photography | No Comments

Eine kleines Filmchen mit 10 Tipps für bessere Portrait Fotos.



Seam Carving

September 14, 2007 on 8:31 pm | In english, hacking, open source, photography, science, technic | No Comments

About 3 weeks ago I saw the amazing Siggraph 2007 film from Dr. Ariel Shamir on YouTube. Immediately I downloaded the document from Shamirs webside. This takes about 5 hours download time for an about 20 MB PDF file. A lot of people was interested in Shamirs work at this time. :-) After reading the paper I understand how Shamir realized his idea. My big problem was my ignorance about image energy functions For example, history of Gradienst (HoG) is until now a unknown algorithm for me. After some days I saw the solution from Swieskowski in the net. He explained that he using a simple colour difference algorithm for the energy picture. That was something I learned in my study. Perfect, lets start the experiment to develop a small command line tool to shrunk the width of pictures. After some hours I generate the first shrunken pictures.
Emirates Towers
The Emirates Towers in Dubai. A really easy example. Because the shrunk algorithm just needs to remove the blue sky space between the towers. After that I tried this photo shot from the Colosseum in Roma
Three gladiatores
After that I realized that I am on the right way. Lets try a painting.
painting bad
Not bad, but here you see a problem. The face on the right picture is distorted. Dr. Shamir found a solution for that problem. He creates a mask for important areas . So I tried to do the same. I used GIMP to create the stencil picture.
painting bad
After rerun my small tool with the stencil picture the result is a shrunken picture without face distortion.
painting good
Another example with stencil.
rocket
The first picture is the origin, the second is shrunken by 20 pixel without a stencil picture. You see the problem with the left leg of the Fairy Dust at Chaos Communication Camp 2007. The third picture is also shrunken by 20 pixel put with the stencil picture. The fourth picture is the stencil picture.

Shamirs idea is genius and amazing easy to practise. My small hacked solution was done with C# under Linux, it took me about 3 evenings to develop this small solution. Bad is, that it is far away from realtime resizing.

Perhaps, I will start in some days a new GIMP PlugIn. Why not an open source content-aware image resizing plugin for GIMP. Shamir is currently doing the same for Adobe.

But first I need to learn more about image energy functions. Perhaps somebody knows some good documents about that. Especial I am very interested in the Histogram of Gradients and the e1 image energy function algorithm.

And now my small solution.

Source and mono executable

I put some of my experiments on Flickr tagged with seamcarvingopen. Perhaps some other users can upload there experience with my small tool. Good and bad examples are welcome. .

Powered by WordPress with Pool theme design by Borja Fernandez.
Entries and comments feeds. Valid XHTML and CSS. ^Top^