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
ed1ca00b
Commit
ed1ca00b
authored
Apr 04, 2014
by
Ilya Lavrenov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cv::magnitude
parent
bf860dbb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
mathfuncs.cpp
modules/core/src/mathfuncs.cpp
+12
-0
stat.cpp
modules/core/src/stat.cpp
+1
-0
No files found.
modules/core/src/mathfuncs.cpp
View file @
ed1ca00b
...
...
@@ -238,6 +238,12 @@ float cubeRoot( float value )
static
void
Magnitude_32f
(
const
float
*
x
,
const
float
*
y
,
float
*
mag
,
int
len
)
{
#ifdef HAVE_IPP
IppStatus
status
=
ippsMagnitude_32f
(
x
,
y
,
mag
,
len
);
if
(
status
==
ippStsNoErr
)
return
;
#endif
int
i
=
0
;
#if CV_SSE
...
...
@@ -264,6 +270,12 @@ 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
)
{
#ifdef HAVE_IPP
IppStatus
status
=
ippsMagnitude_64f
(
x
,
y
,
mag
,
len
);
if
(
status
==
ippStsNoErr
)
return
;
#endif
int
i
=
0
;
#if CV_SSE2
...
...
modules/core/src/stat.cpp
View file @
ed1ca00b
...
...
@@ -2016,6 +2016,7 @@ double cv::norm( InputArray _src, int normType, InputArray _mask )
#if defined (HAVE_IPP) && (IPP_VERSION_MAJOR >= 7)
size_t
total_size
=
src
.
total
();
int
rows
=
src
.
size
[
0
],
cols
=
(
int
)(
total_size
/
rows
);
if
(
(
src
.
dims
==
2
||
(
src
.
isContinuous
()
&&
mask
.
isContinuous
()))
&&
cols
>
0
&&
(
size_t
)
rows
*
cols
==
total_size
&&
(
normType
==
NORM_INF
||
normType
==
NORM_L1
||
...
...
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