Flat image stitching
<p>I would like to convert the code of <a href="http://www.codeproject.com/Articles/95453/Automatic-Image-Stitching-with-Accord-NET" rel="nofollow">Automatic Image Stitching with Accord.NET</a> to blend in a flat way, or with no transformation like twisting or bending the image.  </p>

<p>I think the part that needs to be change is here:</p>

<pre><code>private void btnRansac_Click(object sender, EventArgs e)
{
// Step 3: Create the homography matrix using a robust estimator
RansacHomographyEstimator ransac = new RansacHomographyEstimator(0.001, 0.99);
homography = ransac.Estimate(correlationPoints1, correlationPoints2);

// Plot RANSAC results against correlation results
IntPoint[] inliers1 = correlationPoints1.Submatrix(ransac.Inliers);
IntPoint[] inliers2 = correlationPoints2.Submatrix(ransac.Inliers);

// Concatenate the two images in a single image (just to show on screen)
Concatenate concat = new Concatenate(img1);
Bitmap img3 = concat.Apply(img2);

// Show the marked correlations in the concatenated image
PairsMarker pairs = new PairsMarker(
    inliers1, // Add image1's width to the X points to show the markings correctly
    inliers2.Apply(p =&gt; new IntPoint(p.X + img1.Width, p.Y)));

pictureBox.Image = pairs.Apply(img3);
}
</code></pre>

<p>or </p>

<pre><code>private void btnBlend_Click(object sender, EventArgs e)
{
// Step 4: Project and blend the second image using the homography
Blend blend = new Blend(homography, img1);
pictureBox.Image = blend.Apply(img2);
}
</code></pre>

<p>What would you suggest to do or to replace this part? I am new to programming and in c# language.</p>
