Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

SHRT_MAX in cv2.remap()

I'm trying to apply a map to a very large image (114688, 89600) and got the following exception:

cv2.error: OpenCV(3.4.3) /io/opencv/modules/core/src/parallel.cpp:240: error: (-2:Unspecified error) in function 'finalize'
> Exception in parallel_for() body: OpenCV(3.4.3) /io/opencv/modules/imgproc/src/imgwarp.cpp:1729: error: (-215:Assertion failed) dst.cols < SHRT_MAX && dst.rows < SHRT_MAX && src.cols < SHRT_MAX && src.rows < SHRT_MAX in function 'remap'

What's the maximum size allowed for remap()? I grepped the source code for SHRT_MAX but couldn't find the definition.