Tutorial: Camera Calibration
DLIP Tutorial for Camera Calibration using GML Program or MATLAB
Tutorial(Ver. 1) - Calibration Using GML Camera Calibration Program
Download GML Camera Calibraion Program in link.
GML Program Guide
Create a new C++ project in Visual Studio Community
Project Name:
DLIP_Tutorial_Camera_Calibration
Project Folder:
C:\Users\yourID\source\repos\DLIP\Tutorial\
Load the file in the path:
calibration.resources\sourceCode\
into the project folderSource 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**
Download Computer Vision Toolbox in MATLAB.
Open the Camera Calibrator application.
Download images for camera calibration. (link)
Load calibration images to the camera calibrator app.
Configure Image and Pattern Properties as
Pattern Selection: Checkerboard
Size of checkerboard square: 25 mm
Image distortion: Low
Click Calibrate button.
Export Parameters to workspace
Save the Workspace cameraParams as "cameraParams.mat"
Download test code(link) and Run the code
Apply the camera parameter values from cameraParams to the cpp test code (link)
(Option) Create a simple function that returns undistort output image from the input raw image
Other Calibration Tutorial
Calibration with OpenCV C++
Calibration with OpenCV-Python
Last updated
Was this helpful?