On 8 Aug., 09:18, kfj <[email protected]> wrote:

> In a way, I can't see why we couldn't simply use plain python

look at this hsi script (try save it as xx.py and execute it with
'python xx.py'  - you'll have to use your own imges, of course):

from hsi import *
p = Panorama()
i0 = SrcPanoImage ( 'P1000097.JPG' )
i1 = SrcPanoImage ( 'P1000098.JPG' )
i0.setYaw ( -10 )
i1.setYaw ( 10 )
p.addImage ( i0 )
p.addImage ( i1 )
ofs = ofstream ( 'xx.pto' )
p.writeData ( ofs )

This makes a panorama from the two images, sets yaw values for the
images and writes the resulting panorama out as a pto file. I think
even a non-programmer can figure it out. So in fact, we already have
the capability to use python to create the data structured hugin uses.
No fuss. It's just that these data structures are a bit arcane and
undocumented. See what I mean?

Kay

-- 
You received this message because you are subscribed to the Google Groups 
"Hugin and other free panoramic software" group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/hugin-ptx

Reply via email to