Any idea how to solve this, or maybe there is another way for this conversion into the GPU memory?
PS: I should have to mention, that the OpenCV version I use is 4.5.4.
cuda modules live in the contrib repo. you could file a bug there (but check for existing issues first).
opencv type codes are about to experience some overhaul. the element type is in the lower 3 bits so far (CV_MAKETYPE and CV_CN_SHIFT). I saw talk of extending that space. it’ll break some binary compatibility. they might do that for OpenCV v5, or maybe later.