Am 02.05.2010 03:49, schrieb tobio:

I have a question about hugin. I wonder what geometric transformation
the cylindrical projection used?

Perhaps http://wiki.panotools.org/Cylindrical helps. Cylindrical projection maps the horizontal angle to linear distance and the vertical angle to tangent.

That is to say, I have generated a 360 degree panoramic Image from 6
images using cylinderical projection, and there is a point A(x,y)(x,y
are pixel coordinates) on the fifth image, how can I calculate its
coordinates A'(x',y') on the panoramic image?

Coordination transformation implies the transformation of euler (respectively Tait-Bryan) angles
-> http://en.wikipedia.org/wiki/Euler_angles
-> http://en.wikipedia.org/wiki/Yaw,_pitch,_and_roll
which isn't trivial at all. And if lens correction is involved it gets even more complicated.

However, there is a special case: if all images are roll=0 and no lens correction was used, you can calculate the angles (from center) inside the source image using the appropriate formula for the input image projection, add them to the yaw (horizontal) and pitch (vertical) values of the image and transform them to image coordinates using the appropriate formula. Note that yaw and pitch are measured from the uncropped output image center.

If you simply want to mark special points in the output image it's far easier to place marks in copies of the input images, mask the background away and remap those images to TIFF output with the same project file you did the original remap. You get an image with same dimensions and transparently overlaid marks.

--
Erik Krause
http://www.erik-krause.de

--
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 hugin-ptx@googlegroups.com
To unsubscribe from this group, send email to 
hugin-ptx+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx

Reply via email to