No proper kmeans clustering of images in matlab
- by user3237134
I am having 1200 face images in my training set.There are 2989 test face images. I am using eigen faces (PCA) for feature extraction. I am using kmeans clustering.
Source code I tried:
IDX = kmeans(z,5);
clustercount=accumarray(IDX, ones(size(IDX)));
disp(clustercount);
Problem:
Images are not clustered properly. Same faces should be clustered. But different faces are being clustered.
Questions:
Should I have to use still more face images for training?
How accuracy of clustering can be achieved? What is the solution?