Merge pull request #17721 from pemmanuelviel:pev--fix-hist-intersect-arguments

This commit is contained in:
Alexander Alekhin 2020-07-02 11:54:28 +00:00
commit 73f7d091f8

View File

@ -801,7 +801,7 @@ bool Index::load(InputArray _data, const String& filename)
loadIndex< ::cvflann::MaxDistance<float> >(this, index, data, fin); loadIndex< ::cvflann::MaxDistance<float> >(this, index, data, fin);
break; break;
case FLANN_DIST_HIST_INTERSECT: case FLANN_DIST_HIST_INTERSECT:
loadIndex< ::cvflann::HistIntersectionDistance<float> >(index, data, fin); loadIndex< ::cvflann::HistIntersectionDistance<float> >(this, index, data, fin);
break; break;
case FLANN_DIST_HELLINGER: case FLANN_DIST_HELLINGER:
loadIndex< ::cvflann::HellingerDistance<float> >(this, index, data, fin); loadIndex< ::cvflann::HellingerDistance<float> >(this, index, data, fin);