1 | initial version |
opencv3.4.3 is quite outdated, the function you refer to is from the dead 2.4 api.
you should use cv::bilateralFilter with cv::UMat
instead, to use the opencl optimization (T api):
Mat img = imread(something, IMREAD_GRAYSCALE);
// upload to GPU
UMat src(img), dst;
bilateralFilter(src, dst, 8,15,15);
// more ocl operations on UMats (keep it on the GPU as long as you can !)
// download to CPU
Mat res = dst.getMat();
imshow("I",res);
waitKey();