Stitching panorama with pano tools

186 views
Skip to first unread message

Piotr Wierzgała

unread,
Mar 10, 2010, 8:59:06 AM3/10/10
to hugin and other free panoramic software
Hi,

I'd like to create spherical panorama photo in console (without any
GUI applications). The problem is I can't figure out how shoud my
script files look like. I tried default PTStitcher script with proper
adjustments but I didn't work as it should.

After some time I found out that I can generate PTStitcher script with
Hugin and it works well. Unfortunately, as I said, I can't to use any
GUI applications nevertheless it was still a step forward :-) Now the
question is how Hugin generate (p)itch, (r)oll and (y)aw parameters
because that is the only thing that differs my PTStitcher scripts from
the Hugin ones?

Part of Hugin well generated PTStitcher Script:
o w3008 h2000 f3 p-11.7109207598712 r95.1073373308822
v153.405349944221 y-0.524123085014594 u10 m0 n"1.JPG"

Stefan Peter

unread,
Mar 10, 2010, 9:30:40 AM3/10/10
to hugi...@googlegroups.com
Hi Piotr

Piotr Wierzgała wrote:
> Hi,
>
> I'd like to create spherical panorama photo in console (without any
> GUI applications).

Have a look at http://wiki.panotools.org/Panorama_scripting_in_a_nutshell


Cheers

Stefan Peter


Piotr Wierzgała

unread,
Mar 12, 2010, 8:50:47 AM3/12/10
to hugin and other free panoramic software
Thanks Stefan for the link. It was a great help with which I finally
managed to stitich panorama :)

Unfortunately I have a little problem I hope some of you colud help me
to solve.

I couldn't use autopano-sift-c to calculate control points because it
always crashed with settings I provided (and I'm pretty sure that the
settings were correct).
Therefore I switched to panomatic and the problem is I can't find a
place where I could set projection and fov parameters.

Here's example of one line of panomatic outupt file:
o f0 y+0.000000 r+0.000000 p+0.000000 u20 d0 e0 v50 a0 b0 c0

By default f is set to 0 and v is set to 50. I need them to be
respectively 3 nad 172 so I change them manually...

Now I going to try doing the same on linux but if you tell me how to
set projection and fov in panomatic output by parameters (or in any
other way but not by hand) I'll grateful.

Bruno Postle

unread,
Mar 12, 2010, 10:08:10 AM3/12/10
to hugi...@googlegroups.com
2010/3/12 Piotr Wierzgała <piotr.w...@gmail.com>:

> I couldn't use autopano-sift-c to calculate control points because it
> always crashed with settings I provided

Are you using the autopano-sift-C-2.5.1 release (recommended) or an
SVN snapshot?

> Now I going to try doing the same on linux but if you tell me how to
> set projection and fov in panomatic output by parameters (or in any
> other way but not by hand) I'll grateful.

On Linux I'd just use a tool like sed:

sed -i -e 's/ v50 / v172 /' project.pto

--
Bruno

Piotr Wierzgała

unread,
Mar 13, 2010, 6:57:54 PM3/13/10
to hugin and other free panoramic software
On Windows I was using autoapno-sift-c 2.5.2 (23 July 2009).

Anyway it works properly with the same script (what is weird) on Linux
but I don't remember version of autopano-sift-c I used. Probably it
was 2.5.0 - I can checked it on Tuesday if you find it useful, just
let me know.

On 12 Mar, 16:08, Bruno Postle <brunopos...@googlemail.com> wrote:
> 2010/3/12 Piotr Wierzgała <piotr.wierzg...@gmail.com>:

Reply all
Reply to author
Forward
0 new messages