Readers of this blog might know that I’m an avid user of hugin. Like every year since 2007, hugin participates in the Google Summer of Code, a global program that offers student developers stipends to write code for various open source software projects. In the past years Yuval Levy and Alexandre Prokudine [0] spearheaded the GSoC effort for hugin.
Since I’m no programmer I wanted to give back something to the community and will act as this years main admin, while Bruno Postle will act as a backup.
So, if you know a student that would like to participate in a neat, C and C++-based project this summer, let her or him know about our mentoring page for GSoC: Hugin — Panorama Photo Stitcher
And just to be complete: The text below just went to the hugin mailing list, the call for Students.
[0]: Now of darktable–fame, as seen here.
—-
Dear prospective Students
Hugin has been accepted as a mentoring organization in the upcoming Google Summer of Code 2011. This email is the official call for students:
As Yuval already described in a blog post [1], would-be participants need to get to work soon. The earlier, the better.
Familiarize yourself with the hugin codebase, think of an itch that bothers you and how you could help to get rid of that itch. You need to work on your application, voice up and introduce yourself to the mailing list. We have a dedicated page on the panotools wiki that describes the way to go [2].
Remember, the deadline for your application is April 8 19:00 UTC, this is in two and a half weeks!
Looking forward to hear from you
For the whole hugin-team
Habi, GSoC-Admin
Vergangenes Wochenende war ich mit dem Unisport auf eine Hochtour über den Triftgletscher. Leider war das Wetter nicht gut genug, um wirklich tolle Fotos zu machen, ein paar schöne sind trotzdem zusammengekommen, sie sind in diesem Set auf flickr.com zu finden.
In den Pausen hab’ einen alten Trick von mir ausprobiert und habe zwei kurze Filme gemacht, aus denen dann zwei Panoramas entstanden sind.
Das kurze Original sieht so aus:
Nachdem ich mit Quicktime Pro die Bilder extrahiert habe, konnte ich das Rohmaterial mit hugin ausrichten, so dass die Einzelbilder des Films rund um den Betrachter angeordnet werden. Das sieht dann folgendermassen aus:
Nach längerer Rechnerei entsteht dann untenstehendes 360°-Panorama auf dem Triftgletscher. Das Panorama ist auch immersiv (leider nur mit Flash) in meinem Panorama-Ordner hier auf dem Server zu finden.
bastian hat mir sein Nikon 10.5mm f/2.8 DX Fisheye-objektiv ausgeliehen, damit ich mal ein fisheye ausprobieren kann, dass ich nicht komplett manuell einstellen muss. mit meinem zenitar bin ich zwar sehr zufrieden, es macht auch gelungene fotos, verlangt aber nach einer vollständig manuellen einstellung und das ist zuweilen schon ein bisschen mühsam.
am donnerstag abend bin ich also mit bastians objektiv auf eine ganz kleine foto-safari, welche mich angeregt hat, zu sparen, denn so ein objektiv hat schon noch ‘was. mit minimalem aufwand (9 fotos auf dem stativ) gelingen aufnahmen wie diese vom uni hauptgebäude, eine komplette rundumsicht auf der uniterrasse:
richtig spannend wird’s erst, wenn man bilder wie dieses weiterverarbeitet: erstens kann mann mit spincontrol:vr immersive panoramas machen, was dann aussieht wie hier zu sehen. noch lustiger wird’s, wenn mann das 360°x180°-panorama-bild zu einem sogenannten kleinen planeten umrechnet, dann sieht das uni-hauptgebäude aus, als wäre es einem comic-strip entsprungen:
bastian hat die vorabversion dieses panoramas schon gesehen und meinte der himmel wäre noch besser zur geltung gekommen, wenn ich die blende etwas zurückgenommen hätte. beim zweiten panorama habe ich gerade vorgesorgt und ein etwas komplexeres setup gemacht.
auf dem bundesplatz habe ich für jedes der neun fotos drei belichtungen gemacht, einmal normal und je einmal über– und unterbelichtet. diese panoramas wurden dann zusammengerechnet, so dass der dramatische himmel ein bisschen besser zur geltung kommt als auf der uniterrasse. das panorama des bundesplatzes gibts auch noch in einer immersiven version sowie als little planet. bei diesem kleinen planeten habe ich mit der von mir gewählten ausrichtung der kamera ein bisschen gekämpft, also musste ich beim nadir-punkt (ganz unten bzw. ganz in der mitte beim kleinen planeten) ein bisschen tricksen. dafür hat’s jetzt noch die credits drin :)
whenever i’m spending a day outdoor, i love to take pictures, many of them turn out to be panoramas.
sometimes i leave my camera at home and only have my mobile phone with me. shoothing panoramas with the iphone is possible with panolab [link opens itunes], but very cumbersome. and i try to keep the annoyance of nina as low as possible while stopping on the slopes, so fiddling with my phone for longer than a minute or two is not an option.
recently i was thinking about a quick-and-dirty way of creating panorams with the iphone: wouldn’t it be possible to extract the images of a movie shot while panning the scenery and stitch those together to generate a panorama? today was the perfect way to test this out, on the slopes of the wonderful stockhorn.
the whole process is fairly easy, you only need
all these — very fine — pieces of software are freely available, most of them even free as in beer and as in speech.
step 1:
shoot a movie.
below are the movies i’ve used for this tutorial. both are made with the excellent cycoder.app, only for jailbroken iphones. use any other movie if you don’t have an iphone :) the movies are 384x288 pixels in size, as shown below, just press the play-button.
step 2:
get the movies off your iphone.
cyberduck and SFTP are my weapons of choice, YMMV, but there are tons of tutorials on the web, here’s one for the mac and here’s one for windows.
now you should have some movies on your hard-disk. cycoder has the nice feature to produce quicktime-compatible .mov-files, if you don’t have one of those handy, again, YMMV. (use the excellent handbrake to convert to and fro). quicktime is nice for the next step.
step 3:
import the movies into imageJ.
if you’re on a mac, this is just simple drag-and-drop, on windows you might be quicker altogether if you convert your movies to .avi-files, since installing quicktime for java can be a bit of a hassle, but can be done.
this opens your quicktime movie as a stack of images you can then scroll through. this image-stack can then easily be exported as an image-sequence using “File > Save as > Image Sequence…”. rotate the images if you’ve been dumb enough to hold the iphone wrong :)
then you’ll have a bunch of single images on your harddisk. if you’ve panned quite slowly like i have done, you’re probably gonna have much too many images (167 for the first and 139 for the second movie) to easily stich a panorama. for these movies, i’ve removed some images from the stack using the slice remover plugin. remove slices that are unnecessary like the ones at the beginning and the end, where your glove covers the lens. now having 20 and 32 images from both movies, proceed to the next step.
step 4:
import the images from the step above into hugin, align and stitch.
yes, that’s it, it’s really that easy.for the movies shown above i’ve also deleted some bad control points and stitched the panoramas normally and enfused, but this is entirely optional.the end-result looks like the images below. click them to see them bigger.
i know that both panoramas are not perfect. both are quite small, especially the second one has some artifacts and both have varying exposure. but keep in mind that i’ve only bothered nina for 29 seconds, the total time of both movies. not too shabby!
update:
arru from sweden left a comment about extracting the frames of videos using VLC, which is great, because it plays pretty much any movie-format.
since i couldn’t find it, i asked him to outline it for me via email. he agreed that i share his howto, which you can find below:
Extract frames in VLC:
- Open VLC preferences, select “all” (as opposed to “basic”)
- Go to Video->Output modules
- Select ‘Image video output’ (this must be reverted to ‘standard’ when you’re done, to use VLC as a normal video player again)
- Flip down the subgroup next to Output modules and select ‘Image file’
- Choose ‘PNG’ as format (JPEG works too, but there will be some unnecessary quality loss)
- Set ‘recording ratio’ to 10 (determines the number of video frames skipped between images — may need to experiment with this value if images don’t overlap correctly)
- Press ‘save’ to exit VLC preferences
- Open and play the video in question as you normally would (notice: there will be no picture — sound however, if applicable, and the VLC controls will move to show you the progress of the conversion)
- Images are saved to the root of the main HDD on Mac OS X ( / ), on Windows I can only assume it will be C:
- Don’t forget to reset step 2 to ‘Standard’ when you’re done
- Throw images into Hugin and run one of the autopano scripts, and so forth
Thanks for that info, Arru!
diesen samstag wollte ich mal ein bisschen ein grösseres panorama-projekt anpacken, als ich dies bisher getan habe. ausgerüstet mit meiner kamera, fernauslöser, stativ und weitwinkelobjektiv hab’ ich mich auf den bubenbergplatz gestellt und hab 87 fotos des baldachins aufgenommen (je 29 normal, unter– und überbelichtete, sog. bracketing).nach längerem rechnen heute nachmittag kann sich das ergebnis sehen lassen, wie ich finde: eine panorama-aufnahme des baldachins auf dem bubenbergplatz in bern mit erhöhtem dynamik-umfang, erstellt mit hugin und enfuse.
für alle, die das nicht kennen, erhöhte dynamik-umfang bedeutet (analog wie HDR), dass im untenstehenden bild mehr helligkeitsinformationen abgebildet sind, als mit einer einzigen belichtung erreicht werden könnte. die 3 roh-aufnahmen (normal, unter– und überbelichtet) werden so zusammengerechnet, dass die schatten und die hellsten stellen jeweils gut belichtet werden. schön ist das zu sehen, wenn die panoramas vom bubenbergplatz als enfused und als normale variante verglichen werden.
da hugin auch fähig ist, HDR-files zu erstellen, werde ich mal versuchen, mit qtpfsgui noch sogenannte tone-mapping bilder vom bubenbergplatz herzustellen… diese werden wohl mit der zeit hier auftauchen.
Recent Comments