On Mon, Aug 31, 2009 at 7:03 PM, Nicolas Pelletier < [email protected]> wrote:
> Me again... > I've looked at the options of most EXE provided by hugin, but none seem to > expose how to get the control point distance. > > I also looked into the math to redo the calculations manually. I quickly > came to the conclusion that considering the yaw pitch and roll, and also the > field of view was mandatory and would yield good result, but this would not > consider the different distortion factors/skew/offset (abcdegt) and to get > these would require quite more math, and the exact formula. > > The reason why I'm asking is that I'm trying to script the first half of my > pano creation process, which includes a little bad CP deleting... If I can > automate part of that process, I'd save hours in some cases. > > So, original question back up. Is there a way to get these values without > recalculating them? (does the GUI recalculates them)? if not, any documents > on the formula (looked at the wiki and could not find any). > > Thanks, > > nick > > > > Hello, I am pretty certain that the GUI recalculates them (In fact, I know it is so because, I implemented the calculate-errors-after-load feature). The way it works is hugin passes the state of the pano (contains all of the information regarding yaw, pitch, distortion, etc) to libpano. It is actually libpano that computes the error values. See src/hugin_base/panotools/PanoToolsUtils.cpp Line 60 for details. Perhaps there is a way to make a call into panotools library directly? A SWIG wrapper around panotools would sure be handy for things like that! Best Regards, - Gerry --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
