Skip to content
Discussion options

You must be logged in to vote

For a plain OpenCV-style polynomial with three radial coefficients, I would put those three values in the numerator positions and leave the rational denominator coefficients unset/zero.

Using the interleaved OpenTrackIO/OpenLensIO numbering you wrote, that means:

conventional polynomial k1 -> standard k1
conventional polynomial k2 -> standard k3
conventional polynomial k3 -> standard k5

standard k2 = 0
standard k4 = 0
standard k6 = 0

Then the rational form becomes:

$$R = \frac{1 + k_1 r^2 + k_3 r^4 + k_5 r^6}{1 + 0 r^2 + 0 r^4 + 0 r^6}$$

which is just:

$$R = 1 + k_1 r^2 + k_3 r^4 + k_5 r^6$$

The main trap is the index interleaving: OpenCV’s second radial coefficient maps to standard k3,…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@DevTGHa
Comment options

Answer selected by DevTGHa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants