Add a new method for initializing KMeans centers that leads to better clusters and thus better retrieval when final centers have to be existing keypoints instead of clusters barycenters.

This commit is contained in:
Pierre-Emmanuel Viel
2013-12-26 02:56:28 +01:00
parent 65b020f0d3
commit 112d63ae96
2 changed files with 82 additions and 0 deletions

View File

@@ -107,6 +107,7 @@ enum flann_centers_init_t
FLANN_CENTERS_RANDOM = 0,
FLANN_CENTERS_GONZALES = 1,
FLANN_CENTERS_KMEANSPP = 2,
FLANN_CENTERS_GROUPWISE = 3,
// deprecated constants, should use the FLANN_CENTERS_* ones instead
CENTERS_RANDOM = 0,