Giter Site home page Giter Site logo

tumvi_fisheye_calib's Introduction

Image distortion calibration

Image undistortion example with OpenCV Python for TUM Visual-Inertial Dataset

Camera geometric model

(Reference: https://github.com/ethz-asl/kalibr/wiki/supported-models)

Two key parameters is been used for geometric calibration:

  1. Intrinsic model
  2. distortion model

Camera model

Omnidirectional

omnidirectional camera model (omni) (intrinsics vector: [xi fu fv pu pv])

The intrinsics vector contains all parameters for the model:

  • fu, fv: focal-length
  • pu, pv: principal point
  • xi: mirror parameter (only omni)
K = 
fu   fu*cot(xi) pu
0     fv        pv
0     0         1

Pinhole

pinhole camera model (pinhole) (intrinsics vector: [fu fv pu pv])

K = 
fu    0       pu
0     fv      pv
0     0       1

Distortion model

equidistant (equi) (distortion_coeffs: [k1 k2 k3 k4])

Before calibration (pinhole-equi-512 model)

After calibration (pinhole-equi-512 model)

Matlab example

https://github.com/ethz-asl/kalibr/files/272054/Undistort.m.txt

imageD = imread('1.png');
% pinhole-equi-512
intri = [190.97847715128717, 190.9733070521226, 254.93170605935475, 256.8974428996504];
D = [0.0034823894022493434, 0.0007150348452162257, -0.0020532361418706202, 0.00020293673591811182];
fu = intri(1);
fv = intri(2);
pu = intri(3);
pv = intri(4);

K = [fu 0 pu
    0 fv pv
    0 0 1];
unImg = Undistort(imageD, D, K, 'equi');
imshow(unImg);

tumvi_fisheye_calib's People

Contributors

htlife avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.