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
b28f5949
Commit
b28f5949
authored
Mar 30, 2013
by
Andrey Kamaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drop fast_abs
parent
6fea48c5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
11 deletions
+3
-11
base.hpp
modules/core/include/opencv2/core/base.hpp
+1
-1
operations.hpp
modules/core/include/opencv2/core/operations.hpp
+0
-8
stat.cpp
modules/core/src/stat.cpp
+2
-2
No files found.
modules/core/include/opencv2/core/base.hpp
View file @
b28f5949
...
...
@@ -333,7 +333,7 @@ _AccTp normL1(const _Tp* a, int n)
}
#endif
for
(
;
i
<
n
;
i
++
)
s
+=
fast_
abs
(
a
[
i
]);
s
+=
std
::
abs
(
a
[
i
]);
return
s
;
}
...
...
modules/core/include/opencv2/core/operations.hpp
View file @
b28f5949
...
...
@@ -63,14 +63,6 @@
namespace
cv
{
inline
int
fast_abs
(
uchar
v
)
{
return
v
;
}
inline
int
fast_abs
(
schar
v
)
{
return
std
::
abs
((
int
)
v
);
}
inline
int
fast_abs
(
ushort
v
)
{
return
v
;
}
inline
int
fast_abs
(
short
v
)
{
return
std
::
abs
((
int
)
v
);
}
inline
int
fast_abs
(
int
v
)
{
return
std
::
abs
(
v
);
}
inline
float
fast_abs
(
float
v
)
{
return
std
::
abs
(
v
);
}
inline
double
fast_abs
(
double
v
)
{
return
std
::
abs
(
v
);
}
namespace
internal
{
...
...
modules/core/src/stat.cpp
View file @
b28f5949
...
...
@@ -1111,7 +1111,7 @@ normInf_(const T* src, const uchar* mask, ST* _result, int len, int cn)
if
(
mask
[
i
]
)
{
for
(
int
k
=
0
;
k
<
cn
;
k
++
)
result
=
std
::
max
(
result
,
ST
(
fast_
abs
(
src
[
k
])));
result
=
std
::
max
(
result
,
ST
(
std
::
abs
(
src
[
k
])));
}
}
*
_result
=
result
;
...
...
@@ -1132,7 +1132,7 @@ normL1_(const T* src, const uchar* mask, ST* _result, int len, int cn)
if
(
mask
[
i
]
)
{
for
(
int
k
=
0
;
k
<
cn
;
k
++
)
result
+=
fast_
abs
(
src
[
k
]);
result
+=
std
::
abs
(
src
[
k
]);
}
}
*
_result
=
result
;
...
...
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