Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Inverse cv::linearPolar causes missing patch in output

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

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?

Inverse cv::linearPolar causes missing patch in output

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?