Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

error when running warpPolar

When I run the warpPolar I get the result I was expecting. But when I run it on a larger image dftcv_shft.shape, I get (19222, 19418, 2). When trying to run warpPolar on that image Iget the following error:

error: OpenCV(4.2.0) D:\Build\OpenCV\opencv-4.2.0\modules\imgproc\src\imgwarp.cpp:1724: error: (-215:Assertion failed) dst.cols < SHRT_MAX && dst.rows < SHRT_MAX && src.cols < SHRT_MAX && src.rows < SHRT_MAX in function 'cv::remap'

According to warpPolar documentation the array needs be smaller than 32767x32767, which it is but seems to me the error is linked to the size of the array. But it seems the error is from remap!?

Any help would be appreciated.

link to warpPolar

link to remap