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
0ae89fe2
Commit
0ae89fe2
authored
Aug 21, 2014
by
f-morozov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AKAZE optimizations
parent
1a1097ab
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
0 deletions
+20
-0
AKAZEFeatures.cpp
modules/features2d/src/kaze/AKAZEFeatures.cpp
+0
-0
nldiffusion_functions.cpp
modules/features2d/src/kaze/nldiffusion_functions.cpp
+0
-0
utils.h
modules/features2d/src/kaze/utils.h
+20
-0
No files found.
modules/features2d/src/kaze/AKAZEFeatures.cpp
View file @
0ae89fe2
This diff is collapsed.
Click to expand it.
modules/features2d/src/kaze/nldiffusion_functions.cpp
View file @
0ae89fe2
This diff is collapsed.
Click to expand it.
modules/features2d/src/kaze/utils.h
View file @
0ae89fe2
...
...
@@ -74,4 +74,24 @@ inline int fRound(float flt) {
return
(
int
)(
flt
+
0
.
5
f
);
}
/* ************************************************************************* */
/**
* @brief Exponentiation by squaring
* @param flt Exponentiation base
* @return dst Exponentiation value
*/
inline
int
fastpow
(
int
base
,
int
exp
)
{
int
res
=
1
;
while
(
exp
>
0
)
{
if
(
exp
&
1
)
{
exp
--
;
res
*=
base
;
}
else
{
exp
/=
2
;
base
*=
base
;
}
}
return
res
;
}
#endif
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