Commit 5cf6c5f0 authored by Marius Muja's avatar Marius Muja

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

parent 7236858b
......@@ -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 )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment