Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

if you take a look at the inbuild help():

help(cv2.linearPolar) Help on built-in function linearPolar:

linearPolar(...) linearPolar(src, center, maxRadius, flags[, dst]) -> dst

you'll see, that you don't have to supply the result image (so the order of the following args is one-off).

it should be simply:

img1 = cv2.linearPolar(circleArr, (256,256), 100, cv2.INTER_LINEAR+cv2.WARP_FILL_OUTLIERS)

if you take a look at the inbuild builtin help():

>>> help(cv2.linearPolar)
 Help on built-in function linearPolar:

linearPolar:

linearPolar(...) linearPolar(src, center, maxRadius, flags[, dst]) -> dst

dst

you'll see, that you don't have to supply the result image (so the order of the following args is one-off).

it should be simply:

img1 = cv2.linearPolar(circleArr, (256,256), 100, cv2.INTER_LINEAR+cv2.WARP_FILL_OUTLIERS)

cv2.INTER_LINEAR+cv2.WARP_FILL_OUTLIERS)