Inverse cv::linearPolar causes missing patch in output

asked 2015-12-07 10:01:05 -0600

emiswelt gravatar image

updated 2015-12-07 10:01:38 -0600

I'm trying apply an inverse linear polar transform to some quadratic images:

image description

The result, I'd expect is the following (done using Photoshope):

image description

However, the result I get from OpenCV's linearPolar function is the following:

image description

Some part of the image is missing and can be noticed as a black slice.

The code I am using is:

linearPolar(in, pol, 
        Point2f(in.cols / 2, in.rows / 2), (in.rows / 2), 
        CV_WARP_FILL_OUTLIERS | CV_INTER_LINEAR | CV_WARP_INVERSE_MAP);

Where in is the input image, given by imread.

Am I doing something wrong here?

edit retag flag offensive close merge delete

Comments

1

Seems like a bug to me. Reproduced with other images. You can report the issue here: https://github.com/Itseez/opencv/issues

LorenaGdL gravatar imageLorenaGdL ( 2015-12-08 00:30:01 -0600 )edit
emiswelt gravatar imageemiswelt ( 2015-12-08 04:34:11 -0600 )edit

Well done! Now time to wait...

LorenaGdL gravatar imageLorenaGdL ( 2015-12-08 04:37:47 -0600 )edit