How to calculate labels given centers of K-Means in OpenCV
Hello, I read this question about how to set initial centers of k-mean on Stackoverflow. I read the answer, but I have no idea how to implement it in C ++. Could anyone give me any suggestions? I'd like to calculate first labels using centers that I already have and pass them to kmeans function with flag KMEANS_USE_INITIAL_LABELS for calculate new centers on new (but similar) data. Data are features of images.
kmeans returns labels, so what is your actual question ? (the SO link is useless here)
please edit, show us , what you have, and what you require !