morousg / cvGPUSpeedup

A faster implementation of OpenCV-CUDA that uses OpenCV objects, and more!
Apache License 2.0
37 stars 5 forks source link

Add num_elems_y and num_elems_z to all WriteType Operations #104

Open morousg opened 3 months ago

morousg commented 3 months ago

Since the "activeThreads" thread filter, depends on the dimensions of the output data, it makes sense to be able to ask the WriteDeviceFunction for that information.

We keep the activeThreads parameter in the Source versions of the Read and ReadBack Device Functions, because we may want to use less threads in the "z" axis in some ocasions. So, we allow for the user to have the final word on "activeThreads" values.