flann-lib / flann

Fast Library for Approximate Nearest Neighbors
http://people.cs.ubc.ca/~mariusm/flann
Other
2.25k stars 648 forks source link

C bindings are not threadable due to global distance type #361

Open adnanademovic opened 6 years ago

adnanademovic commented 6 years ago

The distance type is set globally for the C bindings.

Rather than doing that, the bindings could allow setting distance type per function, since the functions themselves just check against that global distance type as the first step.