projects
/
profile
/
ivi
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
000bf4a
)
Fixed Android build with Eigen.
author
Andrey Kamaev
<no@email>
Sat, 16 Jun 2012 14:52:46 +0000
(14:52 +0000)
committer
Andrey Kamaev
<no@email>
Sat, 16 Jun 2012 14:52:46 +0000
(14:52 +0000)
modules/contrib/src/rgbdodometry.cpp
patch
|
blob
|
history
diff --git
a/modules/contrib/src/rgbdodometry.cpp
b/modules/contrib/src/rgbdodometry.cpp
index
81525f5
..
fcdd936
100644
(file)
--- a/
modules/contrib/src/rgbdodometry.cpp
+++ b/
modules/contrib/src/rgbdodometry.cpp
@@
-48,10
+48,12
@@
#include <iostream>
#if defined(HAVE_EIGEN) && EIGEN_WORLD_VERSION == 3
-#include <Eigen/Core>
-#include <unsupported/Eigen/MatrixFunctions>
-
-#include <Eigen/Dense>
+# include <Eigen/Core>
+# ifdef ANDROID
+ template <typename Scalar> Scalar log2(Scalar v) { using std::log; return log(v)/log(Scalar(2)); }
+# endif
+# include <unsupported/Eigen/MatrixFunctions>
+# include <Eigen/Dense>
#endif
#include <limits>