Ask Your Question

Revision history [back]

LogPolar not working on OpenCV 2.4.9

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*?