From 33d9e2354a1734f5fcf14576905eae73106cf8b8 Mon Sep 17 00:00:00 2001 From: Andrey Kamaev Date: Sat, 16 Jun 2012 14:52:46 +0000 Subject: [PATCH] Fixed Android build with Eigen. --- modules/contrib/src/rgbdodometry.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/modules/contrib/src/rgbdodometry.cpp b/modules/contrib/src/rgbdodometry.cpp index 81525f54f7..fcdd93620e 100644 --- a/modules/contrib/src/rgbdodometry.cpp +++ b/modules/contrib/src/rgbdodometry.cpp @@ -48,10 +48,12 @@ #include #if defined(HAVE_EIGEN) && EIGEN_WORLD_VERSION == 3 -#include -#include - -#include +# include +# ifdef ANDROID + template Scalar log2(Scalar v) { using std::log; return log(v)/log(Scalar(2)); } +# endif +# include +# include #endif #include