In this blog post I am going to describe how you can dynamically prealign distorted panoramas shot with Ricoh Theta panoramic solution.
What do we need?
Reading some help:
ExifToolGUI for Windows (that’s what I am using)
When you shoot with Theta, it saves in the exif some special tags which we will use with this newly available for both HTML5 and flash function of KrPano „image.prealign“.
„With the prealign setting the pano image itself can be aligned/rotated. This can be used to correct a miss-aligned pano.“
Making sure we are using the latest exiftool, when you open the panorama photo with the GUI, and under the tab ALL on the right side we will find this under Ricoh label:
The magic numbers are written after Accelerometer (87 6) and Compass (202.5).
Let’s make a panorama with krpano 1.17.4 (latest build as of today) and „MAKE PANO (NORMAL) droplet.bat“
This is the panorama xml code out of the box:
Then we add the code for compass+ an action for rotating the compass so it starts from the North. We use the negative number of what is written in the Compass tag in exif. In our case we wrote „-202.5“
Now we have a beautiful compass which shows the correct North position. Example HERE. Things still don’t look quite right though?
And now comes the real magic.
We add the prealign parameter in the image tag of the panorama as shown above. For that purpose we use the two numbers from the Accelerometer exif tag. The first becomes the last and vice versa. Again, we use the negative values of what is written in the exif tag.
And now the misaligned panorama is aligned automatically. Example HERE.
Hope you enjoyed this little hack/tutorial and find it useful.
For more stuff like this follow us on Facebook here: https://www.facebook.com/IGTeamLtd