Optical Distortion & Undistortion Toolbox

High-precision polynomial-based distortion correction
for research and industrial imaging workflows.

Explore Toolbox Contact

Distortion & Undistortion Toolbox (MATLAB)

A flexible and high-accuracy framework for modeling, applying and inverting optical distortion.

Flexible Polynomial Models

No predefined limit on polynomial degree or number of terms.

Monotonicity Diagnostics

Automatic detection of non-monotonic regions and information loss.

Robust Inverse Mapping

LUT-based inverse mapping with stable interpolation.

Production Ready

Script-based batch processing, distributed as .mltbx.

Custom Sampling Control

Balance accuracy, performance and output resolution.

Visual Evidence: Monotonic vs Non-Monotonic Distortion

Monotonic Distortion Model

Distorted

Monotonic distorted

Undistorted

Monotonic undistorted
Monotonic

Radial Mapping

Monotonic radial mapping

Non-Monotonic Distortion Model

Distorted

Non-monotonic distorted

Undistorted

Non-monotonic undistorted
Non-Monotonic

Radial Mapping

Non-monotonic radial mapping

Technical note: The two distortion models differ by a single higher-order term of -0.05 · r11. This term has negligible influence near the image center, but dominates toward the outer field, causing a transition from monotonic to non-monotonic radial mapping.

Contact & Research Identity

📧 ahmet.basaran@opticaldistortionlab.com

🧪 ORCID: 0009-0008-2682-0572

💼 LinkedIn: Ahmet Başaran

💻 GitHub: HeliumNitrate