Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Opencv
提交
19d47074
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,发现更多精彩内容 >>
提交
19d47074
编写于
4月 10, 2014
作者:
I
Ilya Lavrenov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
added macro for denoting region for suppression of "Wdeprecated-declarations"
上级
6bfbcf02
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
29 addition
and
4 deletion
+29
-4
modules/core/include/opencv2/core/base.hpp
modules/core/include/opencv2/core/base.hpp
+23
-0
modules/core/src/ocl.cpp
modules/core/src/ocl.cpp
+2
-0
modules/imgproc/src/moments.cpp
modules/imgproc/src/moments.cpp
+1
-1
modules/imgproc/src/templmatch.cpp
modules/imgproc/src/templmatch.cpp
+3
-3
未找到文件。
modules/core/include/opencv2/core/base.hpp
浏览文件 @
19d47074
...
...
@@ -210,7 +210,30 @@ enum {
# endif
#endif
//! Suppress warning "-Wdeprecated-declarations" / C4996
#if defined(_MSC_VER)
#define CV_DO_PRAGMA(x) __pragma(x)
#elif defined(__GNUC__)
#define CV_DO_PRAGMA(x) _Pragma (#x)
#else
#define CV_DO_PRAGMA(x)
#endif
#ifdef _MSC_VER
#define CV_SUPPRESS_DEPRECATED_START \
CV_DO_PRAGMA(warning(push)) \
CV_DO_PRAGMA(warning(disable: 4996))
#define CV_SUPPRESS_DEPRECATED_END CV_DO_PRAGMA(warning(pop))
#elif defined __GNUC__
#define CV_SUPPRESS_DEPRECATED_START \
CV_DO_PRAGMA(GCC diagnostic push) \
CV_DO_PRAGMA(GCC diagnostic ignored "-Wdeprecated-declarations")
#define CV_SUPPRESS_DEPRECATED_END CV_DO_PRAGMA(GCC diagnostic pop)
#else
#define CV_SUPPRESS_DEPRECATED_START
#define CV_SUPPRESS_DEPRECATED_END
#endif
//! Signals an error and raises the exception.
/*!
...
...
modules/core/src/ocl.cpp
浏览文件 @
19d47074
...
...
@@ -4466,7 +4466,9 @@ struct Image2D::Impl
else
#endif
{
CV_SUPPRESS_DEPRECATED_START
handle
=
clCreateImage2D
(
context
,
CL_MEM_READ_WRITE
,
&
format
,
src
.
cols
,
src
.
rows
,
0
,
NULL
,
&
err
);
CV_SUPPRESS_DEPRECATED_END
}
CV_OclDbgAssert
(
err
==
CL_SUCCESS
);
...
...
modules/imgproc/src/moments.cpp
浏览文件 @
19d47074
...
...
@@ -466,7 +466,7 @@ cv::Moments cv::moments( InputArray _src, bool binary )
if
(
cn
>
1
)
CV_Error
(
CV_StsBadArg
,
"Invalid image type (must be single-channel)"
);
#if
(IPP_VERSION_X100 >= 801)
#if
IPP_VERSION_X100 >= 801 && !defined HAVE_IPP_ICV_ONLY
if
(
!
binary
)
{
IppiSize
roi
=
{
mat
.
cols
,
mat
.
rows
};
...
...
modules/imgproc/src/templmatch.cpp
浏览文件 @
19d47074
...
...
@@ -341,7 +341,7 @@ static bool ocl_matchTemplate( InputArray _img, InputArray _templ, OutputArray _
#endif
#if defined
(HAVE_IPP) && (IPP_VERSION_MAJOR >= 7)
#if defined
HAVE_IPP && IPP_VERSION_MAJOR >= 7 && !defined HAVE_IPP_ICV_ONLY
typedef
IppStatus
(
CV_STDCALL
*
ippimatchTemplate
)(
const
void
*
,
int
,
IppiSize
,
const
void
*
,
int
,
IppiSize
,
Ipp32f
*
,
int
,
IppEnum
,
Ipp8u
*
);
...
...
@@ -423,7 +423,7 @@ void crossCorr( const Mat& img, const Mat& _templ, Mat& corr,
Size
corrsize
,
int
ctype
,
Point
anchor
,
double
delta
,
int
borderType
)
{
#if defined
(HAVE_IPP) && (IPP_VERSION_MAJOR >= 7)
#if defined
HAVE_IPP && IPP_VERSION_MAJOR >= 7 && !defined HAVE_IPP_ICV_ONLY
if
(
ipp_crossCorr
(
img
,
_templ
,
corr
))
return
;
#endif
...
...
@@ -643,7 +643,7 @@ void cv::matchTemplate( InputArray _img, InputArray _templ, OutputArray _result,
return
;
#endif
#if defined
(HAVE_IPP) && (IPP_VERSION_MAJOR >= 7)
#if defined
HAVE_IPP && IPP_VERSION_MAJOR >= 7 && !defined HAVE_IPP_ICV_ONLY
if
(
method
==
CV_TM_SQDIFF
&&
ipp_sqrDistance
(
img
,
templ
,
result
))
return
;
#endif
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录