Hello ,
i am trying to cluster a set of images, my peblems resides in using Kmeans2 parameters in opencv. i dont know exactly how to form the points input for Kmeans2 for clustering.
here what i do :
samples = CreateMat ( samples_len,1,CV_32FC2)
labels = CreateMat ( samples_len,1,CV_43SC1)
index = 0
for name in imglist :
img = LoadImage ('someting')
sample[index] = img
index += 1
The error i get is : key length does not match array dimension so how to fix it ?
any help would be appreciated
Regards.