Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Opencv
提交
c17e9ef7
O
Opencv
项目概览
Greenplum
/
Opencv
11 个月 前同步成功
通知
7
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
Opencv
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
c17e9ef7
编写于
2月 22, 2013
作者:
A
Andrey Kamaev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Repair binary compatibility of ocl module
上级
995154d1
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
20 addition
and
19 deletion
+20
-19
modules/ocl/include/opencv2/ocl/ocl.hpp
modules/ocl/include/opencv2/ocl/ocl.hpp
+16
-15
modules/ocl/src/arithm.cpp
modules/ocl/src/arithm.cpp
+4
-4
未找到文件。
modules/ocl/include/opencv2/ocl/ocl.hpp
浏览文件 @
c17e9ef7
...
@@ -102,7 +102,7 @@ namespace cv
...
@@ -102,7 +102,7 @@ namespace cv
//this function enable ocl module to use customized cl_context and cl_command_queue
//this function enable ocl module to use customized cl_context and cl_command_queue
//getDevice also need to be called before this function
//getDevice also need to be called before this function
CV_EXPORTS
void
setDeviceEx
(
Info
&
oclinfo
,
void
*
ctx
,
void
*
qu
,
int
devnum
=
0
);
CV_EXPORTS
void
setDeviceEx
(
Info
&
oclinfo
,
void
*
ctx
,
void
*
qu
,
int
devnum
=
0
);
//////////////////////////////// Error handling ////////////////////////
//////////////////////////////// Error handling ////////////////////////
CV_EXPORTS
void
error
(
const
char
*
error_string
,
const
char
*
file
,
const
int
line
,
const
char
*
func
);
CV_EXPORTS
void
error
(
const
char
*
error_string
,
const
char
*
file
,
const
int
line
,
const
char
*
func
);
...
@@ -126,21 +126,21 @@ namespace cv
...
@@ -126,21 +126,21 @@ namespace cv
};
};
//! Calls a kernel, by string. Pass globalThreads = NULL, and cleanUp = true, to finally clean-up without executing.
//! Calls a kernel, by string. Pass globalThreads = NULL, and cleanUp = true, to finally clean-up without executing.
CV_EXPORTS
double
openCLExecuteKernelInterop
(
Context
*
clCxt
,
CV_EXPORTS
double
openCLExecuteKernelInterop
(
Context
*
clCxt
,
const
char
**
source
,
string
kernelName
,
const
char
**
source
,
string
kernelName
,
size_t
globalThreads
[
3
],
size_t
localThreads
[
3
],
size_t
globalThreads
[
3
],
size_t
localThreads
[
3
],
std
::
vector
<
std
::
pair
<
size_t
,
const
void
*>
>
&
args
,
std
::
vector
<
std
::
pair
<
size_t
,
const
void
*>
>
&
args
,
int
channels
,
int
depth
,
const
char
*
build_options
,
int
channels
,
int
depth
,
const
char
*
build_options
,
bool
finish
=
true
,
bool
measureKernelTime
=
false
,
bool
finish
=
true
,
bool
measureKernelTime
=
false
,
bool
cleanUp
=
true
);
bool
cleanUp
=
true
);
//! Calls a kernel, by file. Pass globalThreads = NULL, and cleanUp = true, to finally clean-up without executing.
//! Calls a kernel, by file. Pass globalThreads = NULL, and cleanUp = true, to finally clean-up without executing.
CV_EXPORTS
double
openCLExecuteKernelInterop
(
Context
*
clCxt
,
CV_EXPORTS
double
openCLExecuteKernelInterop
(
Context
*
clCxt
,
const
char
**
fileName
,
const
int
numFiles
,
string
kernelName
,
const
char
**
fileName
,
const
int
numFiles
,
string
kernelName
,
size_t
globalThreads
[
3
],
size_t
localThreads
[
3
],
size_t
globalThreads
[
3
],
size_t
localThreads
[
3
],
std
::
vector
<
std
::
pair
<
size_t
,
const
void
*>
>
&
args
,
std
::
vector
<
std
::
pair
<
size_t
,
const
void
*>
>
&
args
,
int
channels
,
int
depth
,
const
char
*
build_options
,
int
channels
,
int
depth
,
const
char
*
build_options
,
bool
finish
=
true
,
bool
measureKernelTime
=
false
,
bool
finish
=
true
,
bool
measureKernelTime
=
false
,
bool
cleanUp
=
true
);
bool
cleanUp
=
true
);
class
CV_EXPORTS
oclMatExpr
;
class
CV_EXPORTS
oclMatExpr
;
...
@@ -487,21 +487,22 @@ namespace cv
...
@@ -487,21 +487,22 @@ namespace cv
CV_EXPORTS
void
bitwise_xor
(
const
oclMat
&
src1
,
const
Scalar
&
s
,
oclMat
&
dst
,
const
oclMat
&
mask
=
oclMat
());
CV_EXPORTS
void
bitwise_xor
(
const
oclMat
&
src1
,
const
Scalar
&
s
,
oclMat
&
dst
,
const
oclMat
&
mask
=
oclMat
());
//! Logical operators
//! Logical operators
CV_EXPORTS
oclMatExpr
operator
~
(
const
oclMat
&
src
);
CV_EXPORTS
oclMat
operator
~
(
const
oclMat
&
);
CV_EXPORTS
oclMatExpr
operator
|
(
const
oclMat
&
src1
,
const
oclMat
&
src2
);
CV_EXPORTS
oclMat
operator
|
(
const
oclMat
&
,
const
oclMat
&
);
CV_EXPORTS
oclMatExpr
operator
&
(
const
oclMat
&
src1
,
const
oclMat
&
src2
);
CV_EXPORTS
oclMat
operator
&
(
const
oclMat
&
,
const
oclMat
&
);
CV_EXPORTS
oclMatExpr
operator
^
(
const
oclMat
&
src1
,
const
oclMat
&
src2
);
CV_EXPORTS
oclMat
operator
^
(
const
oclMat
&
,
const
oclMat
&
);
//! Mathematics operators
//! Mathematics operators
CV_EXPORTS
oclMatExpr
operator
+
(
const
oclMat
&
src1
,
const
oclMat
&
src2
);
CV_EXPORTS
oclMatExpr
operator
+
(
const
oclMat
&
src1
,
const
oclMat
&
src2
);
CV_EXPORTS
oclMatExpr
operator
-
(
const
oclMat
&
src1
,
const
oclMat
&
src2
);
CV_EXPORTS
oclMatExpr
operator
-
(
const
oclMat
&
src1
,
const
oclMat
&
src2
);
CV_EXPORTS
oclMatExpr
operator
*
(
const
oclMat
&
src1
,
const
oclMat
&
src2
);
CV_EXPORTS
oclMatExpr
operator
*
(
const
oclMat
&
src1
,
const
oclMat
&
src2
);
CV_EXPORTS
oclMatExpr
operator
/
(
const
oclMat
&
src1
,
const
oclMat
&
src2
);
CV_EXPORTS
oclMatExpr
operator
/
(
const
oclMat
&
src1
,
const
oclMat
&
src2
);
//! computes convolution of two images
//! computes convolution of two images
//! support only CV_32FC1 type
//! support only CV_32FC1 type
CV_EXPORTS
void
convolve
(
const
oclMat
&
image
,
const
oclMat
&
temp1
,
oclMat
&
result
);
CV_EXPORTS
void
convolve
(
const
oclMat
&
image
,
const
oclMat
&
temp1
,
oclMat
&
result
);
CV_EXPORTS
void
cvtColor
(
const
oclMat
&
src
,
oclMat
&
dst
,
int
code
,
int
dcn
=
0
);
CV_EXPORTS
void
cvtColor
(
const
oclMat
&
src
,
oclMat
&
dst
,
int
code
,
int
dcn
=
0
);
//////////////////////////////// Filter Engine ////////////////////////////////
//////////////////////////////// Filter Engine ////////////////////////////////
...
...
modules/ocl/src/arithm.cpp
浏览文件 @
c17e9ef7
...
@@ -2125,22 +2125,22 @@ void cv::ocl::bitwise_xor(const oclMat &src1, const Scalar &src2, oclMat &dst, c
...
@@ -2125,22 +2125,22 @@ void cv::ocl::bitwise_xor(const oclMat &src1, const Scalar &src2, oclMat &dst, c
bitwise_scalar
(
src1
,
src2
,
dst
,
mask
,
kernelName
,
&
arithm_bitwise_xor_scalar
);
bitwise_scalar
(
src1
,
src2
,
dst
,
mask
,
kernelName
,
&
arithm_bitwise_xor_scalar
);
}
}
oclMat
Expr
cv
::
ocl
::
operator
~
(
const
oclMat
&
src
)
oclMat
cv
::
ocl
::
operator
~
(
const
oclMat
&
src
)
{
{
return
oclMatExpr
(
src
,
oclMat
(),
MAT_NOT
);
return
oclMatExpr
(
src
,
oclMat
(),
MAT_NOT
);
}
}
oclMat
Expr
cv
::
ocl
::
operator
|
(
const
oclMat
&
src1
,
const
oclMat
&
src2
)
oclMat
cv
::
ocl
::
operator
|
(
const
oclMat
&
src1
,
const
oclMat
&
src2
)
{
{
return
oclMatExpr
(
src1
,
src2
,
MAT_OR
);
return
oclMatExpr
(
src1
,
src2
,
MAT_OR
);
}
}
oclMat
Expr
cv
::
ocl
::
operator
&
(
const
oclMat
&
src1
,
const
oclMat
&
src2
)
oclMat
cv
::
ocl
::
operator
&
(
const
oclMat
&
src1
,
const
oclMat
&
src2
)
{
{
return
oclMatExpr
(
src1
,
src2
,
MAT_AND
);
return
oclMatExpr
(
src1
,
src2
,
MAT_AND
);
}
}
oclMat
Expr
cv
::
ocl
::
operator
^
(
const
oclMat
&
src1
,
const
oclMat
&
src2
)
oclMat
cv
::
ocl
::
operator
^
(
const
oclMat
&
src1
,
const
oclMat
&
src2
)
{
{
return
oclMatExpr
(
src1
,
src2
,
MAT_XOR
);
return
oclMatExpr
(
src1
,
src2
,
MAT_XOR
);
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录