mirror of
https://github.com/opencv/opencv.git
synced 2024-11-24 03:00:14 +08:00
Merge branch 'thrust_tutorial' of http://github.com/dtmoodie/opencv into thrust_tutorial
This commit is contained in:
commit
aa14b6d2f3
@ -27,7 +27,7 @@ template<typename T> struct step_functor : public thrust::unary_function<int, in
|
||||
int operator()(int x) const
|
||||
{
|
||||
int row = x / columns;
|
||||
int idx = (row * step) + (x % columns)*channels;
|
||||
int idx = (row * step) + (x % columns)*channels;
|
||||
return idx;
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user