kmeans and user defined initial centers

asked 2014-05-07 08:15:06 -0600

I'm using OpenCV 2.4.9 and I could not find any way how to stat kmeans algorithm with predefined initial centers position. Is it possible? And if not is it planned in future versions? Thanks.

edit retag flag offensive close merge delete

Comments

you can supply the labels. (afaik, the centers are interpolated from those)

berak gravatar imageberak ( 2014-05-07 08:28:49 -0600 )edit

Like berak said. There is no initial centring in Kmeans in OpenCV. It just starts from the interpolated centers of the labels. It should however be a nice addition to the library but it has to be implemented.

StevenPuttemans gravatar imageStevenPuttemans ( 2014-05-08 03:50:55 -0600 )edit
1

Yes, I knew about labels. But I want specifically centers. Thanks anyway :).

WestFlame gravatar imageWestFlame ( 2014-05-08 13:30:26 -0600 )edit