1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 23:33:05 +04:00

Add thrust tutorial in the GPU main page documentation.

This commit is contained in:
catree
2017-01-24 21:05:05 +01:00
parent 2bac66a181
commit 6eed6a8e9f
2 changed files with 9 additions and 2 deletions
@@ -1,4 +1,4 @@
Using a cv::cuda::GpuMat with thrust
Using a cv::cuda::GpuMat with thrust {#tutorial_gpu_thrust_interop}
===========================================
Goal
@@ -67,4 +67,4 @@ Next we will determine how many values are greater than 0 by using thrust::count
@snippet samples/cpp/tutorial_code/gpu/gpu-thrust-interop/main.cu pred_greater
We will use those results to create an output buffer for storing the copied values, we will then use copy_if with the same predicate to populate the output buffer.
Lastly we will download the values into a CPU mat for viewing.
Lastly we will download the values into a CPU mat for viewing.