I'm trying to calculate various image features from the Gray-Level Co-occurence Matrix (GLCM) in MatLab using the graycomatrix
function.
Example using graycomatrix
I = [0 0 1 1; 0 0 1 1; 0 2 2 2; 2 2 3 3];
glcm = graycomatrix(I, 'GrayLimits', [0 3], 'NumLevels', 4, 'Symmetric', true);
How can I apply this function to a series of sub-windows assuming a larger image (640x480 for example) than the trivial example and a sliding window size of 5x5?