On 28 Mai, 08:51, Milan Knížek <[email protected]> wrote: > Hello, > > I am experimenting with the following procedure to remove the blending > error for nadir and zenith vertices of a full spherical panorama: >...
> Is there a relatively easy way how to calculate the change for image > positions outside of hugin? (I.e. knowing the original position and the > wanted change of yaw, pitch)? (I am no programmer, though...) There is the command line tool transform-pano which is distributed with hugin. While you're shell-scripting, this does the trick quickly and precisely. kfj@Anja:/$ transform-pano --help Usage: /usr/local/bin/transform-pano <roll> <pitch> <yaw> <input.pto> <output.pto> > Or will this be possible with hugin once the scripting API is > complete? It is already possible if you get hold of hsi-enabled hugin. There's a readymade algorithm object, use: class RotatePanorama(PanoramaAlgorithm) | Proxy of C++ HuginBase::RotatePanorama class | ... | | __init__(self, *args) | __init__(self, PanoramaData panorama, Matrix3 transformMat) -> RotatePanorama | __init__(self, PanoramaData panorama, double yaw, double pitch, double roll) -> RotatePanorama probably the second constructor is easier to use. When I use this operation (the CLI tool and the Python code use the same C++ code), I only do one rotation at a time, even though you can pass y, p and r at once, because I'm not entirely certain in which order the C++ code executes them, and with 3D rotations, sequence matters. If you already have the compound matrix for your transformation, you'd of course use the first constructor. Happy scripting ;-) 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
