mirror of
https://github.com/opencv/opencv.git
synced 2025-06-06 17:03:18 +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 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…
Reference in New Issue
Block a user