Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Can I use cv::cuda::add for per-element addition to Mat?

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.