Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Opencv
提交
ab691a4a
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,发现更多精彩内容 >>
提交
ab691a4a
编写于
4月 09, 2014
作者:
A
Alexander Alekhin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ipp: some functions are not available in the ICV package #2
上级
0d477ffe
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
22 addition
and
22 deletion
+22
-22
modules/core/src/convert.cpp
modules/core/src/convert.cpp
+1
-1
modules/core/src/copy.cpp
modules/core/src/copy.cpp
+1
-1
modules/core/src/mathfuncs.cpp
modules/core/src/mathfuncs.cpp
+8
-8
modules/core/src/matrix.cpp
modules/core/src/matrix.cpp
+1
-1
modules/imgproc/src/accum.cpp
modules/imgproc/src/accum.cpp
+3
-3
modules/imgproc/src/smooth.cpp
modules/imgproc/src/smooth.cpp
+2
-2
modules/imgproc/src/thresh.cpp
modules/imgproc/src/thresh.cpp
+3
-3
modules/video/src/motempl.cpp
modules/video/src/motempl.cpp
+3
-3
未找到文件。
modules/core/src/convert.cpp
浏览文件 @
ab691a4a
...
...
@@ -1079,7 +1079,7 @@ dtype* dst, size_t dstep, Size size, double* scale) \
cvtScale_(src, sstep, dst, dstep, size, (wtype)scale[0], (wtype)scale[1]); \
}
#if
def HAVE_IPP
#if
defined(HAVE_IPP) && !defined(HAVE_IPP_ICV_ONLY)
#define DEF_CVT_FUNC_F(suffix, stype, dtype, ippFavor) \
static void cvt##suffix( const stype* src, size_t sstep, const uchar*, size_t, \
dtype* dst, size_t dstep, Size size, double*) \
...
...
modules/core/src/copy.cpp
浏览文件 @
ab691a4a
...
...
@@ -548,7 +548,7 @@ void flip( InputArray _src, OutputArray _dst, int flip_mode )
Mat
dst
=
_dst
.
getMat
();
size_t
esz
=
CV_ELEM_SIZE
(
type
);
#if
def HAVE_IPP
#if
defined(HAVE_IPP) && !defined(HAVE_IPP_ICV_ONLY)
typedef
IppStatus
(
CV_STDCALL
*
ippiMirror
)(
const
void
*
pSrc
,
int
srcStep
,
void
*
pDst
,
int
dstStep
,
IppiSize
roiSize
,
IppiAxis
flip
);
ippiMirror
ippFunc
=
type
==
CV_8UC1
?
(
ippiMirror
)
ippiMirror_8u_C1R
:
...
...
modules/core/src/mathfuncs.cpp
浏览文件 @
ab691a4a
...
...
@@ -238,7 +238,7 @@ float cubeRoot( float value )
static
void
Magnitude_32f
(
const
float
*
x
,
const
float
*
y
,
float
*
mag
,
int
len
)
{
#if
def HAVE_IPP
#if
defined(HAVE_IPP) && !defined(HAVE_IPP_ICV_ONLY)
IppStatus
status
=
ippsMagnitude_32f
(
x
,
y
,
mag
,
len
);
if
(
status
>=
0
)
return
;
...
...
@@ -270,7 +270,7 @@ static void Magnitude_32f(const float* x, const float* y, float* mag, int len)
static
void
Magnitude_64f
(
const
double
*
x
,
const
double
*
y
,
double
*
mag
,
int
len
)
{
#if
def HAVE_IPP
#if
defined(HAVE_IPP) && !defined(HAVE_IPP_ICV_ONLY)
IppStatus
status
=
ippsMagnitude_64f
(
x
,
y
,
mag
,
len
);
if
(
status
>=
0
)
return
;
...
...
@@ -303,7 +303,7 @@ static void Magnitude_64f(const double* x, const double* y, double* mag, int len
static
void
InvSqrt_32f
(
const
float
*
src
,
float
*
dst
,
int
len
)
{
#if
def HAVE_IPP
#if
defined(HAVE_IPP) && !defined(HAVE_IPP_ICV_ONLY)
if
(
ippsInvSqrt_32f_A21
(
src
,
dst
,
len
)
>=
0
)
return
;
#endif
...
...
@@ -351,7 +351,7 @@ static void InvSqrt_64f(const double* src, double* dst, int len)
static
void
Sqrt_32f
(
const
float
*
src
,
float
*
dst
,
int
len
)
{
#if
def HAVE_IPP
#if
defined(HAVE_IPP) && !defined(HAVE_IPP_ICV_ONLY)
if
(
ippsSqrt_32f_A21
(
src
,
dst
,
len
)
>=
0
)
return
;
#endif
...
...
@@ -384,7 +384,7 @@ static void Sqrt_32f(const float* src, float* dst, int len)
static
void
Sqrt_64f
(
const
double
*
src
,
double
*
dst
,
int
len
)
{
#if
def HAVE_IPP
#if
defined(HAVE_IPP) && !defined(HAVE_IPP_ICV_ONLY)
if
(
ippsSqrt_64f_A50
(
src
,
dst
,
len
)
>=
0
)
return
;
#endif
...
...
@@ -755,7 +755,7 @@ void polarToCart( InputArray src1, InputArray src2,
dst2
.
create
(
Angle
.
dims
,
Angle
.
size
,
type
);
Mat
X
=
dst1
.
getMat
(),
Y
=
dst2
.
getMat
();
#if
def HAVE_IPP
#if
defined(HAVE_IPP) && !defined(HAVE_IPP_ICV_ONLY)
if
(
Mag
.
isContinuous
()
&&
Angle
.
isContinuous
()
&&
X
.
isContinuous
()
&&
Y
.
isContinuous
()
&&
!
angleInDegrees
)
{
typedef
IppStatus
(
CV_STDCALL
*
ippsPolarToCart
)(
const
void
*
pSrcMagn
,
const
void
*
pSrcPhase
,
...
...
@@ -2161,7 +2161,7 @@ void pow( InputArray _src, double power, OutputArray _dst )
_src
.
copyTo
(
_dst
);
return
;
case
2
:
#if
def HAVE_IPP
#if
defined(HAVE_IPP) && !defined(HAVE_IPP_ICV_ONLY)
if
(
depth
==
CV_32F
&&
!
same
&&
(
(
_src
.
dims
()
<=
2
&&
!
ocl
::
useOpenCL
())
||
(
_src
.
dims
()
>
2
&&
_src
.
isContinuous
()
&&
_dst
.
isContinuous
())
))
{
Mat
src
=
_src
.
getMat
();
...
...
@@ -2233,7 +2233,7 @@ void pow( InputArray _src, double power, OutputArray _dst )
}
else
{
#if
def HAVE_IPP
#if
defined(HAVE_IPP) && !defined(HAVE_IPP_ICV_ONLY)
if
(
src
.
isContinuous
()
&&
dst
.
isContinuous
())
{
IppStatus
status
=
depth
==
CV_32F
?
...
...
modules/core/src/matrix.cpp
浏览文件 @
ab691a4a
...
...
@@ -2967,7 +2967,7 @@ void cv::transpose( InputArray _src, OutputArray _dst )
return
;
}
#if
def HAVE_IPP
#if
defined(HAVE_IPP) && !defined(HAVE_IPP_ICV_ONLY)
typedef
IppStatus
(
CV_STDCALL
*
ippiTranspose
)(
const
void
*
pSrc
,
int
srcStep
,
void
*
pDst
,
int
dstStep
,
IppiSize
roiSize
);
ippiTranspose
ippFunc
=
type
==
CV_8UC1
?
(
ippiTranspose
)
ippiTranspose_8u_C1R
:
...
...
modules/imgproc/src/accum.cpp
浏览文件 @
ab691a4a
...
...
@@ -457,7 +457,7 @@ void cv::accumulateSquare( InputArray _src, InputOutputArray _dst, InputArray _m
Mat
src
=
_src
.
getMat
(),
dst
=
_dst
.
getMat
(),
mask
=
_mask
.
getMat
();
#if
def HAVE_IPP
#if
defined(HAVE_IPP) && !defined(HAVE_IPP_ICV_ONLY)
if
(
src
.
dims
<=
2
||
(
src
.
isContinuous
()
&&
dst
.
isContinuous
()
&&
(
mask
.
empty
()
||
mask
.
isContinuous
())))
{
typedef
IppStatus
(
CV_STDCALL
*
ippiAddSquare
)(
const
void
*
pSrc
,
int
srcStep
,
Ipp32f
*
pSrcDst
,
int
srcdstStep
,
IppiSize
roiSize
);
...
...
@@ -535,7 +535,7 @@ void cv::accumulateProduct( InputArray _src1, InputArray _src2,
Mat
src1
=
_src1
.
getMat
(),
src2
=
_src2
.
getMat
(),
dst
=
_dst
.
getMat
(),
mask
=
_mask
.
getMat
();
#if
def HAVE_IPP
#if
defined(HAVE_IPP) && !defined(HAVE_IPP_ICV_ONLY)
if
(
src1
.
dims
<=
2
||
(
src1
.
isContinuous
()
&&
src2
.
isContinuous
()
&&
dst
.
isContinuous
()))
{
typedef
IppStatus
(
CV_STDCALL
*
ippiAddProduct
)(
const
void
*
pSrc1
,
int
src1Step
,
const
void
*
pSrc2
,
...
...
@@ -615,7 +615,7 @@ void cv::accumulateWeighted( InputArray _src, InputOutputArray _dst,
Mat
src
=
_src
.
getMat
(),
dst
=
_dst
.
getMat
(),
mask
=
_mask
.
getMat
();
#if
def HAVE_IPP
#if
defined(HAVE_IPP) && !defined(HAVE_IPP_ICV_ONLY)
if
(
src
.
dims
<=
2
||
(
src
.
isContinuous
()
&&
dst
.
isContinuous
()
&&
mask
.
isContinuous
()))
{
typedef
IppStatus
(
CV_STDCALL
*
ippiAddWeighted
)(
const
void
*
pSrc
,
int
srcStep
,
Ipp32f
*
pSrcDst
,
int
srcdstStep
,
...
...
modules/imgproc/src/smooth.cpp
浏览文件 @
ab691a4a
...
...
@@ -858,7 +858,7 @@ void cv::boxFilter( InputArray _src, OutputArray _dst, int ddepth,
return
;
#endif
#if
def HAVE_IPP
#if
defined(HAVE_IPP) && !defined(HAVE_IPP_ICV_ONLY)
int
ippBorderType
=
borderType
&
~
BORDER_ISOLATED
;
Point
ocvAnchor
,
ippAnchor
;
ocvAnchor
.
x
=
anchor
.
x
<
0
?
ksize
.
width
/
2
:
anchor
.
x
;
...
...
@@ -2018,7 +2018,7 @@ void cv::medianBlur( InputArray _src0, OutputArray _dst, int ksize )
_dst
.
create
(
src0
.
size
(),
src0
.
type
()
);
Mat
dst
=
_dst
.
getMat
();
#if defined
HAVE_IPP && IPP_VERSION_MAJOR >= 8 && IPP_VERSION_MINOR >=
1
#if defined
(HAVE_IPP) && !defined(HAVE_IPP_ICV_ONLY) && IPP_VERSION_X100 >= 80
1
#define IPP_FILTER_MEDIAN_BORDER(ippType, ippDataType, flavor) \
do \
{ \
...
...
modules/imgproc/src/thresh.cpp
浏览文件 @
ab691a4a
...
...
@@ -68,7 +68,7 @@ thresh_8u( const Mat& _src, Mat& _dst, uchar thresh, uchar maxval, int type )
return
;
#endif
#if
def HAVE_IPP
#if
defined(HAVE_IPP) && !defined(HAVE_IPP_ICV_ONLY)
IppiSize
sz
=
{
roi
.
width
,
roi
.
height
};
switch
(
type
)
{
...
...
@@ -306,7 +306,7 @@ thresh_16s( const Mat& _src, Mat& _dst, short thresh, short maxval, int type )
return
;
#endif
#if
def HAVE_IPP
#if
defined(HAVE_IPP) && !defined(HAVE_IPP_ICV_ONLY)
IppiSize
sz
=
{
roi
.
width
,
roi
.
height
};
switch
(
type
)
{
...
...
@@ -497,7 +497,7 @@ thresh_32f( const Mat& _src, Mat& _dst, float thresh, float maxval, int type )
return
;
#endif
#if
def HAVE_IPP
#if
defined(HAVE_IPP) && !defined(HAVE_IPP_ICV_ONLY)
IppiSize
sz
=
{
roi
.
width
,
roi
.
height
};
switch
(
type
)
{
...
...
modules/video/src/motempl.cpp
浏览文件 @
ab691a4a
...
...
@@ -80,7 +80,7 @@ void cv::updateMotionHistory( InputArray _silhouette, InputOutputArray _mhi,
Mat
silh
=
_silhouette
.
getMat
(),
mhi
=
_mhi
.
getMat
();
Size
size
=
silh
.
size
();
#if
def HAVE_IPP
#if
defined(HAVE_IPP) && !defined(HAVE_IPP_ICV_ONLY)
int
silhstep
=
(
int
)
silh
.
step
,
mhistep
=
(
int
)
mhi
.
step
;
#endif
...
...
@@ -88,13 +88,13 @@ void cv::updateMotionHistory( InputArray _silhouette, InputOutputArray _mhi,
{
size
.
width
*=
size
.
height
;
size
.
height
=
1
;
#if
def HAVE_IPP
#if
defined(HAVE_IPP) && !defined(HAVE_IPP_ICV_ONLY)
silhstep
=
(
int
)
silh
.
total
();
mhistep
=
(
int
)
mhi
.
total
()
*
sizeof
(
Ipp32f
);
#endif
}
#if
def HAVE_IPP
#if
defined(HAVE_IPP) && !defined(HAVE_IPP_ICV_ONLY)
IppStatus
status
=
ippiUpdateMotionHistory_8u32f_C1IR
((
const
Ipp8u
*
)
silh
.
data
,
silhstep
,
(
Ipp32f
*
)
mhi
.
data
,
mhistep
,
ippiSize
(
size
.
width
,
size
.
height
),
(
Ipp32f
)
timestamp
,
(
Ipp32f
)
duration
);
if
(
status
>=
0
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录