Hi all!

I have a - maybe naive - question, which I'd nevertheless be curious
to get an answer to: does hugin add to the mathematical model of the
panorama that libpano uses, or is it strictly a front end for
libpano's model?

Why am I asking this? Yesterday I was bug hunting. I noticed there was
a problem inverse-transforming the origin of images which had lens
parameters a, b or c different from zero. A very unlikely bug to be
provoked by accident, and it probably would never have occured hadn't
I been using a particular hugin object and one of it's methods which
is probably even only there for completness' sake. The relevant bug
report is at

https://bugs.launchpad.net/hugin/+bug/791473

in case anyone cares. So I couldn't help poking around in the code a
bit, and one of the things I saw was that pano_trafo, the tool to
calculate these transforms on the command line, uses routines which
seem to be straight libpano, which directly convert pixel coordinates
from the images to the panorama and use the common approach of having
the pixel coordinate origin in a corner. The objects in hugin which
deal with transforms seem to be using the image center as origin and
have a layer of converting the coordinates.

This made me wonder - how much do the hugin objects add? Are all image
features hugin knows processed by libpano?

Again, why am I asking this? Having written the Python interface, I've
often wished for a clean API instead of just a bunch of headers one
may or may not wrap for Python use. See also

https://bugs.launchpad.net/hugin/+bug/789442

So I'm asking myself if I'm maybe not barking up the wrong tree
wrapping C++ objects (in hugin) that wrap C routines (in libpano) if I
could go straight to the latter without an intermediate layer adding
it's own set of difficulties. Currently, the main scope for the Python
interface is dealing with the backend of hugin. Maybe it'd be wiser to
wrap what hugin wraps instead of re-wrapping what hugin has wrapped
already? And maybe that's where there's a good place for an API to
start?

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