Am 23.05.2013 20:40, schrieb Sven Utcke:
> Well, I use normal (rectilinear) lenses, but frankly, even if you could
> just point me to a formula for fisheye lenses, I would at least be better
> of that what I am now.
The actual lens correction is the same. Only the projection formula
changes.
Some hints: The way shift and shear parameters work can be tried out. In
the output canvas the image moves up for positive d and right for
positive e values. Positive g values shear the image left up and right
down, positive t values shear top to left and bottom to right.
The way a, b, c, d and e work can be seen most easily in the abc.xls
excel sheet which you can get from
http://4pi.org/downloads/
Unfortunately the g and t parameters are not covered.
Internally any operation is performed by a dedicated transformation
function. All the different transformation functions are put on a stack.
This stack is worked down for any destination pixel. This does not only
include lens correction but also correction of perspective distortion
(projection in a sphere) and transform to output projection. The beauty
of this technique is that interpolation occurs only once no matter how
complex the remapping is.
Sorry I can't be of any further help. There should be more knowledgeable
members here: Tom Sharpless or Tim Nugent f.e.