No matching function for call to 'cv::cuda::CLAHE::apply(cv::gpu::GpuMat&, cv::gpu::GpuMat&)

Dear all,

I am using Jetson TX2.

My code works well on TK1, TX1 with official opencv release.
but when I changed it to TX2, I could not use gpu:: functions
from this post https://devtalk.nvidia.com/default/topic/1017157/qt-cuda-_-gpu-works-on-tx1-but-not-on-tx2/
they adviced o build from source. I foffowed this instruction http://dev.t7.ai/jetson/opencv/
Current Opencv version 3.3.0.

I got this error message
“error: no matching function for call to ‘cv::cuda::CLAHE::apply(cv::gpu::GpuMat&, cv::gpu::GpuMat&)’
gpuclahe->apply(gpugray2, gpugray2_c);
^”

here is some part of the deceleration
" cv::Ptrcuda::CLAHE gpuclahe = cuda::createCLAHE();
gpuclahe->setClipLimit(4);
gpuclahe->apply(gpugray2, gpugray2_c);
gpuclahe->apply(gpugray1, gpugray1_c);
"
Please give me some advices. Thanks all

Hi,

OpenCV4Tegra branch from official OpenCV-2.4.13.
Please build the vanilla version of OpenCV 2.4, or you will need to change your source code.
We have a script to lower the building effort:
https://devtalk.nvidia.com/default/topic/1000106/jetson-tx2/opencv-convertto-failure/post/5171055/#5171055

Another solution is to wait for JetPack3.1 which contained a good opencv4tegra package, and it will be release soon.