Hello,

Scanners or scanning cameras can introduce shearing distortions to images.
In order to correct for such shears, the panotool's imaging model can
optimize two parameters g, shearing in the x-direction and t, shearing in
the y-direction.

However, I have noticed that if one wants to optimize the shear parameters,
the values returned by the optimizer are not passed to the panorama.  To
test this, set up a .pto file with a pair of images and generate control
points between them.  Go the optimizer tab and click the "edit script" box.
Then you must add the shearing parameters to the list of variables you wish
to optimize (e.g. g1, t1, g2, t2, etc.).  After pressing optimize, you'll
find that the values of g and t don't change in the panorama.  Is there a
reason for this?  Is this by design?

I was able to change this by adding a couple of lines to the
GetAlignInfoVariables function in PanoToolsInterface.cpp.  This causes the
optimized values of g and t to be passed to the panorama and display in the
GUI.  A patch file is attached.

Best,
Dev

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Attachment: shear_parameter.patch
Description: Binary data

Reply via email to