Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
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_contrib
Commits
271f2bcf
Commit
271f2bcf
authored
Aug 23, 2018
by
Hamdi Sahloul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UMat::getMat(): Utilize `ACCESS_READ` instead of 0
parent
e38c5505
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
sparse_matching_gpc.cpp
modules/optflow/src/sparse_matching_gpc.cpp
+1
-1
No files found.
modules/optflow/src/sparse_matching_gpc.cpp
View file @
271f2bcf
...
...
@@ -278,7 +278,7 @@ bool ocl_getAllDCTDescriptorsForImage( const Mat *imgCh, std::vector< GPCPatchDe
(
int
)
globSize
[
0
],
(
int
)
globSize
[
1
],
(
int
)
patchRadius
)
.
run
(
2
,
globSize
,
0
,
true
)
==
false
)
return
false
;
Mat
cpuOut
=
out
.
getMat
(
0
);
Mat
cpuOut
=
out
.
getMat
(
ACCESS_READ
);
for
(
int
i
=
0
;
i
+
2
*
patchRadius
<
sz
.
height
;
++
i
)
for
(
int
j
=
0
;
j
+
2
*
patchRadius
<
sz
.
width
;
++
j
)
descr
.
push_back
(
*
cpuOut
.
ptr
<
GPCPatchDescriptor
>
(
i
*
globSize
[
1
]
+
j
)
);
...
...
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