Nona -z LZW -r ldr -m TIFF_m -o 21_21–2-pano -i 1. Nona -z LZW -r ldr -m TIFF_m -o 21_21–2-pano -i 0. Written output to /opt/Pano/test1/tmp/project.pto Simply download this script on StereoPi and run it: installer.sh This script needs us to input parameters - namely, the file names of the fisheye photos to be stitched to equirectangular projection.īut first, we need to install all the required software for StereoPi. We also copy our script, stereopi-stich.sh. We take this file (in our case it’s called stereopi-template.pto) and copy it over to StereoPi. For this, we will need to use our project file, saved at step 6. To up our efficiency, we need to make this process automatic. Ok, so all of this is great- but do we really want to bother with each captured photo? This is exactly what we needed- an equirectangular projection of our spherical panorama! Porting stitching onboard In the end, we get something that looks like this: After this, several windows appear, one of which will show the progress log.ĩ. This time around, we don’t tinker with“Corrections” and instead press “Save”.Ĩ. The image quality is at your discretion the default for this is 90. The LDR format (resulting picture format) should then be set to JPEG. A new window appears, in which we set a height of 1944, to which the width adjusts automatically. Then, we go back to the “Assistant” tab (if we happened to go out of it) and press “3. To save, go to“File” -> “Save as…” -> filename “stereopi-template.pto”ħ. And now for the most important step - saving the project for later use in the automatic stitching of all consecutive panoramas captured by our 2 fisheye cameras. At this step, our panorama is already starting to look like a panorama.Ħ. This begins the search for control points, which should find around 10–13 points. In the “Projection” tab, check that “Field of view” is set to 360x180 and “Equirectangular”. “Focal Length” should be set to 1,2 mm, and “Focal length multiplier” to 7,6x. Press “Load images…” and add two our files (21.jpg и 21–2.jpg).Ĥ. Now, we need to choose “Simple” in the “Interface” menu.ģ. So, we’ve downloaded, set up, and started up the software.Ģ. For this, we used Hugin, which is open-source and can be downloaded here: ġ. However, to start stitching, we would have to start with a desktop panoramic application, to prepare a template for future transformations. Here, a question arose: how could we combine these two images into one with an equirectangular projection, such as is supported by almost all panorama viewing software?Īfter a long investigation, we found a 360-camera project, which was used as a reference for our future code. Then, we capture a photo with each camera, and get these two pictures using raspistill: …and two wide-angle RPi (M) WaveShare cameras: …with Raspberry Pi Compute Module 3 Lite inside… Let’s start at the end: here’s our resulting creation - basically, a panorama. Today, we will use an inverted approach: cameras pointed in opposite directions, but equipped with wide-angle fisheye optics, each with a 200 degree field of view. In our last experiments, we installed cameras side-by-side with parallel axes and worked with stereoscopic effect. This time, we will create a 360 degree panoramic photo!Ĭlick on image for online panorama view Intro Peter pano.In this article we will continue our experiments with the StereoPi stereoscopic camera based on the Raspberry Pi Compute Module. There are a few examples in the same album as the St. When stitching 360 degrees, usually at 12mm, it is not obvious that MS ICE can do it because the image is shown as a linear view, you have to: grab the image in the middle, pull down or up, it then wraps into a circle with a blank spot in the centre. I have done a few 360 degrees with MS ICE V2 but not with the Samyang nor the 7-14 at 7mm. I suspect it'll do a good job on groups that are less than 360 degrees, or not fisheye. Half the time it stitches 2 or 3 of the images perfectly, and half the time it attempts all of them, but hopelessly scrambled. Unfortunately it seems to be completely befuddled by my images - the layout is pretty much pin-the-tail-on-the-donkey. An even better V3 would be welcome but I’ve seen nothing to suggest MS have any plans. Yes, V2 has been out for a few years now. It takes DNG files too, which is a big workflow plus for me. ICE has really come a long way since I last tried it. There are many projections to choose, so have a play to find the one that gives the best look. Pretty sure I’ve stitched Samyang 7.5mm Fisheye with Microsoft ICE.
0 Comments
Leave a Reply. |