Ask Your Question
0

conversion of logPolar in newer C++ API

asked 2015-07-20 10:15:56 -0500

As part of some software I am building I am translating an old Python interface to the new C++ interface. It contains a line of code like this

cv.LogPolar(image,imgRes,c,60.0, cv.CV_INTER_LINEAR+cv.CV_WARP_FILL_OUTLIERS)

But that function seems to be gone completely and I do not seem to be able to find an alternative. Basically I want an image unwrapping from the center from polar to cartesian coordinates which could be achieved by the above functionality.

Anyone got a clue?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2015-07-20 10:19:33 -0500

berak gravatar image

updated 2015-07-20 10:26:07 -0500

unfortunately afaaik only opencv3 has the cv2 version:

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

logPolar(...)
    logPolar(src, center, M, flags[, dst]) -> dst

(2.4 does not even have the c++ version, only the c-api one, thus there is no cv2 wrapper there)

edit flag offensive delete link more

Comments

Oh but that is perfectly fine! I need it to make 3.0 available software ... must have done something wrong that I did not find it!

StevenPuttemans gravatar imageStevenPuttemans ( 2015-07-20 12:36:31 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2015-07-20 10:15:56 -0500

Seen: 309 times

Last updated: Jul 20 '15