wildart / FLANN.jl

A Julia wrapper for Fast Library for Approximate Nearest Neighbors (FLANN)
Other
16 stars 14 forks source link

Hierarchical Clustering Index with Hamming Distance #15

Closed tejus-gupta closed 7 years ago

tejus-gupta commented 7 years ago

FLANN provides hierarchical clustering index that can be used for matching binary features. Why is this now working?

d=Matrix{UInt8}(3, 5)
f=flann(d, FLANNParameters(algorithm=FLANN.FLANN_INDEX_HIERARCHICAL), FLANN.FLANN_DIST_HAMMING, 2)

t=Vector{UInt8}(3);
nearest(f, t, 1)
wildart commented 7 years ago

Distances FLANN_DIST_HAMMING, FLANN_DIST_HAMMING_LUT, FLANN_DIST_HAMMING_POPCNT, and FLANN_DIST_L2_SIMPLE are not supported through C bindings. So, no way to wrap them for usage in Julia (without Cxx).