hybridgroup / gocv

Go package for computer vision using OpenCV 4 and beyond. Includes support for DNN, CUDA, and OpenCV Contrib.
https://gocv.io
Other
6.42k stars 853 forks source link

ADD Cuda MultiplyWithStream #1142

Closed dwchoo closed 3 months ago

dwchoo commented 5 months ago

I try to use Multiply in Cuda.
MultiplyWithStream was not available.
OpenCV had Stream ready(cuda/arithm.cpp, cuda/arithm.h and opencv multiply), but GoCV did not have MultiplyWithStream. So I added the function and confirmed that it works well.
It would be nice if MultiplyWithStream were available. And I fixed the multiply opencv link because it was incorrect. link in code : https://docs.opencv.org/master/d8/d34/group__cudaarithm__elem.html#ga124315aa226260841e25cc0b9ea99dc3 correct link : https://docs.opencv.org/master/d8/d34/group__cudaarithm__elem.html#ga497cc0615bf717e1e615143b56f00591

deadprogram commented 3 months ago

Thanks you very much for the code addition @dwchoo now squash/merging.