title: OpenCV - Stitching Images from a grid of images
body: <p>I have found some basic working examples on stitching via OpenCV for panoramic images. I have also found some useful documentation in the <a href="http://docs.opencv.org/modules/stitching/doc/stitching.html" rel="noreferrer"><strong>API docs</strong></a>, but I can't find out how to speed up the processing by providing additional information. </p>
  
  <p>In my case, I generate a set of images in a 20x20 grid of individual frames, for a total of 400 images to be stitched into a single large one. This takes an enormous amount of time on a modern PC, so it would likely take hours on a developer board.</p>
  
  <p>Is there any way to tell the OpenCV instance information about the images, such as me knowing in advance the relative positioning of all the images as they would appear on a grid? The only API calls I see so far is to just add all the images indiscriminately to a queue via <code>vImg.push_back()</code>.</p>
  
  <hr>
  
  <p><strong>References</strong></p>
  
  <ol>
  <li><em>Stitching. Image Stitching - OpenCV API Documentation</em>, Accessed 2014-02-26, <a href="http://docs.opencv.org/modules/stitching/doc/stitching.html" rel="noreferrer"><code>&lt;http://docs.opencv.org/modules/stitching/doc/stitching.html&gt;</code></a></li>
  <li><em>OpenCV Stitching example (Stitcher class, Panorama)</em>, Accessed 2014-02-26, <a href="http://feelmare.blogspot.ca/2013/11/opencv-stitching-example-stitcher-class.html" rel="noreferrer"><code>&lt;http://feelmare.blogspot.ca/2013/11/opencv-stitching-example-stitcher-class.html&gt;</code></a></li>
  <li><em>Panorama – Image Stitching in OpenCV</em>, Accessed 2014-02-26, <a href="http://ramsrigoutham.com/2012/11/22/panorama-image-stitching-in-opencv/" rel="noreferrer"><code>&lt;http://ramsrigoutham.com/2012/11/22/panorama-image-stitching-in-opencv/&gt;</code></a></li>
  </ol>