I am interested in using MATLAB to extract texture features using LBP for each pixel in an image and clustering them using K-means algorithm. Anyone with relevant knowledge or the MATLAB code should assist.
It is my sincere suggestion to you, rather than focusing on codes randomly on questions over here , first clear the back ground knowledge of these things. Then you can find it out by yourself. For matlab codes, mathworks is the place.
I have added this suggestion because on your most questions, I have figured it out. Once I was like this but later understood the value for understanding the background intuition first. Best of luck.