FlannBasedMatcher - what distance metric

cv2.FlannBasedMatcher(index_params, search_params)

In the constructor parameters for the FlannBasedMatcher, there doesn’t appear to be a distance metric to provide: Neither flann::KDTreeIndexParams, flann::SearchParams specify.

Is it possible to provide one?
If not, what metric should be assumed?

does that help?

depending on hamming (binary) or L2 norm, different index types are chosen:

Thanks! What if I wanted, say, L1. Or cosine?