From ca2433c212aa8772c2423dd05c31016bc7fadbbf Mon Sep 17 00:00:00 2001 From: Vadim Pisarevsky Date: Thu, 14 Jul 2011 11:26:13 +0000 Subject: [PATCH] fixed opencv_flann (with flann 1.6) compile errors on Windows (VS2005 & VS2008) --- include/opencv2/opencv.hpp | 2 +- modules/flann/include/opencv2/flann/lsh_table.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/opencv2/opencv.hpp b/include/opencv2/opencv.hpp index f3381637a6..5935d63c45 100644 --- a/include/opencv2/opencv.hpp +++ b/include/opencv2/opencv.hpp @@ -45,7 +45,7 @@ #include "opencv2/core/core_c.h" #include "opencv2/core/core.hpp" -#include "opencv2/flann/flann.hpp" +#include "opencv2/flann/miniflann.hpp" #include "opencv2/imgproc/imgproc_c.h" #include "opencv2/imgproc/imgproc.hpp" #include "opencv2/video/video.hpp" diff --git a/modules/flann/include/opencv2/flann/lsh_table.h b/modules/flann/include/opencv2/flann/lsh_table.h index c74baab821..f52d5bd9ea 100644 --- a/modules/flann/include/opencv2/flann/lsh_table.h +++ b/modules/flann/include/opencv2/flann/lsh_table.h @@ -210,7 +210,7 @@ public: break; case kBitsetHash: // That means we can check the bitset for the presence of a key - if (key_bitset_.test(key)) return &buckets_space_.at(key); + if (key_bitset_.test(key)) return &buckets_space_.find(key)->second; else return 0; break; case kHash: