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
f32f0486
Commit
f32f0486
authored
May 22, 2015
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trying to eliminate warnings in Android build
parent
d2aaa70e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
3 deletions
+19
-3
base.hpp
modules/core/include/opencv2/core/base.hpp
+19
-3
No files found.
modules/core/include/opencv2/core/base.hpp
View file @
f32f0486
...
@@ -494,7 +494,13 @@ _AccTp normL2Sqr(const _Tp* a, const _Tp* b, int n)
...
@@ -494,7 +494,13 @@ _AccTp normL2Sqr(const _Tp* a, const _Tp* b, int n)
static
inline
float
normL2Sqr
(
const
float
*
a
,
const
float
*
b
,
int
n
)
static
inline
float
normL2Sqr
(
const
float
*
a
,
const
float
*
b
,
int
n
)
{
{
return
normL2Sqr
<
float
,
float
>
(
a
,
b
,
n
);
float
s
=
0.
f
;
for
(
int
i
=
0
;
i
<
n
;
i
++
)
{
float
v
=
a
[
i
]
-
b
[
i
];
s
+=
v
*
v
;
}
return
s
;
}
}
template
<
typename
_Tp
,
typename
_AccTp
>
static
inline
template
<
typename
_Tp
,
typename
_AccTp
>
static
inline
...
@@ -519,12 +525,22 @@ _AccTp normL1(const _Tp* a, const _Tp* b, int n)
...
@@ -519,12 +525,22 @@ _AccTp normL1(const _Tp* a, const _Tp* b, int n)
inline
float
normL1
(
const
float
*
a
,
const
float
*
b
,
int
n
)
inline
float
normL1
(
const
float
*
a
,
const
float
*
b
,
int
n
)
{
{
return
normL1
<
float
,
float
>
(
a
,
b
,
n
);
float
s
=
0.
f
;
for
(
int
i
=
0
;
i
<
n
;
i
++
)
{
s
+=
std
::
abs
(
a
[
i
]
-
b
[
i
]);
}
return
s
;
}
}
inline
int
normL1
(
const
uchar
*
a
,
const
uchar
*
b
,
int
n
)
inline
int
normL1
(
const
uchar
*
a
,
const
uchar
*
b
,
int
n
)
{
{
return
normL1
<
uchar
,
int
>
(
a
,
b
,
n
);
int
s
=
0
;
for
(
int
i
=
0
;
i
<
n
;
i
++
)
{
s
+=
std
::
abs
(
a
[
i
]
-
b
[
i
]);
}
return
s
;
}
}
template
<
typename
_Tp
,
typename
_AccTp
>
static
inline
template
<
typename
_Tp
,
typename
_AccTp
>
static
inline
...
...
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