import numpy as np
import cv2
from matplotlib import pyplot as plt
img = cv2.imread(\'C:\\\\Users\\\\not my user name\\\\Desktop\\\\20140505_124500_4096_HMIIC.jpg\', 0)
You can do polar-cartesian distortion just on the command line with ImageMagick in the Terminal - it is installed on most Linux distros and is available for macOS and Windows:
convert sun.jpg +distort DePolar 0 result.jpg
There are some excellent hints and tips from Anthony Thyssen here.