Skip to content

ZhangAoCanada/Camera-Undistortion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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".

About

undistort camera images

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published