Ask Your Question

Revision history [back]

What causes circular artifacts when using warpPolar?

Hello, I had a code that converted a radial image into linear one. The code was written from scratch, but did his job (rather slowly, to be honest). The code worked by sampling pixels using polar coordinates using cv2.getRectSubPix.

To make it faster, I switched to cv2.warpPolar, which is very fast and nice, but I get some artifacts that mess my gradients up. Here's an image of the artifacts I am talking about (to make it clear, I used red lines)


I am not entirely sure about why these artifacts are happening: is it because I am using cv2.WARP_POLAR_LINEAR + cv2.INTER_CUBIC as flags? I tried using a different interpolation, but apparently the problem remains.

Is it possible to get rid of them and reflect more accurately the image gradients?