fixed opencv_flann (with flann 1.6) compile errors on Windows (VS2005 & VS2008)

This commit is contained in:
Vadim Pisarevsky 2011-07-14 11:26:13 +00:00
parent c52ab82bbf
commit ca2433c212
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@
#include "opencv2/core/core_c.h" #include "opencv2/core/core_c.h"
#include "opencv2/core/core.hpp" #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_c.h"
#include "opencv2/imgproc/imgproc.hpp" #include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/video/video.hpp" #include "opencv2/video/video.hpp"

View File

@ -210,7 +210,7 @@ public:
break; break;
case kBitsetHash: case kBitsetHash:
// That means we can check the bitset for the presence of a key // 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; else return 0;
break; break;
case kHash: case kHash: