kmeans needs Mat as input variable