Source: https://www.zenodo.org/record/1322720/files/Python_implementation_of_distortion_correction_methods_for_X_ray_tomography.pdf