Sorry if I'm completely confused, but I do think the labels "Ru" and
"Rd" are swapped in the lensfun doco.
For instance in the Adobe doco, you'll see the quantity on the left
of the lens distortion equation is labelled "xd" (distorted).
Also, tracing through the code in lib/lensfun/mod-coord.cpp in the
ApplyGeometryDistortion routine, the code takes a coordinate,
transforms it using the callback for the model, and then looks up the
(distorted) image data at the transformed coordinates.
Regarding the use of "x" and "y" in the Adobe doco, this is
equivalent to writing the transform using "r". In fact, it's pretty
much identical to how it's coded in lensfun:
const float r2 = x * x + y * y;
const float poly4 = (1.0 + k1 * r2 + k2 * r2 * r2);
iocoord [0] = x * poly4;
iocoord [1] = y * poly4;
------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
Lensfun-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lensfun-users