Skip to content

Latest commit

 

History

History
55 lines (44 loc) · 1.32 KB

README.md

File metadata and controls

55 lines (44 loc) · 1.32 KB

Pinhole Camera Calibration

This library is working specifically for undistorting images that taken from a pinhole camera.

Note: The code is still under testing and debugging.

experiment result

How to use it

1. Git clone it to local

$cd <directory>
$git clone https://github.com/ZhangAoCanada/Camera-Undistortion

2. Put all calibration images into the right directory

$./calibration_image/

3. Open the configure file and do the changes if neccesary

$nano ./config/parameters.txt

Note: change the diretory of the images that are about to be undistorted correctly. Also, please specify the output directory.

4. Build the whole project

$mkdir build
$cd build
$cmake ..
$make && make install

5. Run calibration

$cd bin

If you are running it first time:

$./CalibrateImages recalibrate

6. Calibrate another image directory

Change the input and output directories as STEP 3, then run

$./CalibrateImages

Optional varifying step

After first time running it,go to the directory "calibration_para_saved" to find out whether the cameraMatrix and distCoeffs have been written in "libration_para.yml".