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

This commit is contained in:
Marius Muja 2012-09-28 10:40:38 -07:00
parent 7236858bea
commit 5cf6c5f0b2

View File

@ -366,6 +366,11 @@ void Index::build(InputArray _data, const IndexParams& params, flann_distance_t
featureType = data.type();
distType = _distType;
if ( algo == FLANN_INDEX_LSH)
{
distType = FLANN_DIST_HAMMING;
}
switch( distType )
{
case FLANN_DIST_HAMMING: