mirror of
https://github.com/opencv/opencv.git
synced 2024-11-28 21:20:18 +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
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user