Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Opencv
提交
25d2ab8a
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,发现更多精彩内容 >>
提交
25d2ab8a
编写于
1月 31, 2014
作者:
A
Andrey Pavlenko
提交者:
OpenCV Buildbot
1月 31, 2014
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #2218 from alalek:fix_defects_code_coverity
上级
6925dbd9
6fa49f6e
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
33 addition
and
6 deletion
+33
-6
modules/core/include/opencv2/core/ocl.hpp
modules/core/include/opencv2/core/ocl.hpp
+3
-0
modules/core/src/ocl.cpp
modules/core/src/ocl.cpp
+22
-1
modules/java/generator/gen_java.py
modules/java/generator/gen_java.py
+2
-2
modules/java/generator/src/cpp/Mat.cpp
modules/java/generator/src/cpp/Mat.cpp
+1
-1
modules/java/generator/src/cpp/utils.cpp
modules/java/generator/src/cpp/utils.cpp
+2
-2
modules/video/src/lkpyramid.cpp
modules/video/src/lkpyramid.cpp
+3
-0
未找到文件。
modules/core/include/opencv2/core/ocl.hpp
浏览文件 @
25d2ab8a
...
...
@@ -561,6 +561,9 @@ public:
explicit
PlatformInfo2
(
void
*
id
);
~
PlatformInfo2
();
PlatformInfo2
(
const
PlatformInfo2
&
i
);
PlatformInfo2
&
operator
=
(
const
PlatformInfo2
&
i
);
String
name
()
const
;
String
vendor
()
const
;
String
version
()
const
;
...
...
modules/core/src/ocl.cpp
浏览文件 @
25d2ab8a
...
...
@@ -3691,6 +3691,7 @@ struct PlatformInfo2::Impl
{
Impl
(
void
*
id
)
{
refcount
=
1
;
handle
=
*
(
cl_platform_id
*
)
id
;
getDevices
(
devices
,
handle
);
}
...
...
@@ -3724,6 +3725,26 @@ PlatformInfo2::~PlatformInfo2()
p
->
release
();
}
PlatformInfo2
::
PlatformInfo2
(
const
PlatformInfo2
&
i
)
{
if
(
i
.
p
)
i
.
p
->
addref
();
this
->
p
=
i
.
p
;
}
PlatformInfo2
&
PlatformInfo2
::
operator
=
(
const
PlatformInfo2
&
i
)
{
if
(
i
.
p
!=
this
->
p
)
{
if
(
i
.
p
)
i
.
p
->
addref
();
if
(
this
->
p
)
this
->
p
->
release
();
this
->
p
=
i
.
p
;
}
return
*
this
;
}
int
PlatformInfo2
::
deviceNumber
()
const
{
return
p
?
(
int
)
p
->
devices
.
size
()
:
0
;
...
...
@@ -3731,7 +3752,7 @@ int PlatformInfo2::deviceNumber() const
void
PlatformInfo2
::
getDevice
(
Device
&
device
,
int
d
)
const
{
CV_Assert
(
d
<
(
int
)
p
->
devices
.
size
()
);
CV_Assert
(
p
&&
d
<
(
int
)
p
->
devices
.
size
()
);
if
(
p
)
device
.
set
(
p
->
devices
[
d
]);
}
...
...
modules/java/generator/gen_java.py
浏览文件 @
25d2ab8a
...
...
@@ -398,7 +398,7 @@ JNIEXPORT jdoubleArray JNICALL Java_org_opencv_core_Core_n_1minMaxLocManual
return result;
} catch(c
v::Exception
e) {
} catch(c
onst cv::Exception&
e) {
LOGD("Core::n_1minMaxLoc() catched cv::Exception: %s", e.what());
jclass je = env->FindClass("org/opencv/core/CvException");
if(!je) je = env->FindClass("java/lang/Exception");
...
...
@@ -471,7 +471,7 @@ JNIEXPORT jdoubleArray JNICALL Java_org_opencv_core_Core_n_1getTextSize
return result;
} catch(c
v::Exception
e) {
} catch(c
onst cv::Exception&
e) {
LOGD("Core::n_1getTextSize() catched cv::Exception: %s", e.what());
jclass je = env->FindClass("org/opencv/core/CvException");
if(!je) je = env->FindClass("java/lang/Exception");
...
...
modules/java/generator/src/cpp/Mat.cpp
浏览文件 @
25d2ab8a
...
...
@@ -467,7 +467,7 @@ JNIEXPORT jint JNICALL Java_org_opencv_core_Mat_n_1dims
LOGD
(
"%s"
,
method_name
);
Mat
*
me
=
(
Mat
*
)
self
;
//TODO: check for NULL
return
me
->
dims
;
}
catch
(
c
v
::
Exception
e
)
{
}
catch
(
c
onst
cv
::
Exception
&
e
)
{
throwJavaException
(
env
,
&
e
,
method_name
);
}
catch
(...)
{
throwJavaException
(
env
,
0
,
method_name
);
...
...
modules/java/generator/src/cpp/utils.cpp
浏览文件 @
25d2ab8a
...
...
@@ -48,7 +48,7 @@ JNIEXPORT void JNICALL Java_org_opencv_android_Utils_nBitmapToMat2
}
AndroidBitmap_unlockPixels
(
env
,
bitmap
);
return
;
}
catch
(
c
v
::
Exception
e
)
{
}
catch
(
c
onst
cv
::
Exception
&
e
)
{
AndroidBitmap_unlockPixels
(
env
,
bitmap
);
LOGE
(
"nBitmapToMat catched cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
...
...
@@ -130,7 +130,7 @@ JNIEXPORT void JNICALL Java_org_opencv_android_Utils_nMatToBitmap2
}
AndroidBitmap_unlockPixels
(
env
,
bitmap
);
return
;
}
catch
(
c
v
::
Exception
e
)
{
}
catch
(
c
onst
cv
::
Exception
&
e
)
{
AndroidBitmap_unlockPixels
(
env
,
bitmap
);
LOGE
(
"nMatToBitmap catched cv::Exception: %s"
,
e
.
what
());
jclass
je
=
env
->
FindClass
(
"org/opencv/core/CvException"
);
...
...
modules/video/src/lkpyramid.cpp
浏览文件 @
25d2ab8a
...
...
@@ -598,6 +598,7 @@ namespace cv
struct
dim3
{
unsigned
int
x
,
y
,
z
;
dim3
()
:
x
(
0
),
y
(
0
),
z
(
0
)
{
}
};
public:
PyrLKOpticalFlow
()
...
...
@@ -607,6 +608,8 @@ namespace cv
iters
=
30
;
derivLambda
=
0.5
;
useInitialFlow
=
false
;
waveSize
=
0
;
}
bool
checkParam
()
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录