SampleApp.MainForm.btnBlend_Click C# (CSharp) Method

btnBlend_Click() private method

private btnBlend_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        private void btnBlend_Click(object sender, EventArgs e)
        {
            if (homography == null)
            {
                MessageBox.Show("Please, click RANSAC button first! :-)");
                return;
            }

            // Step 4: Project and blend the second image using the homography
            Blend blend = new Blend(homography, img1);
            pictureBox.Image = blend.Apply(img2);
        }
MainForm