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