Get the latest tech news

Wide angle lens distortion correction from lines


hen a human looks at an image that is distorted with a wide angle lens, we can tell pretty much immediately that the image is distorted. Specifically we can tell that objects with straight lines in the 3D world do not have straight lines in the image.

Mathematically one of the simplest ways to describe a lens undistortion model is simply to use some form of spherically symetric function that operates on pixel coordinates. It is similar to selecting peaks from the Radon transform and the OpenCV version directly outputs the lines that it detects in the image. This produces an image that looks like this with individual line segements highlighted and ready for undistortion estimation.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of lines

lines

Related news:

News photo

Exercise: Minesweeper in 100 lines of Ruby

News photo

Ultra simplified "MNIST" in 60 lines of Python with NumPy

News photo

Beating NumPy matrix multiplication in 150 lines of C