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
ba0ab8ed
Commit
ba0ab8ed
authored
Apr 23, 2014
by
Alexander Alekhin
Committed by
OpenCV Buildbot
Apr 23, 2014
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2647 from vbystricky:ipp_norm
parents
c2319285
dfe6adeb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
16 deletions
+29
-16
stat.cpp
modules/core/src/stat.cpp
+29
-16
No files found.
modules/core/src/stat.cpp
View file @
ba0ab8ed
...
...
@@ -2442,30 +2442,43 @@ double cv::norm( InputArray _src1, InputArray _src2, int normType, InputArray _m
}
else
{
typedef
IppStatus
(
CV_STDCALL
*
ippiNormRelFunc
)(
const
void
*
,
int
,
const
void
*
,
int
,
IppiSize
,
Ipp64f
*
,
IppHintAlgorithm
hint
);
ippiNormRelFunc
ippFunc
=
typedef
IppStatus
(
CV_STDCALL
*
ippiNormRelFuncNoHint
)(
const
void
*
,
int
,
const
void
*
,
int
,
IppiSize
,
Ipp64f
*
);
typedef
IppStatus
(
CV_STDCALL
*
ippiNormRelFuncHint
)(
const
void
*
,
int
,
const
void
*
,
int
,
IppiSize
,
Ipp64f
*
,
IppHintAlgorithm
hint
);
ippiNormRelFuncNoHint
ippFuncNoHint
=
normType
==
NORM_INF
?
(
type
==
CV_8UC1
?
(
ippiNormRelFunc
)
ippiNormRel_Inf_8u_C1R
:
type
==
CV_16UC1
?
(
ippiNormRelFunc
)
ippiNormRel_Inf_16u_C1R
:
type
==
CV_16SC1
?
(
ippiNormRelFunc
)
ippiNormRel_Inf_16s_C1R
:
type
==
CV_32FC1
?
(
ippiNormRelFunc
)
ippiNormRel_Inf_32f_C1R
:
(
type
==
CV_8UC1
?
(
ippiNormRelFunc
NoHint
)
ippiNormRel_Inf_8u_C1R
:
type
==
CV_16UC1
?
(
ippiNormRelFunc
NoHint
)
ippiNormRel_Inf_16u_C1R
:
type
==
CV_16SC1
?
(
ippiNormRelFunc
NoHint
)
ippiNormRel_Inf_16s_C1R
:
type
==
CV_32FC1
?
(
ippiNormRelFunc
NoHint
)
ippiNormRel_Inf_32f_C1R
:
0
)
:
normType
==
NORM_L1
?
(
type
==
CV_8UC1
?
(
ippiNormRelFunc
)
ippiNormRel_L1_8u_C1R
:
type
==
CV_16UC1
?
(
ippiNormRelFunc
)
ippiNormRel_L1_16u_C1R
:
type
==
CV_16SC1
?
(
ippiNormRelFunc
)
ippiNormRel_L1_16s_C1R
:
type
==
CV_32FC1
?
(
ippiNormRelFunc
)
ippiNormRel_L1_32f_C1R
:
(
type
==
CV_8UC1
?
(
ippiNormRelFuncNoHint
)
ippiNormRel_L1_8u_C1R
:
type
==
CV_16UC1
?
(
ippiNormRelFuncNoHint
)
ippiNormRel_L1_16u_C1R
:
type
==
CV_16SC1
?
(
ippiNormRelFuncNoHint
)
ippiNormRel_L1_16s_C1R
:
0
)
:
normType
==
NORM_L2
||
normType
==
NORM_L2SQR
?
(
type
==
CV_8UC1
?
(
ippiNormRelFunc
)
ippiNormRel_L2_8u_C1R
:
type
==
CV_16UC1
?
(
ippiNormRelFunc
)
ippiNormRel_L2_16u_C1R
:
type
==
CV_16SC1
?
(
ippiNormRelFunc
)
ippiNormRel_L2_16s_C1R
:
type
==
CV_32FC1
?
(
ippiNormRelFunc
)
ippiNormRel_L2_32f_C1R
:
(
type
==
CV_8UC1
?
(
ippiNormRelFuncNoHint
)
ippiNormRel_L2_8u_C1R
:
type
==
CV_16UC1
?
(
ippiNormRelFuncNoHint
)
ippiNormRel_L2_16u_C1R
:
type
==
CV_16SC1
?
(
ippiNormRelFuncNoHint
)
ippiNormRel_L2_16s_C1R
:
0
)
:
0
;
if
(
ippFunc
)
ippiNormRelFuncHint
ippFuncHint
=
normType
==
NORM_L1
?
(
type
==
CV_32FC1
?
(
ippiNormRelFuncHint
)
ippiNormRel_L1_32f_C1R
:
0
)
:
normType
==
NORM_L2
||
normType
==
NORM_L2SQR
?
(
type
==
CV_32FC1
?
(
ippiNormRelFuncHint
)
ippiNormRel_L2_32f_C1R
:
0
)
:
0
;
if
(
ippFuncNoHint
)
{
Ipp64f
norm
;
if
(
ippFuncNoHint
(
src1
.
data
,
(
int
)
src1
.
step
[
0
],
src2
.
data
,
(
int
)
src2
.
step
[
0
],
sz
,
&
norm
)
>=
0
)
return
(
double
)
norm
;
setIppErrorStatus
();
}
if
(
ippFuncHint
)
{
Ipp64f
norm
;
if
(
ippFunc
(
src1
.
data
,
(
int
)
src1
.
step
[
0
],
src2
.
data
,
(
int
)
src2
.
step
[
0
],
sz
,
&
norm
,
ippAlgHintAccurate
)
>=
0
)
if
(
ippFunc
Hint
(
src1
.
data
,
(
int
)
src1
.
step
[
0
],
src2
.
data
,
(
int
)
src2
.
step
[
0
],
sz
,
&
norm
,
ippAlgHintAccurate
)
>=
0
)
return
(
double
)
norm
;
setIppErrorStatus
();
}
...
...
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