enables any computation to be done on GPU directly

Hello,
I’m trying to build an application with opencv , I’ve opencv 4.1.2 built with CUDA.
The main problem is that I’m trying to perform cv2.ximgproc.createDisparityWLSFilter(matcher_left=left_matcher) on the GPU.
but there is no function in cv2.cuda that supports WLS Filter.

Also Is there any API that enables any computation to be done on GPU diectly without using cv2.cuda module

Thanks in advance

I’m pretty sure if you’re using OpenCV 4.x you must use the cuda module to target the GPU.