Tutorial: Camera Calibration

DLIP Tutorial for Camera Calibration using GML Program or MATLAB

Tutorial(Ver. 1) - Calibration Using GML Camera Calibration Program

  1. Download GML Camera Calibraion Program in link.

calibration resources

  1. GML Program Guide

  1. Create a new C++ project in Visual Studio Community

    • Project Name: DLIP_Tutorial_Camera_Calibration

    • Project Folder: C:\Users\yourID\source\repos\DLIP\Tutorial\

  2. Load the file in the path: calibration.resources\sourceCode\ into the project folder

    • Source Code: ShowUndistorted.cpp, ShowUndistorted_tiny.cpp

    • header file: tinyxml2.cpp, tinyxml2.h

    • xml file: calibTest.xml

Tutorial(Ver. 2) - Calibration using MATLAB Toolbox

Using _"Computer Vision Toolbox"_** Application in MATLAB**

  1. Download Computer Vision Toolbox in MATLAB.

img3
  1. Open the Camera Calibrator application.

img2
  1. Download images for camera calibration. (link)

  2. Load calibration images to the camera calibrator app.

img
  1. Configure Image and Pattern Properties as

  • Pattern Selection: Checkerboard

  • Size of checkerboard square: 25 mm

  • Image distortion: Low

img4
  1. Click Calibrate button.

img5
  1. Export Parameters to workspace

  2. Save the Workspace cameraParams as "cameraParams.mat"

img6
  1. Download test code(link) and Run the code

img7
  1. Apply the camera parameter values from cameraParams to the cpp test code (link)

img8
  1. (Option) Create a simple function that returns undistort output image from the input raw image

Other Calibration Tutorial

  1. Calibration with OpenCV C++

  1. Calibration with OpenCV-Python

Last updated

Was this helpful?