title: Using a sliding window with GLCM
body: <p>I'm trying to calculate various image features from the Gray-Level Co-occurence Matrix (GLCM) in MatLab using the <code>graycomatrix</code> function.</p>
  
  <h3>Example using graycomatrix</h3>
  
  <pre><code>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);
  </code></pre>
  
  <p>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?</p>