@javiersanp mentioned he uses Hugin, but doesn’t have a great PTO file…
What is Hugin?
It is a poowerfull program which can stitch (combine) multiple images into one. This can be or become a panorama or a equirectangular.
It does have a bit of a steep learning curve. But once you have figured it out, it produces good results and can be used for batch processing. It’s available for Mac, Windows and Linux.
What is a PTO?
Hugin has assistant which can help you in various ways to get started… Each project you create results in a project file which is the template for your stitching project. The extension of this file is PTO.
How to create your own template?
When you are lucky you can find a PTO file someone else created. When you are even more lucky that person did a great job creating it.
If not, you need to create one yourself. Best is to use a location which fits the general usage of your work (open space, room etc). Use a location with a lot of good identifiable points. I went to the local gym:
Do make several pictures rotating your camera a bit each time, or at a (slightly) different position!!
Choose your first image and rename it to “image.jpg”
When you have nothing start by determining which assistant gives you a fair result (or use that not so good PTO file you found on the internet).
My camera takes the two images to be stitched below each other, most of the time they are next to each other, choose your assistant wisely!
Then go to “control points” in your wysiwyg Hugin editor.
And start by matching control points as good as you can. Go for pixel perfect!
How I went for perfection (little trick I thought of…)
I perfected my PTO file the following way:
First, do keep in mind that Hugin uses a sort of “fuzzy logic” in their stitching process! Sometimes a dozen points extra gives a worse result… try and get a feel for it and play around with it!
At certain moment I was almost there but a part just didn’t want to go just right. The trick I did was this. After saving my project I renamed my ‘image.jpg’ to “fase one.jpg” and used an other image I took in the gym and renamed that one to “image.jpg” and re-opened my project (later on I discovered I could just as well have opened that image (twice in my case!) and choose “apply template” and then go to “control points” again and start playing around again by finding those extra control points for the perfect result…
As you can see in the image above my template uses a whopping 61 control points… I know, it’s a bit excessive but I am very, very pleased with the results I get
I hope this little tutorial helps