Merge branch 'thrust_tutorial' of http://github.com/dtmoodie/opencv into thrust_tutorial

pull/5400/head
Dan 9 years ago
commit aa14b6d2f3
  1. 2
      samples/cpp/tutorial_code/gpu/gpu-thrust-interop/Thrust_interop.hpp

@ -27,7 +27,7 @@ template<typename T> struct step_functor : public thrust::unary_function<int, in
int operator()(int x) const int operator()(int x) const
{ {
int row = x / columns; int row = x / columns;
int idx = (row * step) + (x % columns)*channels; int idx = (row * step) + (x % columns)*channels;
return idx; return idx;
} }
}; };

Loading…
Cancel
Save