Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
12dcb155
Commit
12dcb155
authored
Sep 24, 2015
by
Dan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Missed one conversion of CV_TYPE to cv::DataType
parent
00c29307
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Thrust_interop.hpp
...p/tutorial_code/gpu/gpu-thrust-interop/Thrust_interop.hpp
+1
-1
No files found.
samples/cpp/tutorial_code/gpu/gpu-thrust-interop/Thrust_interop.hpp
View file @
12dcb155
...
...
@@ -18,7 +18,7 @@ template<typename T> struct step_functor : public thrust::unary_function<int, in
__host__
__device__
step_functor
(
int
columns_
,
int
step_
,
int
channels_
=
1
)
:
columns
(
columns_
),
step
(
step_
),
channels
(
channels_
)
{
};
__host__
step_functor
(
cv
::
cuda
::
GpuMat
&
mat
)
{
CV_Assert
(
mat
.
depth
()
==
CV_TYPE
<
T
>::
DEPTH
);
CV_Assert
(
mat
.
depth
()
==
cv
::
DataType
<
T
>::
depth
);
columns
=
mat
.
cols
;
step
=
mat
.
step
/
sizeof
(
T
);
channels
=
mat
.
channels
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment