Code used in the following paper:
The DLLs are built for 64-bit Windows, so the code won't run in other platforms. You may need to install the Visual C++ 2012 redistributable (x64).
Automatic lens distortion rectification methods rely on the scene to contain almost only linear structures. The features extracted from non-linear structures tend to deteriorate the results.
This is a robust lens distortion rectification method that selects feature groups that are likely to be extracted from linear structures in the following ways:
- The line segments are extracted from edge segments. Only consecutive line segments on an edge segment are grouped. This results in much less false groups compared to testing all line segment combinations.
- After grouping the line segments, backward feature elimination is applied. False groups are easily eliminated because they don't agree with true groups or each other.