mirror of
https://github.com/opencv/opencv.git
synced 2024-11-29 05:29:54 +08:00
Fixed Android build with Eigen.
This commit is contained in:
parent
000bf4af48
commit
33d9e2354a
@ -48,10 +48,12 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
#if defined(HAVE_EIGEN) && EIGEN_WORLD_VERSION == 3
|
#if defined(HAVE_EIGEN) && EIGEN_WORLD_VERSION == 3
|
||||||
#include <Eigen/Core>
|
# include <Eigen/Core>
|
||||||
#include <unsupported/Eigen/MatrixFunctions>
|
# ifdef ANDROID
|
||||||
|
template <typename Scalar> Scalar log2(Scalar v) { using std::log; return log(v)/log(Scalar(2)); }
|
||||||
#include <Eigen/Dense>
|
# endif
|
||||||
|
# include <unsupported/Eigen/MatrixFunctions>
|
||||||
|
# include <Eigen/Dense>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <limits>
|
#include <limits>
|
||||||
|
Loading…
Reference in New Issue
Block a user