I'm trying to implement ring artefact reduction algorithm using python. The first step is to transform image from cartesian to polar. I suppose that I can use opencv to do that. In this topic fast Cartesian to Polar to Cartesian in Python author managed to use LinearPolar function but it doesn't work on my computer.
I tried the following way:
import cv
import cv2
img = cv2.imread('artifact.png', 0)
img1 = cv2.imread('artifact.png', 0)
cv.LinearPolar(cv.fromarray(img),cv.fromarray(img1),(130,110), 1 ,cv.CV_WARP_FILL_OUTLIERS)
But it returned an error : AttributeError: 'module' object has no attribute 'LinearPolar'
So is there any way to use this function?
Thanks