dmontagu / undistort-ios

Comparison of native extensions used to undistort calibrated images captured on iOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Undistort iOS

Distorted vs. undistorted

Various implementations of image undistortion for images captured with calibration data on an iOS device.

This package is mostly intended as a comparison of various approaches to writing high-performance native python extensions, but is indeed usable out of the box for undistorting iOS images if that's what you need.

If you find any changes that could improve performance for any of the implementations, please share them!

Performance:

Extension Execution Time (s) Factor
Rust/PyO3 (1 line unsafe) 0.0462 1.0
Cython 0.0529 1.145
C++/Pybind11 0.0610 1.320
Rust (safe) 0.1123 2.431
Numpy 0.5520 11.95
Python 15.36 332.5

About

Comparison of native extensions used to undistort calibrated images captured on iOS


Languages

Language:Python 42.9%Language:C++ 21.9%Language:Rust 20.3%Language:Makefile 8.3%Language:Shell 4.7%Language:CMake 1.8%