Added test to fix backwards compatibility with the way LSH was handled before comit 7236858b

pull/33/head
Marius Muja 12 years ago
parent 7236858bea
commit 5cf6c5f0b2
  1. 5
      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 )
{

Loading…
Cancel
Save