title: How to slice/cut an image into pieces
body: <p>So I have a function that receives OpenCV image and turns it into gray-scale.</p>
  
  <pre><code>    void UseLSD(IplImage* destination)
      {   
      IplImage *destinationForGS = cvCreateImage(cvSize(destination-&gt;width, destination-&gt;height),IPL_DEPTH_8U,1);
      cvCvtColor(destination,destinationForGS,CV_RGB2GRAY); 
  }
  </code></pre>
  
  <p>How now to cut that image into images of size 10x10 pixels and iterate true them?
  (width and height may not divide on 10 but if there would be some loss (like loss from 1*h to 9*h+9*h pixels per image) it would be OK for me. )
  BTW can you output one of 10*10 images onto screen. please.</p>