mirror of
https://github.com/opencv/opencv.git
synced 2024-11-25 03:30:34 +08:00
Added test to fix backwards compatibility with the way LSH was handled before comit 7236858b
This commit is contained in:
parent
7236858bea
commit
5cf6c5f0b2
@ -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…
Reference in New Issue
Block a user