mirror of
https://github.com/opencv/opencv.git
synced 2024-11-25 11:40:44 +08:00
Fixed Android build with Eigen.
This commit is contained in:
parent
000bf4af48
commit
33d9e2354a
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user