title: How to count the number of overlapping blocks in an Image
body: <p>I have a 512X512 size of image and I have made 4x4 overlapping blocks for the entire image.How can i count the number of overlapping blocks and save it in an Array in matlab.
  I have done like below for 4x4 overlapping blocks. Now how to count the no of blocks and store it using an Array.</p>
  
  <pre><code>[e f] = size(outImg);
  l=0;
  for i=2:e-2
      for j=2:f-2
          H =double(outImg((i-1:i+2),(j-1:j+2)));
          eval(['out_' num2str(l) '=H']);
          l=l+1
      end;
  end;
  </code></pre>