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
41d046a2
Commit
41d046a2
authored
Nov 27, 2013
by
Ilya Lavrenov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
restored ocl_cvtcolor.cl
parent
d2e13183
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
5 deletions
+3
-5
ocl.cpp
modules/core/src/ocl.cpp
+1
-2
color.cpp
modules/imgproc/src/color.cpp
+2
-3
cvt_color.cl
modules/ocl/src/opencl/cvt_color.cl
+0
-0
No files found.
modules/core/src/ocl.cpp
View file @
41d046a2
...
...
@@ -41,7 +41,6 @@
#include "precomp.hpp"
#include <map>
#include <iostream>
/*
Part of the file is an extract from the standard OpenCL headers from Khronos site.
...
...
@@ -2354,7 +2353,7 @@ struct Program::Impl
retval
=
clBuildProgram
(
handle
,
n
,
(
const
cl_device_id
*
)
deviceList
,
buildflags
.
c_str
(),
0
,
0
);
if
(
retval
<
0
/*== CL_BUILD_PROGRAM_FAILURE*/
)
if
(
retval
==
CL_BUILD_PROGRAM_FAILURE
)
{
char
buf
[
1
<<
16
];
size_t
retsz
=
0
;
...
...
modules/imgproc/src/color.cpp
View file @
41d046a2
...
...
@@ -92,7 +92,6 @@
#include "precomp.hpp"
#include "opencl_kernels.hpp"
#include <limits>
#include <iostream>
#define CV_DESCALE(x,n) (((x) + (1 << ((n)-1))) >> (n))
...
...
@@ -3045,8 +3044,8 @@ void cv::cvtColor( InputArray _src, OutputArray _dst, int code, int dcn )
int
stype
=
_src
.
type
();
int
scn
=
CV_MAT_CN
(
stype
),
depth
=
CV_MAT_DEPTH
(
stype
),
bidx
;
if
(
use_opencl
/*&& ocl_cvtColor(_src, _dst, code, dcn)*/
)
return
(
void
)
ocl_cvtColor
(
_src
,
_dst
,
code
,
dcn
)
;
if
(
use_opencl
&&
ocl_cvtColor
(
_src
,
_dst
,
code
,
dcn
)
)
return
;
Mat
src
=
_src
.
getMat
(),
dst
;
Size
sz
=
src
.
size
();
...
...
modules/ocl/src/opencl/cvt_color.cl
View file @
41d046a2
This diff is collapsed.
Click to expand it.
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