On 12 Dez., 23:38, Bruno Postle <[email protected]> wrote: > On Sat 10-Dec-2011 at 01:04 -0800, kfj wrote: > > >The horizontal case is simple - I can call SrcPanoImage::getHFOV(), > >and if that's 360 degrees, I have to wrap horizontally. But there is > >no function getVFOV(). I was wondering whether there is a > >straightforward way to tell if an image's VFOV is 180 degrees or less. > > grep is useful here, getVFOV() is in > src/hugin_base/panodata/PanoramaOptions.cpp > > Basically it maps the top middle pixel to a temporary > equirectangular image and converts that coordinate to an angle.
I think this routine calculates the VFOV of the whole panorama, not of a single image - please correct me if I'm wrong. But the method might work - I could just insert the image in question with y,p,r = 0,0,0 and calculate the angle to the top of the image, times two gives me the vfov. I like grep myself, even though nowadays I just tell my file manager to search a subtree of my filesystem for specific patterns - beats having to get a shell window first ;-) 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
