From: Marius Muja Date: Fri, 28 Sep 2012 17:40:38 +0000 (-0700) Subject: Added test to fix backwards compatibility with the way LSH was handled before comit... X-Git-Tag: accepted/2.0/20130307.220821~364^2~157 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5cf6c5f0b273cf73be623c1df4ea2a01c3c4be8a;p=profile%2Fivi%2Fopencv.git Added test to fix backwards compatibility with the way LSH was handled before comit 7236858b --- diff --git a/modules/flann/src/miniflann.cpp b/modules/flann/src/miniflann.cpp index 972ae72..d8ae2b0 100644 --- a/modules/flann/src/miniflann.cpp +++ b/modules/flann/src/miniflann.cpp @@ -365,6 +365,11 @@ void Index::build(InputArray _data, const IndexParams& params, flann_distance_t index = 0; featureType = data.type(); distType = _distType; + + if ( algo == FLANN_INDEX_LSH) + { + distType = FLANN_DIST_HAMMING; + } switch( distType ) {