Hi there!

I'm a new user of Hugin (and vicariously Panotools) and I'm interested in using it to compute parameters of lens distortion. In particular, I have a good fisheye lens and I want to be able to map from this fisheye lens to some more easily viewed projections like equirectangular or cylindrical projections. However, I'm having lots of difficulty getting my head around the math for each of these projections. Each projection as it's talked about in the Panotools wiki or in Mathworld are in terms of different parameters that are tough to put in terms of each other (angle between optical axis and point in real world vs. longitude and latitude on the unit sphere).

Anyways, what I'm looking for is code to transform between an ideal fisheye projection to other projections (equirectangular, cylindrical, rectilinear, etc). I know this must be buried in the Panotools code or in the Hugin code somewhere but so far I haven't be able to find it. Can anyone point me in the right direction?

Thanks!

Ollie