Here is a simple example of lens distortion correction algorithm.
You can use the make mrproper all run
command.
Requirements :
- pkg-config
- g++
I based the mathematical calculation on the informations given by this website: Lens correction model
- adapt to camera files
- apply different parameters for each colors (chromatique aberation correction)
OpenCV was used to read the image and access the pixels.