title: Multiple stitching
body: <p>I used the code from <a href="http://www.codeproject.com/KB/recipes/automatic_panoramas.aspx" rel="nofollow">Automatic Image Stitching with Accord.net</a><br>
  i changed the code to stitch multiple images</p>
  
  <p>My code after selecting multiple files was  </p>
  
  <pre><code>img1 = new Bitmap(imgName[0]);  
  </code></pre>
  
  <p>I change the code for <strong>btnBlend</strong>  </p>
  
  <pre><code>Blend blend = new Blend(homography, img1);  
  pictureBox.Image = blend.Apply(img2);  
  img1 = new Bitmap(blend.Apply(img2));`
  </code></pre>
  
  <p>I added the part <code>img1 = new Bitmap(blend.Apply(img2));</code> so i can keep the first stitch image as my copy and this is were to sticth the other image.</p>
  
  <p>Then at the <strong>btnDoItAll</strong></p>
  
  <pre><code>for (int x = 1; x &lt; NumOfFiles; x++)  
  {  
    img2 = new Bitmap(imgName[x]);  
    btnHarris();  
    btnCorrelation();  
    btnRansac();  
    btnBlend();  
  }
  </code></pre>
  
  <p>After running it, there's no error at all but when it goes to the looping part at the <em>btnBlend</em> c# hangs and displays <strong>vshost.exe has stop working</strong></p>
  
  <p>any help to correct this?</p>