Merge pull request #8068 from catree:thrust_tutorial

pull/8088/head
Maksim Shabunin 8 years ago
commit 6f848b8520
  1. 4
      doc/tutorials/gpu/gpu-thrust-interop/gpu_thrust_interop.markdown
  2. 7
      doc/tutorials/gpu/table_of_content_gpu.markdown

@ -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.

@ -13,3 +13,10 @@ run the OpenCV algorithms.
This will give a good grasp on how to approach coding on the GPU module, once you already know
how to handle the other modules. As a test case it will port the similarity methods from the
tutorial @ref tutorial_video_input_psnr_ssim to the GPU.
- @subpage tutorial_gpu_thrust_interop
*Compatibility:* \>= OpenCV 3.0
This tutorial will show you how to wrap a GpuMat into a thrust iterator in order to be able to
use the functions in the thrust library.

Loading…
Cancel
Save