Ask Your Question

markemus's profile - activity

2018-11-24 13:54:39 -0600 marked best answer 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.

2018-11-24 13:54:39 -0600 received badge  Scholar (source)
2018-11-24 13:54:38 -0600 received badge  Supporter (source)
2018-11-21 17:15:33 -0600 received badge  Student (source)
2018-11-21 15:32:49 -0600 asked a question SHRT_MAX in cv2.remap()

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