Index: matchers.cpp =================================================================== --- matchers.cpp (revision 4468) +++ matchers.cpp (working copy) @@ -41,9 +41,6 @@ #include "precomp.hpp" -#ifdef HAVE_EIGEN2 -#include -#endif using namespace std; @@ -423,8 +420,8 @@ int bestTrainIdx = -1, bestImgIdx = -1; for( size_t iIdx = 0; iIdx < imgCount; iIdx++ ) { - int loc; - float curMaxCoeff = e_allDists[iIdx].maxCoeff( &loc ); + Eigen::Matrix::Index loc, col; + float curMaxCoeff = e_allDists[iIdx].maxCoeff( &loc, &col); if( curMaxCoeff > totalMaxCoeff ) { totalMaxCoeff = curMaxCoeff;