I have a image and have extracted texture features
g=rgb2gray(g); glcm=graycomatrix(g); F=graycoprops(glcm,'Contrast','Homogeneity','Correlation','Energy'}); contrast=F.Contrast; homogeneity=F.Homogeneity; correlation=F.Correlation; energy=F.Energy;
now how to display the image as below
in result i have res=[contrast energy homogeneity]
based upon the feature exracted feature result please tell how to apply kmeans on images
No products are associated with this question.
If you have four images in I, J, K and L, you could do this,
figure subplot(2,2,1); imshow(I) subplot(2,2,2); imshow(J) subplot(2,2,3); imshow(K) subplot(2,2,4); imshow(L)
As for kmeans, http://openclassroom.stanford.edu/MainFolder/DocumentPage.php?course=MachineLearning&doc=exercises/ex9/ex9.html may be a good resource to start with.
Play games and win prizes!Learn more