You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling cv2.cuda.remap() with a Mat that has one row, an output of all 0s is produced (sometimes there are negligible floating points values) or the destination Mat is not overwritten. When doing the similar cpu operation in cv2.remap(), the correct output is produced. An example of this use case is using remap as lookup table for larger tables or floating point values.
Changing the src size to at least two rows produces the correct result.
Changing the src size to one column crashes with following error message: cv2.error: OpenCV(4.7.0) /home/ubuntu/opencv_contrib-4.7.0/modules/cudev/include/opencv2/cudev/ptr2d/texture.hpp:167: error: (-217:Gpu API call) invalid argument in function 'create'. Similarly changing to 2 columns produced correct result.
This was tested across several combinations of borderMode, interpolation, and channel number and all reproduced the same behavior.
This case had previously worked in OpenCV 4.5.5 before I updated to 4.7.0. Tested only in Python.
System information (version)
OpenCV & OpenCV Contrib 4.7.0
CUDA 11.7
Python 3.9.5
Ubuntu 20.04 x86_64
NVIDIA T4
Detailed description
When calling
cv2.cuda.remap()
with a Mat that has one row, an output of all 0s is produced (sometimes there are negligible floating points values) or the destination Mat is not overwritten. When doing the similar cpu operation incv2.remap()
, the correct output is produced. An example of this use case is using remap as lookup table for larger tables or floating point values.Changing the src size to at least two rows produces the correct result.
Changing the src size to one column crashes with following error message:
cv2.error: OpenCV(4.7.0) /home/ubuntu/opencv_contrib-4.7.0/modules/cudev/include/opencv2/cudev/ptr2d/texture.hpp:167: error: (-217:Gpu API call) invalid argument in function 'create'
. Similarly changing to 2 columns produced correct result.This was tested across several combinations of borderMode, interpolation, and channel number and all reproduced the same behavior.
This case had previously worked in OpenCV 4.5.5 before I updated to 4.7.0. Tested only in Python.
Steps to reproduce
Some toy code to reproduce the problem
Issue submission checklist
forum.opencv.org, Stack Overflow, etc and have not found any solution
The text was updated successfully, but these errors were encountered: