I want to add 1 to all of the pixels in the Mat. In usual OpenCV code result = cv::Mat + 1;
. And I want to write that in OpenCV CUDA like the following.
cv::cuda::add(cuda_Mat1, 1, cuda_ResultMat);
Can I use like this?
Thank you for your time.
1 | initial version |
I want to add 1 to all of the pixels in the Mat. In usual OpenCV code result = cv::Mat + 1;
. And I want to write that in OpenCV CUDA like the following.
cv::cuda::add(cuda_Mat1, 1, cuda_ResultMat);
Can I use like this?
Thank you for your time.