Skip to content

Division model for distortion #33

@mapclyps

Description

@mapclyps

After #31 I realized that in my application I suddenly needed all distortion parameters K1 to K3 instead of only K1 to match the image distortion of the camera I was working with.
It seems like the previous approximation of inverse distortion is actually closer to the division model for lens distortion, which is often more accurate than the classical Brown-Conrady multiplication model with fewer parameters, especially for higher distortion.
I found this paper for the comparison and evaluation of the model.

It also seems like OpenCV includes both models in recent versions, while the normal K1 to K3 are defined as in this library and K4 to K6 then are the corresponding coefficients in the division model instead of higher-order terms for the multiplicative model.

What are your thoughts on adding similar K4 to K6 here as well? It would be three more floats in the Camera construct which default to zero, which would not affect the projection when not explicitly set.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions