LogPolar not working on OpenCV 2.4.9

asked 2014-08-21 23:15:24 -0600

Good Day,

I've tried testing the logPolar function on OpenCV 2.4.9, unfortunately it seems there are errors with it. This is my code:

    cvLogPolar(
        bgr_frame, 
        logpolar_frame, 
        Point2f(
            bgr_frame.cols/2,
            bgr_frame.rows/2 
        ),
        40,
        CV_WARP_FILL_OUTLIERS 
    );

where bgr_frame and logpolar_frame are Mat objects. The error I get is

candidate function
      not viable: no known conversion from 'cv::Mat' to 'const CvArr *'
      (aka 'const void *') for 1st argument; take the address of the argument
      with &
CVAPI(void)  cvLogPolar( const CvArr* src, CvArr* dst,

Is there any function available for log polar that will basically use Mat instead of CVArr*?

edit retag flag offensive close merge delete

Comments

2

theres is cv::logPolar in imgproc. it's just not documented.

berak gravatar imageberak ( 2014-08-22 01:02:51 -0600 )edit