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
5522c14e
Commit
5522c14e
authored
Apr 14, 2014
by
Andrey Pavlenko
Committed by
OpenCV Buildbot
Apr 14, 2014
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2607 from ilya-lavrenov:warn_sup
parents
f104d5be
19d47074
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
4 deletions
+29
-4
base.hpp
modules/core/include/opencv2/core/base.hpp
+23
-0
ocl.cpp
modules/core/src/ocl.cpp
+2
-0
moments.cpp
modules/imgproc/src/moments.cpp
+1
-1
templmatch.cpp
modules/imgproc/src/templmatch.cpp
+3
-3
No files found.
modules/core/include/opencv2/core/base.hpp
View file @
5522c14e
...
...
@@ -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
View file @
5522c14e
...
...
@@ -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
View file @
5522c14e
...
...
@@ -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
View file @
5522c14e
...
...
@@ -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
...
...
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