Skip to content

Enhancement - Distortion models and fitting stability #157

Description

@Microno95

Currently the calibration scheme underlying Calcam uses the OpenCV distortion model which works for many cameras, but with the MAST/MAST-U cameras, which use a wide-angle lens, calibrating higher order radial terms (k2 and k3) is quite difficult. This is partly due to the lack of image features visible on the edges of the image for pairing with the CAD geometry, and likely is not helped by small discrepancies between the CAD model and the real machine. This could also be partly that the distortion model used by OpenCV is unsuitable for these cameras outside a small radial region around the optical center of the imaging plane.

For example, with MAST-U, I have gone up to 160 point-pairs along with a constraining single frame calibration as a starting point and the same set of 160 points achieves 2.8px residual with k1-only, but a 32px residual with k2 and k3 enabled.

My suggestion would be to include tabulated calibration as a feature so that the underlying distortion map is computed directly instead of fitting the OpenCV analytical model which may help expand the domain in which the undistorted image is valid.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementIdea for added or improved features or functionality

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions