cv::flann::index::knnsearch values of indices and dists
ok given the following code
index.knnSearch(mat,indices,dists,3);
when using binary descriptors how do I make dists results into a useful ratio or percentage match?
"a useful ratio or percentage match" -- describing what ?
the smaller the distance, the closer your mat is to the retrieved items
Thanks I did some reading and I think I've got a formula
oh, please tell us ?
it returns the amount of differing bits between the 2 matches. so for 500 descriptors at 32 BYTES each so 256 bits, 256 X 500 descriptors 128,000 bits per set of descriptors so a 90% match would mean a value of 12,800 so anything lower than that is a good match