Skip to content

Optical distortion calculation and correction; open source C, C++ library

Notifications You must be signed in to change notification settings

vicrucann/DistCorr-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Optical distortion calculation and correction tool (C/C++ library)

Usage:

After running cmake, there will be two executables which user can run:

polyestim length_threshold sampling_factor {input1.pgm} [input2.pgm...] {polyout_filename.txt}

distcorrect {poly_fname.txt} {input.pgm} {output.pgm}

Main principle

Given set of calibration images (example is provided in data folder), obtain correction polynomial, calculate RMSE of correction and correct calibration or any other images taken under the same camera settings.

The algorithm

The library is based on research done by CMLA ENS-Cachan and IMAGINE LIGM ENPC, and the reference paper titled LENS DISTORTION CORRECTION WITH A CALIBRATION HARP. The code was adapted from originally written Matlab prototype by Zhongwei Tang.

Author information

The software uses some C-based libraries for image processing etc. For more info refer to each lib subdirectory individually. The main framework and polynomial estimator were written by Victoria Rudakova.

About

Optical distortion calculation and correction; open source C, C++ library

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published