Fixed Android build with Eigen.

pull/2/head
Andrey Kamaev 13 years ago
parent 000bf4af48
commit 33d9e2354a
  1. 4
      modules/contrib/src/rgbdodometry.cpp

@ -49,8 +49,10 @@
#if defined(HAVE_EIGEN) && EIGEN_WORLD_VERSION == 3 #if defined(HAVE_EIGEN) && EIGEN_WORLD_VERSION == 3
# include <Eigen/Core> # 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 <unsupported/Eigen/MatrixFunctions>
# include <Eigen/Dense> # include <Eigen/Dense>
#endif #endif

Loading…
Cancel
Save